@@ -1047,6 +1047,63 @@ 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+ .setBestValue ((double ) SeverityValues .NO_ISSUES )
1066+ .setWorstValue ((double ) SeverityValues .BLOCKER )
1067+ .create ();
1068+
1069+ /**
1070+ * @since 13.6
1071+ */
1072+ public static final String NEW_SECURITY_ISSUE_SEVERITY_KEY = "new_security_issue_severity" ;
1073+
1074+ /**
1075+ * @since 13.6
1076+ */
1077+ public static final Metric <Integer > NEW_SECURITY_ISSUE_SEVERITY = new Metric .Builder (NEW_SECURITY_ISSUE_SEVERITY_KEY ,
1078+ "Security Issue Severity on New Code" , Metric .ValueType .INT )
1079+ .setDescription ("Worst severity of new security issues" )
1080+ .setDomain (DOMAIN_SECURITY )
1081+ .setDirection (Metric .DIRECTION_WORST )
1082+ .setDeleteHistoricalData (true )
1083+ .setOptimizedBestValue (true )
1084+ .setBestValue ((double ) SeverityValues .NO_ISSUES )
1085+ .setWorstValue ((double ) SeverityValues .BLOCKER )
1086+ .create ();
1087+
1088+ /**
1089+ * @since 13.6
1090+ */
1091+ public static final String NEW_MAINTAINABILITY_ISSUE_SEVERITY_KEY = "new_maintainability_issue_severity" ;
1092+
1093+ /**
1094+ * @since 13.6
1095+ */
1096+ public static final Metric <Integer > NEW_MAINTAINABILITY_ISSUE_SEVERITY = new Metric .Builder (NEW_MAINTAINABILITY_ISSUE_SEVERITY_KEY ,
1097+ "Maintainability Issue Severity on New Code" , Metric .ValueType .INT )
1098+ .setDescription ("Worst severity of new maintainability issues" )
1099+ .setDomain (DOMAIN_MAINTAINABILITY )
1100+ .setDirection (Metric .DIRECTION_WORST )
1101+ .setDeleteHistoricalData (true )
1102+ .setOptimizedBestValue (true )
1103+ .setBestValue ((double ) SeverityValues .NO_ISSUES )
1104+ .setWorstValue ((double ) SeverityValues .BLOCKER )
1105+ .create ();
1106+
10501107 /**
10511108 * @since 3.6
10521109 * @deprecated since 10.4. Use {@link #VIOLATIONS_KEY} instead.
@@ -1152,6 +1209,28 @@ public final class CoreMetrics {
11521209 .setDeleteHistoricalData (true )
11531210 .create ();
11541211
1212+ /**
1213+ * SonarQube Quality Model
1214+ *
1215+ * @since 13.6
1216+ */
1217+ public static final String NEW_CODE_SMELLS_SEVERITY_KEY = "new_code_smells_severity" ;
1218+
1219+ /**
1220+ * SonarQube Quality Model
1221+ *
1222+ * @since 13.6
1223+ */
1224+ public static final Metric <Integer > NEW_CODE_SMELLS_SEVERITY = new Metric .Builder (NEW_CODE_SMELLS_SEVERITY_KEY , "New Code Smells Severity" , Metric .ValueType .INT )
1225+ .setDescription ("Worst severity of new code smell issues" )
1226+ .setDomain (DOMAIN_MAINTAINABILITY )
1227+ .setDirection (Metric .DIRECTION_WORST )
1228+ .setDeleteHistoricalData (true )
1229+ .setOptimizedBestValue (true )
1230+ .setBestValue ((double ) SeverityValues .NO_ISSUES )
1231+ .setWorstValue ((double ) SeverityValues .BLOCKER )
1232+ .create ();
1233+
11551234 /**
11561235 * SonarQube Quality Model
11571236 *
@@ -1195,6 +1274,28 @@ public final class CoreMetrics {
11951274 .setDeleteHistoricalData (true )
11961275 .create ();
11971276
1277+ /**
1278+ * SonarQube Quality Model
1279+ *
1280+ * @since 13.6
1281+ */
1282+ public static final String NEW_BUGS_SEVERITY_KEY = "new_bugs_severity" ;
1283+
1284+ /**
1285+ * SonarQube Quality Model
1286+ *
1287+ * @since 13.6
1288+ */
1289+ public static final Metric <Integer > NEW_BUGS_SEVERITY = new Metric .Builder (NEW_BUGS_SEVERITY_KEY , "New Bugs Severity" , Metric .ValueType .INT )
1290+ .setDescription ("Worst severity of new bug issues" )
1291+ .setDomain (DOMAIN_RELIABILITY )
1292+ .setDirection (Metric .DIRECTION_WORST )
1293+ .setDeleteHistoricalData (true )
1294+ .setOptimizedBestValue (true )
1295+ .setBestValue ((double ) SeverityValues .NO_ISSUES )
1296+ .setWorstValue ((double ) SeverityValues .BLOCKER )
1297+ .create ();
1298+
11981299 /**
11991300 * SonarQube Quality Model
12001301 *
@@ -1237,6 +1338,28 @@ public final class CoreMetrics {
12371338 .setDeleteHistoricalData (true )
12381339 .create ();
12391340
1341+ /**
1342+ * SonarQube Quality Model
1343+ *
1344+ * @since 13.6
1345+ */
1346+ public static final String NEW_VULNERABILITIES_SEVERITY_KEY = "new_vulnerabilities_severity" ;
1347+
1348+ /**
1349+ * SonarQube Quality Model
1350+ *
1351+ * @since 13.6
1352+ */
1353+ public static final Metric <Integer > NEW_VULNERABILITIES_SEVERITY = new Metric .Builder (NEW_VULNERABILITIES_SEVERITY_KEY , "New Vulnerabilities Severity" , Metric .ValueType .INT )
1354+ .setDescription ("Worst severity of new vulnerability issues" )
1355+ .setDomain (DOMAIN_SECURITY )
1356+ .setDirection (Metric .DIRECTION_WORST )
1357+ .setDeleteHistoricalData (true )
1358+ .setOptimizedBestValue (true )
1359+ .setBestValue ((double ) SeverityValues .NO_ISSUES )
1360+ .setWorstValue ((double ) SeverityValues .BLOCKER )
1361+ .create ();
1362+
12401363 /**
12411364 * @since 7.8
12421365 */
0 commit comments