diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2015-08-06 14:38:53 +0200 |
---|---|---|
committer | Duarte Meneses <duarte.meneses@sonarsource.com> | 2015-08-12 16:12:50 +0200 |
commit | da0e7d2eb596eeed136301cdaa38523ff8c86d54 (patch) | |
tree | 4e0dcbc4ea5ab12f48c9f807319cef76977b0d8f /sonar-batch/src/test/resources/org | |
parent | 4dc9282453526c25504570caae011283b053ed98 (diff) | |
download | sonarqube-da0e7d2eb596eeed136301cdaa38523ff8c86d54.tar.gz sonarqube-da0e7d2eb596eeed136301cdaa38523ff8c86d54.zip |
SONAR-6777 Project cache sync
Diffstat (limited to 'sonar-batch/src/test/resources/org')
-rw-r--r-- | sonar-batch/src/test/resources/org/sonar/batch/repository/DefaultProjectRepositoriesLoaderTest/sample_response.json | 2093 |
1 files changed, 2093 insertions, 0 deletions
diff --git a/sonar-batch/src/test/resources/org/sonar/batch/repository/DefaultProjectRepositoriesLoaderTest/sample_response.json b/sonar-batch/src/test/resources/org/sonar/batch/repository/DefaultProjectRepositoriesLoaderTest/sample_response.json new file mode 100644 index 00000000000..24522c42e15 --- /dev/null +++ b/sonar-batch/src/test/resources/org/sonar/batch/repository/DefaultProjectRepositoriesLoaderTest/sample_response.json @@ -0,0 +1,2093 @@ +{ + "timestamp": 0, + "qprofilesByLanguage": { + "java": { + "key": "java-sonar-way-95117", + "name": "Sonar way", + "language": "java", + "rulesUpdatedAt": "2015-08-06T17:02:00+0200" + } + }, + "activeRules": [ + { + "repositoryKey": "common-java", + "ruleKey": "DuplicatedBlocks", + "name": "Source files should not have any duplicated blocks", + "severity": "MAJOR", + "language": "java", + "params": {} + }, + { + "repositoryKey": "common-java", + "ruleKey": "InsufficientBranchCoverage", + "name": "Branches should have sufficient coverage by unit tests", + "severity": "MAJOR", + "language": "java", + "params": { + "minimumBranchCoverageRatio": "65.0" + } + }, + { + "repositoryKey": "squid", + "ruleKey": "S00105", + "name": "Tabulation characters should not be used", + "severity": "MINOR", + "internalKey": "S00105", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "MethodCyclomaticComplexity", + "name": "Methods should not be too complex", + "severity": "MAJOR", + "internalKey": "MethodCyclomaticComplexity", + "language": "java", + "params": { + "Threshold": "10" + } + }, + { + "repositoryKey": "squid", + "ruleKey": "ClassCyclomaticComplexity", + "name": "Classes should not be too complex", + "severity": "MAJOR", + "internalKey": "ClassCyclomaticComplexity", + "language": "java", + "params": { + "max": "200" + } + }, + { + "repositoryKey": "squid", + "ruleKey": "CommentedOutCodeLine", + "name": "Sections of code should not be \"commented out\"", + "severity": "MAJOR", + "internalKey": "CommentedOutCodeLine", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S00108", + "name": "Nested blocks of code should not be left empty", + "severity": "MAJOR", + "internalKey": "S00108", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S00107", + "name": "Methods should not have too many parameters", + "severity": "MAJOR", + "internalKey": "S00107", + "language": "java", + "params": { + "max": "7", + "constructorMax": "7" + } + }, + { + "repositoryKey": "squid", + "ruleKey": "S00112", + "name": "Generic exceptions should never be thrown", + "severity": "MAJOR", + "internalKey": "S00112", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S00100", + "name": "Method names should comply with a naming convention", + "severity": "MINOR", + "internalKey": "S00100", + "language": "java", + "params": { + "format": "^[a-z][a-zA-Z0-9]*$" + } + }, + { + "repositoryKey": "squid", + "ruleKey": "S00101", + "name": "Class names should comply with a naming convention", + "severity": "MINOR", + "internalKey": "S00101", + "language": "java", + "params": { + "format": "^[A-Z][a-zA-Z0-9]*$" + } + }, + { + "repositoryKey": "squid", + "ruleKey": "S00114", + "name": "Interface names should comply with a naming convention", + "severity": "MINOR", + "internalKey": "S00114", + "language": "java", + "params": { + "format": "^[A-Z][a-zA-Z0-9]*$" + } + }, + { + "repositoryKey": "squid", + "ruleKey": "S00115", + "name": "Constant names should comply with a naming convention", + "severity": "MINOR", + "internalKey": "S00115", + "language": "java", + "params": { + "format": "^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$" + } + }, + { + "repositoryKey": "squid", + "ruleKey": "S00116", + "name": "Field names should comply with a naming convention", + "severity": "MINOR", + "internalKey": "S00116", + "language": "java", + "params": { + "format": "^[a-z][a-zA-Z0-9]*$" + } + }, + { + "repositoryKey": "squid", + "ruleKey": "S3008", + "name": "Static non-final field names should comply with a naming convention", + "severity": "MINOR", + "internalKey": "S3008", + "language": "java", + "params": { + "format": "^[a-z][a-zA-Z0-9]*$" + } + }, + { + "repositoryKey": "squid", + "ruleKey": "S00117", + "name": "Local variable and method parameter names should comply with a naming convention", + "severity": "MINOR", + "internalKey": "S00117", + "language": "java", + "params": { + "format": "^[a-z][a-zA-Z0-9]*$" + } + }, + { + "repositoryKey": "squid", + "ruleKey": "S00119", + "name": "Type parameter names should comply with a naming convention", + "severity": "MINOR", + "internalKey": "S00119", + "language": "java", + "params": { + "format": "^[A-Z][0-9]?$" + } + }, + { + "repositoryKey": "squid", + "ruleKey": "S00120", + "name": "Package names should comply with a naming convention", + "severity": "MINOR", + "internalKey": "S00120", + "language": "java", + "params": { + "format": "^[a-z]+(\\.[a-z][a-z0-9]*)*$" + } + }, + { + "repositoryKey": "squid", + "ruleKey": "S00122", + "name": "Statements should be on separate lines", + "severity": "MINOR", + "internalKey": "S00122", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "RightCurlyBraceStartLineCheck", + "name": "A close curly brace should be located at the beginning of a line", + "severity": "MINOR", + "internalKey": "RightCurlyBraceStartLineCheck", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "UselessParenthesesCheck", + "name": "Useless parentheses around expressions should be removed to prevent any misunderstanding", + "severity": "MAJOR", + "internalKey": "UselessParenthesesCheck", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "ObjectFinalizeCheck", + "name": "The Object.finalize() method should not be called", + "severity": "CRITICAL", + "internalKey": "ObjectFinalizeCheck", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "ObjectFinalizeOverridenCheck", + "name": "The Object.finalize() method should not be overriden", + "severity": "CRITICAL", + "internalKey": "ObjectFinalizeOverridenCheck", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "ObjectFinalizeOverridenCallsSuperFinalizeCheck", + "name": "super.finalize() should be called at the end of Object.finalize() implementations", + "severity": "BLOCKER", + "internalKey": "ObjectFinalizeOverridenCallsSuperFinalizeCheck", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "ClassVariableVisibilityCheck", + "name": "Class variable fields should not have public accessibility", + "severity": "MAJOR", + "internalKey": "ClassVariableVisibilityCheck", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "ForLoopCounterChangedCheck", + "name": "\"for\" loop stop conditions should be invariant", + "severity": "MAJOR", + "internalKey": "ForLoopCounterChangedCheck", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "LabelsShouldNotBeUsedCheck", + "name": "Labels should not be used", + "severity": "MAJOR", + "internalKey": "LabelsShouldNotBeUsedCheck", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "SwitchLastCaseIsDefaultCheck", + "name": "\"switch\" statements should end with a \"default\" clause", + "severity": "MAJOR", + "internalKey": "SwitchLastCaseIsDefaultCheck", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "EmptyStatementUsageCheck", + "name": "Empty statements should be removed", + "severity": "MINOR", + "internalKey": "EmptyStatementUsageCheck", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "ModifiersOrderCheck", + "name": "Modifiers should be declared in the correct order", + "severity": "MINOR", + "internalKey": "ModifiersOrderCheck", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "AssignmentInSubExpressionCheck", + "name": "Assignments should not be made from within sub-expressions", + "severity": "MAJOR", + "internalKey": "AssignmentInSubExpressionCheck", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "UselessImportCheck", + "name": "Useless imports should be removed", + "severity": "MINOR", + "internalKey": "UselessImportCheck", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "LowerCaseLongSuffixCheck", + "name": "Long suffix \"L\" should be upper case", + "severity": "MINOR", + "internalKey": "LowerCaseLongSuffixCheck", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "MissingDeprecatedCheck", + "name": "Deprecated elements should have both the annotation and the Javadoc tag", + "severity": "MAJOR", + "internalKey": "MissingDeprecatedCheck", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "HiddenFieldCheck", + "name": "Local variables should not shadow class fields", + "severity": "MAJOR", + "internalKey": "HiddenFieldCheck", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1133", + "name": "Deprecated code should be removed eventually", + "severity": "INFO", + "internalKey": "S1133", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1134", + "name": "\"FIXME\" tags should be handled", + "severity": "MAJOR", + "internalKey": "S1134", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1135", + "name": "\"TODO\" tags should be handled", + "severity": "INFO", + "internalKey": "S1135", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1118", + "name": "Utility classes should not have public constructors", + "severity": "MAJOR", + "internalKey": "S1118", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1132", + "name": "Strings literals should be placed on the left side when checking for equality", + "severity": "MAJOR", + "internalKey": "S1132", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1126", + "name": "Return of boolean expressions should not be wrapped into an \"if-then-else\" statement", + "severity": "MINOR", + "internalKey": "S1126", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1125", + "name": "Literal boolean values should not be used in condition expressions", + "severity": "MINOR", + "internalKey": "S1125", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1067", + "name": "Expressions should not be too complex", + "severity": "MAJOR", + "internalKey": "S1067", + "language": "java", + "params": { + "max": "3" + } + }, + { + "repositoryKey": "squid", + "ruleKey": "S1141", + "name": "Try-catch blocks should not be nested", + "severity": "MAJOR", + "internalKey": "S1141", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1147", + "name": "Exit methods should not be called", + "severity": "CRITICAL", + "internalKey": "S1147", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1143", + "name": "\"return\" statements should not occur in \"finally\" blocks", + "severity": "BLOCKER", + "internalKey": "S1143", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1157", + "name": "Case insensitive string comparisons should be made without intermediate upper or lower casing", + "severity": "MAJOR", + "internalKey": "S1157", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1155", + "name": "Collection.isEmpty() should be used to test for emptiness", + "severity": "MAJOR", + "internalKey": "S1155", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1149", + "name": "Synchronized classes Vector, Hashtable, Stack and StringBuffer should not be used", + "severity": "MAJOR", + "internalKey": "S1149", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1171", + "name": "Only static class initializers should be used", + "severity": "MAJOR", + "internalKey": "S1171", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1168", + "name": "Empty arrays and collections should be returned instead of null", + "severity": "MAJOR", + "internalKey": "S1168", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1170", + "name": "Public constants and fields initialized at declaration should be \"static final\" rather than merely \"final\"", + "severity": "MINOR", + "internalKey": "S1170", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1163", + "name": "Exceptions should not be thrown in finally blocks", + "severity": "MAJOR", + "internalKey": "S1163", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S106", + "name": "Standard ouputs should not be used directly to log anything", + "severity": "MAJOR", + "internalKey": "S106", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1165", + "name": "Exception classes should be immutable", + "severity": "MAJOR", + "internalKey": "S1165", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1066", + "name": "Collapsible \"if\" statements should be merged", + "severity": "MAJOR", + "internalKey": "S1066", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S134", + "name": "Control flow statements \"if\", \"for\", \"while\", \"switch\" and \"try\" should not be nested too deeply", + "severity": "MAJOR", + "internalKey": "S134", + "language": "java", + "params": { + "max": "3" + } + }, + { + "repositoryKey": "squid", + "ruleKey": "S1181", + "name": "Throwable and Error should not be caught", + "severity": "BLOCKER", + "internalKey": "S1181", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1150", + "name": "Enumeration should not be implemented", + "severity": "MAJOR", + "internalKey": "S1150", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1182", + "name": "Classes that override \"clone\" should be \"Cloneable\" and call \"super.clone()\"", + "severity": "MAJOR", + "internalKey": "S1182", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1151", + "name": "\"switch case\" clauses should not have too many lines", + "severity": "MAJOR", + "internalKey": "S1151", + "language": "java", + "params": { + "max": "5" + } + }, + { + "repositoryKey": "squid", + "ruleKey": "S128", + "name": "Switch cases should end with an unconditional \"break\" statement", + "severity": "CRITICAL", + "internalKey": "S128", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1166", + "name": "Exception handlers should preserve the original exception", + "severity": "CRITICAL", + "internalKey": "S1166", + "language": "java", + "params": { + "exceptions": "java.lang.InterruptedException, java.lang.NumberFormatException, java.text.ParseException, java.net.MalformedURLException" + } + }, + { + "repositoryKey": "squid", + "ruleKey": "S1190", + "name": "Future keywords should not be used as names", + "severity": "MAJOR", + "internalKey": "S1190", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1188", + "name": "Lambdas and anonymous classes should not have too many lines", + "severity": "MAJOR", + "internalKey": "S1188", + "language": "java", + "params": { + "Max": "20" + } + }, + { + "repositoryKey": "squid", + "ruleKey": "S1191", + "name": "Classes from \"sun.*\" packages should not be used", + "severity": "MAJOR", + "internalKey": "S1191", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S135", + "name": "Loops should not contain more than a single \"break\" or \"continue\" statement", + "severity": "MAJOR", + "internalKey": "S135", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1186", + "name": "Methods should not be empty", + "severity": "MAJOR", + "internalKey": "S1186", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1185", + "name": "Overriding methods should do more than simply call the same method in the super class", + "severity": "MINOR", + "internalKey": "S1185", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1174", + "name": "\"Object.finalize()\" should remain protected (versus public) when overriding", + "severity": "MAJOR", + "internalKey": "S1174", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1175", + "name": "The signature of \"finalize()\" should match that of \"Object.finalize()\"", + "severity": "MAJOR", + "internalKey": "S1175", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1153", + "name": "String.valueOf() should not be appended to a String", + "severity": "MINOR", + "internalKey": "S1153", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1148", + "name": "Throwable.printStackTrace(...) should not be called", + "severity": "CRITICAL", + "internalKey": "S1148", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1195", + "name": "Array designators \"[]\" should be located after the type in method signatures", + "severity": "MINOR", + "internalKey": "S1195", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1194", + "name": "\"java.lang.Error\" should not be extended", + "severity": "MAJOR", + "internalKey": "S1194", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1193", + "name": "Exception types should not be tested using \"instanceof\" in catch blocks", + "severity": "MAJOR", + "internalKey": "S1193", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1192", + "name": "String literals should not be duplicated", + "severity": "MINOR", + "internalKey": "S1192", + "language": "java", + "params": { + "threshold": "3" + } + }, + { + "repositoryKey": "squid", + "ruleKey": "S1158", + "name": "Primitive wrappers should not be instantiated only for \"toString\" or \"compareTo\" calls", + "severity": "MAJOR", + "internalKey": "S1158", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1215", + "name": "Execution of the Garbage Collector should be triggered only by the JVM", + "severity": "CRITICAL", + "internalKey": "S1215", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1197", + "name": "Array designators \"[]\" should be on the type, not the variable", + "severity": "MINOR", + "internalKey": "S1197", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1220", + "name": "The default unnamed package should not be used", + "severity": "MINOR", + "internalKey": "S1220", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1221", + "name": "Methods should not be named \"hashcode\" or \"equal\"", + "severity": "CRITICAL", + "internalKey": "S1221", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1199", + "name": "Nested code blocks should not be used", + "severity": "MAJOR", + "internalKey": "S1199", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1214", + "name": "Constants should not be defined in interfaces", + "severity": "MINOR", + "internalKey": "S1214", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1201", + "name": "Methods named \"equals\" should override Object.equals(Object)", + "severity": "CRITICAL", + "internalKey": "S1201", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1210", + "name": "\"equals(Object obj)\" should be overridden along with the \"compareTo(T obj)\" method", + "severity": "CRITICAL", + "internalKey": "S1210", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1206", + "name": "\"equals(Object obj)\" and \"hashCode()\" should be overridden in pairs", + "severity": "BLOCKER", + "internalKey": "S1206", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1219", + "name": "\"switch\" statements should not contain non-case labels", + "severity": "CRITICAL", + "internalKey": "S1219", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1301", + "name": "\"switch\" statements should have at least 3 \"case\" clauses", + "severity": "MINOR", + "internalKey": "S1301", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1314", + "name": "Octal values should not be used", + "severity": "MAJOR", + "internalKey": "S1314", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1226", + "name": "Method parameters, caught exceptions and foreach variables should not be reassigned", + "severity": "MAJOR", + "internalKey": "S1226", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1313", + "name": "IP addresses should not be hardcoded", + "severity": "MAJOR", + "internalKey": "S1313", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1312", + "name": "Loggers should be \"private static final\" and should share a naming convention", + "severity": "MINOR", + "internalKey": "S1312", + "language": "java", + "params": { + "format": "LOG(?:GER)?" + } + }, + { + "repositoryKey": "squid", + "ruleKey": "S1223", + "name": "Non-constructor methods should not have the same name as the enclosing class", + "severity": "MAJOR", + "internalKey": "S1223", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1319", + "name": "Declarations should use Java collection interfaces such as \"List\" rather than specific implementation classes such as \"LinkedList\"", + "severity": "MAJOR", + "internalKey": "S1319", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1213", + "name": "The members of an interface declaration or class should appear in a pre-defined order", + "severity": "MINOR", + "internalKey": "S1213", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1444", + "name": ":", + "severity": "CRITICAL", + "internalKey": "S1444", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1452", + "name": "Generic wildcard types should not be used in return parameters", + "severity": "MAJOR", + "internalKey": "S1452", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1481", + "name": "Unused local variables should be removed", + "severity": "MAJOR", + "internalKey": "S1481", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1068", + "name": "Unused private fields should be removed", + "severity": "MAJOR", + "internalKey": "S1068", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1317", + "name": "\"StringBuilder\" and \"StringBuffer\" should not be instantiated with a character", + "severity": "MAJOR", + "internalKey": "S1317", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1596", + "name": "Collections.emptyList(), emptyMap() and emptySet() should be used instead of Collections.EMPTY_LIST, EMPTY_MAP and EMPTY_SET", + "severity": "MAJOR", + "internalKey": "S1596", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "UnusedPrivateMethod", + "name": "Unused private method should be removed", + "severity": "MAJOR", + "internalKey": "UnusedPrivateMethod", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "RedundantThrowsDeclarationCheck", + "name": "Throws declarations should not be superfluous", + "severity": "MINOR", + "internalKey": "RedundantThrowsDeclarationCheck", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1160", + "name": "Public methods should throw at most one checked exception", + "severity": "MAJOR", + "internalKey": "S1160", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1217", + "name": "Thread.run() and Runnable.run() should not be called directly", + "severity": "CRITICAL", + "internalKey": "S1217", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1862", + "name": "Related \"if/else if\" statements should not have the same condition", + "severity": "CRITICAL", + "internalKey": "S1862", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1488", + "name": "Local Variables should not be declared and then immediately returned or thrown", + "severity": "MINOR", + "internalKey": "S1488", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1602", + "name": "Lamdbas containing only one statement should not nest this statement in a block", + "severity": "MAJOR", + "internalKey": "S1602", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1611", + "name": "Parentheses should be removed from a single lambda input parameter when its type is inferred", + "severity": "MINOR", + "internalKey": "S1611", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1700", + "name": "A field should not duplicate the name of its containing class", + "severity": "MAJOR", + "internalKey": "S1700", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1172", + "name": "Unused method parameters should be removed", + "severity": "MAJOR", + "internalKey": "S1172", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1598", + "name": "Package declaration should match source file directory", + "severity": "MAJOR", + "internalKey": "S1598", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1873", + "name": "\"static final\" arrays should be \"private\"", + "severity": "CRITICAL", + "internalKey": "S1873", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1948", + "name": "Fields in a \"Serializable\" class should either be transient or serializable", + "severity": "CRITICAL", + "internalKey": "S1948", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1479", + "name": "\"switch\" statements should not have too many \"case\" clauses", + "severity": "MAJOR", + "internalKey": "S1479", + "language": "java", + "params": { + "maximum": "30" + } + }, + { + "repositoryKey": "squid", + "ruleKey": "S1764", + "name": "Identical expressions should not be used on both sides of a binary operator", + "severity": "CRITICAL", + "internalKey": "S1764", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1244", + "name": "Floating point numbers should not be tested for equality", + "severity": "CRITICAL", + "internalKey": "S1244", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2077", + "name": "Values passed to SQL commands should be sanitized", + "severity": "CRITICAL", + "internalKey": "S2077", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1161", + "name": "\"@Override\" annotation should be used on any method overriding (since Java 5) or implementing (since Java 6) another one", + "severity": "MAJOR", + "internalKey": "S1161", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1994", + "name": "\"for\" loop incrementers should modify the variable being tested in the loop\u0027s stop condition", + "severity": "CRITICAL", + "internalKey": "S1994", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2094", + "name": "Classes should not be empty", + "severity": "MAJOR", + "internalKey": "S2094", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1850", + "name": "\"instanceof\" operators that always return \"true\" or \"false\" should be removed", + "severity": "MAJOR", + "internalKey": "S1850", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1905", + "name": "Redundant casts should not be used", + "severity": "MINOR", + "internalKey": "S1905", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2114", + "name": "Collections should not be passed as arguments to their own methods", + "severity": "CRITICAL", + "internalKey": "S2114", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1065", + "name": "Unused labels should be removed", + "severity": "MAJOR", + "internalKey": "S1065", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2184", + "name": "Math operands should be cast before assignment", + "severity": "MAJOR", + "internalKey": "S2184", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2225", + "name": "\"toString()\" and \"clone()\" methods should not return null", + "severity": "CRITICAL", + "internalKey": "S2225", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2230", + "name": "Non-public methods should not be \"@Transactional\"", + "severity": "CRITICAL", + "internalKey": "S2230", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2200", + "name": "\"compareTo\" results should not be checked for specific values", + "severity": "MAJOR", + "internalKey": "S2200", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2092", + "name": "Cookies should be \"secure\"", + "severity": "CRITICAL", + "internalKey": "S2092", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1848", + "name": "Objects should not be created to be dropped immediately without being used", + "severity": "CRITICAL", + "internalKey": "S1848", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2235", + "name": "IllegalMonitorStateException should not be caught", + "severity": "CRITICAL", + "internalKey": "S2235", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S888", + "name": "Relational operators should be used in \"for\" loop termination conditions", + "severity": "CRITICAL", + "internalKey": "S888", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2068", + "name": "Credentials should not be hard-coded", + "severity": "CRITICAL", + "internalKey": "S2068", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2232", + "name": "\"ResultSet.isLast()\" should not be used", + "severity": "CRITICAL", + "internalKey": "S2232", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1849", + "name": "\"Iterator.hasNext()\" should not call \"Iterator.next()\"", + "severity": "BLOCKER", + "internalKey": "S1849", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2236", + "name": "Methods \"wait(...)\", \"notify()\" and \"notifyAll()\" should never be called on Thread instances", + "severity": "BLOCKER", + "internalKey": "S2236", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1844", + "name": "\"Object.wait(...)\" should never be called on objects that implement \"java.util.concurrent.locks.Condition\"", + "severity": "BLOCKER", + "internalKey": "S1844", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2251", + "name": "A \"for\" loop update clause should move the counter in the right direction", + "severity": "BLOCKER", + "internalKey": "S2251", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2252", + "name": "Loop conditions should be true at least once", + "severity": "CRITICAL", + "internalKey": "S2252", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2254", + "name": "\"HttpServletRequest.getRequestedSessionId()\" should not be used", + "severity": "CRITICAL", + "internalKey": "S2254", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2250", + "name": "\"ConcurrentLinkedQueue.size()\" should not be used", + "severity": "CRITICAL", + "internalKey": "S2250", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2226", + "name": "Servlets should never have mutable instance fields", + "severity": "CRITICAL", + "internalKey": "S2226", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2111", + "name": "\"BigDecimal(double)\" should not be used", + "severity": "CRITICAL", + "internalKey": "S2111", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2109", + "name": "Reflection should not be used to check non-runtime annotations", + "severity": "BLOCKER", + "internalKey": "S2109", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2273", + "name": "\"wait(...)\", \"notify()\" and \"notifyAll()\" methods should only be called when a lock is obviously held on an object", + "severity": "CRITICAL", + "internalKey": "S2273", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2276", + "name": "\"wait(...)\" should be used instead of \"Thread.sleep(...)\" when a lock is held", + "severity": "CRITICAL", + "internalKey": "S2276", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2274", + "name": "\"Object.wait(...)\" and \"Condition.await(...)\" should be called inside a \"while\" loop", + "severity": "CRITICAL", + "internalKey": "S2274", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2272", + "name": "\"Iterator.next()\" methods should throw \"NoSuchElementException\"", + "severity": "MAJOR", + "internalKey": "S2272", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2277", + "name": "Cryptographic RSA algorithms should always incorporate OAEP (Optimal Asymmetric Encryption Padding)", + "severity": "CRITICAL", + "internalKey": "S2277", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2204", + "name": "\".equals()\" should not be used to test the values of \"Atomic\" classes", + "severity": "BLOCKER", + "internalKey": "S2204", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2178", + "name": "Short-circuit logic should be used in boolean contexts", + "severity": "CRITICAL", + "internalKey": "S2178", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2116", + "name": "\"hashCode\" and \"toString\" should not be called on array instances", + "severity": "CRITICAL", + "internalKey": "S2116", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2157", + "name": "\"Cloneables\" should implement \"clone\"", + "severity": "CRITICAL", + "internalKey": "S2157", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2275", + "name": "Printf-style format strings should not lead to unexpected behavior at runtime", + "severity": "CRITICAL", + "internalKey": "S2275", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2151", + "name": "\"runFinalizersOnExit\" should not be called", + "severity": "BLOCKER", + "internalKey": "S2151", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2127", + "name": "\"Double.longBitsToDouble\" should not be used for \"int\"", + "severity": "BLOCKER", + "internalKey": "S2127", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1860", + "name": "Synchronization should not be based on Strings or boxed primitives", + "severity": "BLOCKER", + "internalKey": "S1860", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2055", + "name": "The non-serializable super class of a \"Serializable\" class must have a no-argument constructor", + "severity": "CRITICAL", + "internalKey": "S2055", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2118", + "name": "Non-serializable classes should not be written", + "severity": "CRITICAL", + "internalKey": "S2118", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2066", + "name": "\"Serializable\" inner classes of non-serializable classes should be \"static\"", + "severity": "CRITICAL", + "internalKey": "S2066", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2065", + "name": "Fields in non-serializable classes should not be \"transient\"", + "severity": "MINOR", + "internalKey": "S2065", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2061", + "name": "Custom serialization method signatures should meet requirements", + "severity": "CRITICAL", + "internalKey": "S2061", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2176", + "name": "Class names should not shadow interfaces or superclasses", + "severity": "MAJOR", + "internalKey": "S2176", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2130", + "name": "Parsing should be used to convert \"Strings\" to primitives", + "severity": "MAJOR", + "internalKey": "S2130", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2166", + "name": "Classes named like \"Exception\" should extend \"Exception\" or a subclass", + "severity": "MAJOR", + "internalKey": "S2166", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2153", + "name": "Boxing and unboxing should not be immediately reversed", + "severity": "MAJOR", + "internalKey": "S2153", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2326", + "name": "Unused type parameters should be removed", + "severity": "MAJOR", + "internalKey": "S2326", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2386", + "name": "Interfaces should not have \"public static\" mutable fields", + "severity": "CRITICAL", + "internalKey": "S2386", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2183", + "name": "Ints and longs should not be shifted by more than their number of bits-1", + "severity": "CRITICAL", + "internalKey": "S2183", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2167", + "name": "\"compareTo\" should not return \"Integer.MIN_VALUE\"", + "severity": "CRITICAL", + "internalKey": "S2167", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2165", + "name": "\"finalize\" should not set fields to \"null\"", + "severity": "MAJOR", + "internalKey": "S2165", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2122", + "name": "\"ScheduledThreadPoolExecutor\" should not have 0 core threads", + "severity": "BLOCKER", + "internalKey": "S2122", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2134", + "name": "Classes extending java.lang.Thread should override the \"run\" method", + "severity": "MAJOR", + "internalKey": "S2134", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2175", + "name": "Inappropriate \"Collection\" calls should not be made", + "severity": "CRITICAL", + "internalKey": "S2175", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2447", + "name": "Null should not be returned from a \"Boolean\" method", + "severity": "CRITICAL", + "internalKey": "S2447", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2131", + "name": "Primitives should not be boxed just for \"String\" conversion", + "severity": "MAJOR", + "internalKey": "S2131", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2437", + "name": "Silly bit operations should not be performed", + "severity": "MAJOR", + "internalKey": "S2437", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2110", + "name": "Invalid \"Date\" values should not be used", + "severity": "CRITICAL", + "internalKey": "S2110", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2160", + "name": "Subclasses that add fields should override \"equals\"", + "severity": "MAJOR", + "internalKey": "S2160", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1872", + "name": "Classes should not be compared by name", + "severity": "CRITICAL", + "internalKey": "S1872", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2440", + "name": "Classes with only \"static\" methods should not be instantiated", + "severity": "MAJOR", + "internalKey": "S2440", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2441", + "name": "Non-serializable objects should not be stored in \"HttpSessions\"", + "severity": "CRITICAL", + "internalKey": "S2441", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2123", + "name": "Values should not be uselessly incremented", + "severity": "CRITICAL", + "internalKey": "S2123", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2133", + "name": "Objects should not be created only to \"getClass\"", + "severity": "MAJOR", + "internalKey": "S2133", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2154", + "name": "Dissimilar primitive wrappers should not be used with the ternary operator without explicit casting", + "severity": "CRITICAL", + "internalKey": "S2154", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2442", + "name": "\"Lock\" objects should not be \"synchronized\"", + "severity": "BLOCKER", + "internalKey": "S2442", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2388", + "name": "Inner class calls to super class methods should be unambiguous", + "severity": "MAJOR", + "internalKey": "S2388", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2438", + "name": "\"Threads\" should not be used where \"Runnables\" are expected", + "severity": "CRITICAL", + "internalKey": "S2438", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2259", + "name": "Null pointers should not be dereferenced", + "severity": "BLOCKER", + "internalKey": "S2259", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2583", + "name": "Conditions should not unconditionally evaluate to \"TRUE\" or to \"FALSE\"", + "severity": "BLOCKER", + "internalKey": "S2583", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2696", + "name": "Instance methods should not write to \"static\" fields", + "severity": "CRITICAL", + "internalKey": "S2696", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2674", + "name": "The value returned from a stream read should be checked", + "severity": "CRITICAL", + "internalKey": "S2674", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2695", + "name": "\"PreparedStatement\" and \"ResultSet\" methods should be called with valid indices", + "severity": "BLOCKER", + "internalKey": "S2695", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2112", + "name": "\"URL.hashCode\" and \"URL.equals\" should be avoided", + "severity": "CRITICAL", + "internalKey": "S2112", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2387", + "name": "Child class members should not shadow parent class members", + "severity": "MAJOR", + "internalKey": "S2387", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2786", + "name": "Nested \"enum\"s should not be declared static", + "severity": "MAJOR", + "internalKey": "S2786", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2095", + "name": "Resources should be closed", + "severity": "BLOCKER", + "internalKey": "S2095", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2677", + "name": "\"read\" and \"readLine\" return values should be used", + "severity": "BLOCKER", + "internalKey": "S2677", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1858", + "name": "\"toString()\" should never be called on a String object", + "severity": "MAJOR", + "internalKey": "S1858", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2864", + "name": "\"entrySet()\" should be iterated when both the key and value are needed", + "severity": "MAJOR", + "internalKey": "S2864", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2692", + "name": "\"indexOf\" checks should not be for positive numbers", + "severity": "CRITICAL", + "internalKey": "S2692", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2675", + "name": "\"readObject\" should not be \"synchronized\"", + "severity": "MAJOR", + "internalKey": "S2675", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2676", + "name": "Neither \"Math.abs\" nor negation should be used on numbers that could be \"MIN_VALUE\"", + "severity": "CRITICAL", + "internalKey": "S2676", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2885", + "name": "\"Calendars\" and \"DateFormats\" should not be static", + "severity": "CRITICAL", + "internalKey": "S2885", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2222", + "name": "Locks should be released", + "severity": "CRITICAL", + "internalKey": "S2222", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2097", + "name": "\"equals(Object obj)\" should test argument type", + "severity": "BLOCKER", + "internalKey": "S2097", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2185", + "name": "Silly math should not be performed", + "severity": "MAJOR", + "internalKey": "S2185", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2159", + "name": "Silly equality checks should not be made", + "severity": "MAJOR", + "internalKey": "S2159", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2912", + "name": "\"indexOf\" checks should use a start position", + "severity": "MAJOR", + "internalKey": "S2912", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2325", + "name": "\"private\" methods that don\u0027t access instance data should be \"static\"", + "severity": "MINOR", + "internalKey": "S2325", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1264", + "name": "A \"while\" loop should be used instead of a \"for\" loop", + "severity": "MINOR", + "internalKey": "S1264", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2681", + "name": "Multiline blocks should be enclosed in curly braces", + "severity": "CRITICAL", + "internalKey": "S2681", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1640", + "name": "Maps with keys that are enum values should be replaced with EnumMap", + "severity": "MAJOR", + "internalKey": "S1640", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2976", + "name": "\"File.createTempFile\" should not be used to create a directory", + "severity": "CRITICAL", + "internalKey": "S2976", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2188", + "name": "JUnit test cases should call super methods", + "severity": "CRITICAL", + "internalKey": "S2188", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2186", + "name": "JUnit assertions should not be used in \"run\" methods", + "severity": "CRITICAL", + "internalKey": "S2186", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2187", + "name": "TestCases should contain tests", + "severity": "MAJOR", + "internalKey": "S2187", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2391", + "name": "JUnit framework methods should be declared properly", + "severity": "CRITICAL", + "internalKey": "S2391", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2970", + "name": "Assertions should be complete", + "severity": "CRITICAL", + "internalKey": "S2970", + "language": "java", + "params": {} + } + ], + "settingsByModule": {}, + "fileDataByModuleAndPath": { + "my:project": { + "src/test/java/org/sonar/plugins/scm/jazzrtc/UTCRule.java": { + "hash": "e80b5df219bc78ed5c498988d9f23d37", + "needBlame": true + }, + "src/test/java/org/sonar/plugins/scm/jazzrtc/JazzRtcScmProviderTest.java": { + "hash": "6f4f93e1016714869a2008de7df3d207", + "needBlame": true + }, + "src/test/java/org/sonar/plugins/scm/jazzrtc/JazzRtcBlameCommandTest.java": { + "hash": "0ab25adb0ae40d826ea23998a362a7ef", + "needBlame": true + }, + "src/main/java/org/sonar/plugins/scm/jazzrtc/JazzRtcConfiguration.java": { + "hash": "23961c33f6388248ae3530dbc8988e72", + "needBlame": true + }, + "src/main/java/org/sonar/plugins/scm/jazzrtc/package-info.java": { + "hash": "afdb44120bc13f6fd36be27040408ac0", + "needBlame": true + }, + "src/test/java/org/sonar/plugins/scm/jazzrtc/JazzRtcBlameConsumerTest.java": { + "hash": "cd9f105580a53c702e0b721899314348", + "needBlame": true + }, + "src/main/java/org/sonar/plugins/scm/jazzrtc/JazzRtcBlameConsumer.java": { + "hash": "fff6441cd4193c275f12221355658883", + "needBlame": true + }, + "src/main/java/org/sonar/plugins/scm/jazzrtc/JazzRtcScmProvider.java": { + "hash": "f047b734b6653a5126f8c278dc6aa1a5", + "needBlame": true + }, + "src/test/java/org/sonar/plugins/scm/jazzrtc/JazzRtcPluginTest.java": { + "hash": "688b065dcf12a55b363acf7901f9a6de", + "needBlame": true + }, + "src/main/java/org/sonar/plugins/scm/jazzrtc/JazzRtcBlameCommand.java": { + "hash": "9646e0be0c460017af98505e8ab5578a", + "needBlame": true + }, + "src/main/java/org/sonar/plugins/scm/jazzrtc/JazzRtcPlugin.java": { + "hash": "c9fd9a67b28d610165edbb29d8975d00", + "needBlame": true + } + } + }, + "lastAnalysisDate": "2015-08-06T17:06:58+0200" +}
\ No newline at end of file |