@@ -1047,6 +1047,66 @@ public final class CoreMetrics {
10471047 .setDeleteHistoricalData (true )
10481048 .create ();
10491049
1050+ /**
1051+ * @since 13.6
1052+ */
1053+ public static final String NEW_RELIABILITY_ISSUE_SEVERITY_KEY = "new_reliability_issue_severity" ;
1054+
1055+ /**
1056+ * @since 13.6
1057+ */
1058+ public static final Metric <Integer > NEW_RELIABILITY_ISSUE_SEVERITY = new Metric .Builder (NEW_RELIABILITY_ISSUE_SEVERITY_KEY ,
1059+ "Reliability Issue Severity on New Code" , Metric .ValueType .INT )
1060+ .setDescription ("Worst severity of new reliability issues" )
1061+ .setDomain (DOMAIN_RELIABILITY )
1062+ .setDirection (Metric .DIRECTION_WORST )
1063+ .setDeleteHistoricalData (true )
1064+ .setOptimizedBestValue (true )
1065+ .setQualitative (true )
1066+ .setBestValue ((double ) SeverityValues .NO_ISSUES )
1067+ .setWorstValue ((double ) SeverityValues .BLOCKER )
1068+ .create ();
1069+
1070+ /**
1071+ * @since 13.6
1072+ */
1073+ public static final String NEW_SECURITY_ISSUE_SEVERITY_KEY = "new_security_issue_severity" ;
1074+
1075+ /**
1076+ * @since 13.6
1077+ */
1078+ public static final Metric <Integer > NEW_SECURITY_ISSUE_SEVERITY = new Metric .Builder (NEW_SECURITY_ISSUE_SEVERITY_KEY ,
1079+ "Security Issue Severity on New Code" , Metric .ValueType .INT )
1080+ .setDescription ("Worst severity of new security issues" )
1081+ .setDomain (DOMAIN_SECURITY )
1082+ .setDirection (Metric .DIRECTION_WORST )
1083+ .setDeleteHistoricalData (true )
1084+ .setOptimizedBestValue (true )
1085+ .setQualitative (true )
1086+ .setBestValue ((double ) SeverityValues .NO_ISSUES )
1087+ .setWorstValue ((double ) SeverityValues .BLOCKER )
1088+ .create ();
1089+
1090+ /**
1091+ * @since 13.6
1092+ */
1093+ public static final String NEW_MAINTAINABILITY_ISSUE_SEVERITY_KEY = "new_maintainability_issue_severity" ;
1094+
1095+ /**
1096+ * @since 13.6
1097+ */
1098+ public static final Metric <Integer > NEW_MAINTAINABILITY_ISSUE_SEVERITY = new Metric .Builder (NEW_MAINTAINABILITY_ISSUE_SEVERITY_KEY ,
1099+ "Maintainability Issue Severity on New Code" , Metric .ValueType .INT )
1100+ .setDescription ("Worst severity of new maintainability issues" )
1101+ .setDomain (DOMAIN_MAINTAINABILITY )
1102+ .setDirection (Metric .DIRECTION_WORST )
1103+ .setDeleteHistoricalData (true )
1104+ .setOptimizedBestValue (true )
1105+ .setQualitative (true )
1106+ .setBestValue ((double ) SeverityValues .NO_ISSUES )
1107+ .setWorstValue ((double ) SeverityValues .BLOCKER )
1108+ .create ();
1109+
10501110 /**
10511111 * @since 3.6
10521112 * @deprecated since 10.4. Use {@link #VIOLATIONS_KEY} instead.
@@ -1152,6 +1212,29 @@ public final class CoreMetrics {
11521212 .setDeleteHistoricalData (true )
11531213 .create ();
11541214
1215+ /**
1216+ * SonarQube Quality Model
1217+ *
1218+ * @since 13.6
1219+ */
1220+ public static final String NEW_CODE_SMELLS_SEVERITY_KEY = "new_code_smells_severity" ;
1221+
1222+ /**
1223+ * SonarQube Quality Model
1224+ *
1225+ * @since 13.6
1226+ */
1227+ public static final Metric <Integer > NEW_CODE_SMELLS_SEVERITY = new Metric .Builder (NEW_CODE_SMELLS_SEVERITY_KEY , "New Code Smells Severity" , Metric .ValueType .INT )
1228+ .setDescription ("Worst severity of new code smell issues" )
1229+ .setDomain (DOMAIN_MAINTAINABILITY )
1230+ .setDirection (Metric .DIRECTION_WORST )
1231+ .setDeleteHistoricalData (true )
1232+ .setOptimizedBestValue (true )
1233+ .setQualitative (true )
1234+ .setBestValue ((double ) SeverityValues .NO_ISSUES )
1235+ .setWorstValue ((double ) SeverityValues .BLOCKER )
1236+ .create ();
1237+
11551238 /**
11561239 * SonarQube Quality Model
11571240 *
@@ -1195,6 +1278,29 @@ public final class CoreMetrics {
11951278 .setDeleteHistoricalData (true )
11961279 .create ();
11971280
1281+ /**
1282+ * SonarQube Quality Model
1283+ *
1284+ * @since 13.6
1285+ */
1286+ public static final String NEW_BUGS_SEVERITY_KEY = "new_bugs_severity" ;
1287+
1288+ /**
1289+ * SonarQube Quality Model
1290+ *
1291+ * @since 13.6
1292+ */
1293+ public static final Metric <Integer > NEW_BUGS_SEVERITY = new Metric .Builder (NEW_BUGS_SEVERITY_KEY , "New Bugs Severity" , Metric .ValueType .INT )
1294+ .setDescription ("Worst severity of new bug issues" )
1295+ .setDomain (DOMAIN_RELIABILITY )
1296+ .setDirection (Metric .DIRECTION_WORST )
1297+ .setDeleteHistoricalData (true )
1298+ .setOptimizedBestValue (true )
1299+ .setQualitative (true )
1300+ .setBestValue ((double ) SeverityValues .NO_ISSUES )
1301+ .setWorstValue ((double ) SeverityValues .BLOCKER )
1302+ .create ();
1303+
11981304 /**
11991305 * SonarQube Quality Model
12001306 *
@@ -1237,6 +1343,29 @@ public final class CoreMetrics {
12371343 .setDeleteHistoricalData (true )
12381344 .create ();
12391345
1346+ /**
1347+ * SonarQube Quality Model
1348+ *
1349+ * @since 13.6
1350+ */
1351+ public static final String NEW_VULNERABILITIES_SEVERITY_KEY = "new_vulnerabilities_severity" ;
1352+
1353+ /**
1354+ * SonarQube Quality Model
1355+ *
1356+ * @since 13.6
1357+ */
1358+ public static final Metric <Integer > NEW_VULNERABILITIES_SEVERITY = new Metric .Builder (NEW_VULNERABILITIES_SEVERITY_KEY , "New Vulnerabilities Severity" , Metric .ValueType .INT )
1359+ .setDescription ("Worst severity of new vulnerability issues" )
1360+ .setDomain (DOMAIN_SECURITY )
1361+ .setDirection (Metric .DIRECTION_WORST )
1362+ .setDeleteHistoricalData (true )
1363+ .setOptimizedBestValue (true )
1364+ .setQualitative (true )
1365+ .setBestValue ((double ) SeverityValues .NO_ISSUES )
1366+ .setWorstValue ((double ) SeverityValues .BLOCKER )
1367+ .create ();
1368+
12401369 /**
12411370 * @since 7.8
12421371 */
0 commit comments