diff --git a/its/ruling/src/test/resources/expected/java-time-example-less-threshold/java-S109.sarif b/its/ruling/src/test/resources/expected/java-time-example-less-threshold/java-S109.sarif new file mode 100644 index 00000000000..e3ece6b4032 --- /dev/null +++ b/its/ruling/src/test/resources/expected/java-time-example-less-threshold/java-S109.sarif @@ -0,0 +1,5826 @@ +{ + "$schema" : "https://json.schemastore.org/sarif-2.1.0.json", + "version" : "2.1.0", + "runs" : [ { + "tool" : { + "driver" : { + "name" : "LITS", + "language" : "en-US", + "contents" : [ "localizedData", "nonLocalizedData" ], + "isComprehensive" : false + } + }, + "language" : "en-US", + "results" : [ { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 12, + "startColumn" : 18, + "endLine" : 12, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 10 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 12, + "startColumn" : 39, + "endLine" : 12, + "endColumn" : 41 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 13, + "startColumn" : 18, + "endLine" : 13, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 15 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 13, + "startColumn" : 40, + "endLine" : 13, + "endColumn" : 42 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 14, + "startColumn" : 18, + "endLine" : 14, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 20 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 14, + "startColumn" : 37, + "endLine" : 14, + "endColumn" : 39 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 15, + "startColumn" : 18, + "endLine" : 15, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 5 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 15, + "startColumn" : 37, + "endLine" : 15, + "endColumn" : 38 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 16, + "startColumn" : 18, + "endLine" : 16, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 17, + "startColumn" : 18, + "endLine" : 17, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 18 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 17, + "startColumn" : 36, + "endLine" : 17, + "endColumn" : 38 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 18, + "startColumn" : 22, + "endLine" : 18, + "endColumn" : 26 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 4 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 18, + "startColumn" : 40, + "endLine" : 18, + "endColumn" : 41 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 10 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 18, + "startColumn" : 43, + "endLine" : 18, + "endColumn" : 45 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 19, + "startColumn" : 22, + "endLine" : 19, + "endColumn" : 26 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 22 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 19, + "startColumn" : 42, + "endLine" : 19, + "endColumn" : 44 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 9 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 19, + "startColumn" : 46, + "endLine" : 19, + "endColumn" : 47 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 30 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 19, + "startColumn" : 49, + "endLine" : 19, + "endColumn" : 51 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 20, + "startColumn" : 22, + "endLine" : 20, + "endColumn" : 26 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 9 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 20, + "startColumn" : 28, + "endLine" : 20, + "endColumn" : 29 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 8 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 20, + "startColumn" : 34, + "endLine" : 20, + "endColumn" : 35 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 21, + "startColumn" : 22, + "endLine" : 21, + "endColumn" : 26 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 10 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 21, + "startColumn" : 28, + "endLine" : 21, + "endColumn" : 30 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 31 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 21, + "startColumn" : 32, + "endLine" : 21, + "endColumn" : 34 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 23 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 21, + "startColumn" : 36, + "endLine" : 21, + "endColumn" : 38 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 22, + "startColumn" : 22, + "endLine" : 22, + "endColumn" : 26 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 5 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 22, + "startColumn" : 44, + "endLine" : 22, + "endColumn" : 45 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 17 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 22, + "startColumn" : 47, + "endLine" : 22, + "endColumn" : 49 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 23, + "startColumn" : 22, + "endLine" : 23, + "endColumn" : 26 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 12 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 23, + "startColumn" : 28, + "endLine" : 23, + "endColumn" : 30 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 25 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 23, + "startColumn" : 32, + "endLine" : 23, + "endColumn" : 34 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 15 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 23, + "startColumn" : 36, + "endLine" : 23, + "endColumn" : 38 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 24, + "startColumn" : 18, + "endLine" : 24, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 25, + "startColumn" : 18, + "endLine" : 25, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 3 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 25, + "startColumn" : 24, + "endLine" : 25, + "endColumn" : 25 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 26, + "startColumn" : 18, + "endLine" : 26, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 6 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 26, + "startColumn" : 24, + "endLine" : 26, + "endColumn" : 25 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 27, + "startColumn" : 18, + "endLine" : 27, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 28, + "startColumn" : 18, + "endLine" : 28, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 11 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 28, + "startColumn" : 24, + "endLine" : 28, + "endColumn" : 26 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 3 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 30, + "startColumn" : 17, + "endLine" : 30, + "endColumn" : 18 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 17 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 30, + "startColumn" : 20, + "endLine" : 30, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 12 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 31, + "startColumn" : 17, + "endLine" : 31, + "endColumn" : 19 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 25 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 31, + "startColumn" : 21, + "endLine" : 31, + "endColumn" : 23 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 13, + "startColumn" : 18, + "endLine" : 13, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 14 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 13, + "startColumn" : 40, + "endLine" : 13, + "endColumn" : 42 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 14, + "startColumn" : 18, + "endLine" : 14, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 8 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 14, + "startColumn" : 37, + "endLine" : 14, + "endColumn" : 38 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 15, + "startColumn" : 18, + "endLine" : 15, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 22 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 15, + "startColumn" : 37, + "endLine" : 15, + "endColumn" : 39 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 16, + "startColumn" : 18, + "endLine" : 16, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 9 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 16, + "startColumn" : 35, + "endLine" : 16, + "endColumn" : 36 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 17, + "startColumn" : 18, + "endLine" : 17, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 21 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 17, + "startColumn" : 36, + "endLine" : 17, + "endColumn" : 38 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 18, + "startColumn" : 18, + "endLine" : 18, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 14 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 18, + "startColumn" : 36, + "endLine" : 18, + "endColumn" : 38 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 19, + "startColumn" : 22, + "endLine" : 19, + "endColumn" : 26 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 8 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 19, + "startColumn" : 42, + "endLine" : 19, + "endColumn" : 43 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 8 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 19, + "startColumn" : 45, + "endLine" : 19, + "endColumn" : 46 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 8 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 19, + "startColumn" : 48, + "endLine" : 19, + "endColumn" : 49 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 20, + "startColumn" : 22, + "endLine" : 20, + "endColumn" : 26 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 9 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 20, + "startColumn" : 45, + "endLine" : 20, + "endColumn" : 46 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 9 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 20, + "startColumn" : 48, + "endLine" : 20, + "endColumn" : 49 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 9 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 20, + "startColumn" : 51, + "endLine" : 20, + "endColumn" : 52 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 21, + "startColumn" : 22, + "endLine" : 21, + "endColumn" : 26 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 10 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 21, + "startColumn" : 28, + "endLine" : 21, + "endColumn" : 30 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 10 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 21, + "startColumn" : 32, + "endLine" : 21, + "endColumn" : 34 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 10 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 21, + "startColumn" : 36, + "endLine" : 21, + "endColumn" : 38 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 10 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 21, + "startColumn" : 40, + "endLine" : 21, + "endColumn" : 42 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 22, + "startColumn" : 22, + "endLine" : 22, + "endColumn" : 26 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 11 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 22, + "startColumn" : 28, + "endLine" : 22, + "endColumn" : 30 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 11 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 22, + "startColumn" : 32, + "endLine" : 22, + "endColumn" : 34 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 11 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 22, + "startColumn" : 36, + "endLine" : 22, + "endColumn" : 38 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 11 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 22, + "startColumn" : 40, + "endLine" : 22, + "endColumn" : 42 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 23, + "startColumn" : 22, + "endLine" : 23, + "endColumn" : 26 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 12 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 23, + "startColumn" : 44, + "endLine" : 23, + "endColumn" : 46 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 12 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 23, + "startColumn" : 48, + "endLine" : 23, + "endColumn" : 50 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 12 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 23, + "startColumn" : 52, + "endLine" : 23, + "endColumn" : 54 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2025 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 24, + "startColumn" : 22, + "endLine" : 24, + "endColumn" : 26 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 15 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 24, + "startColumn" : 31, + "endLine" : 24, + "endColumn" : 33 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 7 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 24, + "startColumn" : 35, + "endLine" : 24, + "endColumn" : 36 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2025 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 25, + "startColumn" : 18, + "endLine" : 25, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 25, + "startColumn" : 24, + "endLine" : 25, + "endColumn" : 25 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2025 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 26, + "startColumn" : 18, + "endLine" : 26, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 4 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 26, + "startColumn" : 24, + "endLine" : 26, + "endColumn" : 25 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2025 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 27, + "startColumn" : 18, + "endLine" : 27, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 7 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 27, + "startColumn" : 24, + "endLine" : 27, + "endColumn" : 25 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2025 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 28, + "startColumn" : 18, + "endLine" : 28, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 29, + "startColumn" : 17, + "endLine" : 29, + "endColumn" : 18 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 14 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 29, + "startColumn" : 20, + "endLine" : 29, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 5 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 30, + "startColumn" : 17, + "endLine" : 30, + "endColumn" : 18 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 5 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 32, + "startColumn" : 18, + "endLine" : 32, + "endColumn" : 19 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2025 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 33, + "startColumn" : 18, + "endLine" : 33, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 11 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 33, + "startColumn" : 24, + "endLine" : 33, + "endColumn" : 26 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 3 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 33, + "startColumn" : 28, + "endLine" : 33, + "endColumn" : 29 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 13, + "startColumn" : 18, + "endLine" : 13, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 20 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 13, + "startColumn" : 39, + "endLine" : 13, + "endColumn" : 41 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 14, + "startColumn" : 18, + "endLine" : 14, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 28 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 14, + "startColumn" : 40, + "endLine" : 14, + "endColumn" : 42 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 15, + "startColumn" : 18, + "endLine" : 15, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 31 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 15, + "startColumn" : 37, + "endLine" : 15, + "endColumn" : 39 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 16, + "startColumn" : 18, + "endLine" : 16, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 15 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 16, + "startColumn" : 37, + "endLine" : 16, + "endColumn" : 39 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 17, + "startColumn" : 18, + "endLine" : 17, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 20 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 17, + "startColumn" : 38, + "endLine" : 17, + "endColumn" : 40 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 18, + "startColumn" : 18, + "endLine" : 18, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 10 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 18, + "startColumn" : 41, + "endLine" : 18, + "endColumn" : 43 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 19, + "startColumn" : 22, + "endLine" : 19, + "endColumn" : 26 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 5 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 19, + "startColumn" : 39, + "endLine" : 19, + "endColumn" : 40 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 5 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 19, + "startColumn" : 42, + "endLine" : 19, + "endColumn" : 43 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 5 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 19, + "startColumn" : 45, + "endLine" : 19, + "endColumn" : 46 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 20, + "startColumn" : 22, + "endLine" : 20, + "endColumn" : 26 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 6 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 20, + "startColumn" : 40, + "endLine" : 20, + "endColumn" : 41 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 6 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 20, + "startColumn" : 43, + "endLine" : 20, + "endColumn" : 44 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 6 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 20, + "startColumn" : 46, + "endLine" : 20, + "endColumn" : 47 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 21, + "startColumn" : 22, + "endLine" : 21, + "endColumn" : 26 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 7 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 21, + "startColumn" : 28, + "endLine" : 21, + "endColumn" : 29 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 7 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 21, + "startColumn" : 31, + "endLine" : 21, + "endColumn" : 32 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 7 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 21, + "startColumn" : 34, + "endLine" : 21, + "endColumn" : 35 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 7 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 21, + "startColumn" : 37, + "endLine" : 21, + "endColumn" : 38 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 22, + "startColumn" : 22, + "endLine" : 22, + "endColumn" : 26 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 10 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 22, + "startColumn" : 28, + "endLine" : 22, + "endColumn" : 30 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 15 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 22, + "startColumn" : 32, + "endLine" : 22, + "endColumn" : 34 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 14 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 22, + "startColumn" : 36, + "endLine" : 22, + "endColumn" : 38 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 23, + "startColumn" : 22, + "endLine" : 23, + "endColumn" : 26 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 30 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 23, + "startColumn" : 43, + "endLine" : 23, + "endColumn" : 45 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 18 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 23, + "startColumn" : 47, + "endLine" : 23, + "endColumn" : 49 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2025 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 24, + "startColumn" : 22, + "endLine" : 24, + "endColumn" : 26 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 3 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 24, + "startColumn" : 28, + "endLine" : 24, + "endColumn" : 29 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 3 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 24, + "startColumn" : 31, + "endLine" : 24, + "endColumn" : 32 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 3 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 24, + "startColumn" : 34, + "endLine" : 24, + "endColumn" : 35 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 3 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 24, + "startColumn" : 37, + "endLine" : 24, + "endColumn" : 38 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 25, + "startColumn" : 18, + "endLine" : 25, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 5 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 25, + "startColumn" : 24, + "endLine" : 25, + "endColumn" : 25 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 26, + "startColumn" : 18, + "endLine" : 26, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 8 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 26, + "startColumn" : 24, + "endLine" : 26, + "endColumn" : 25 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2025 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 27, + "startColumn" : 18, + "endLine" : 27, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 3 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 27, + "startColumn" : 24, + "endLine" : 27, + "endColumn" : 25 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2025 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 28, + "startColumn" : 18, + "endLine" : 28, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 6 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 29, + "startColumn" : 17, + "endLine" : 29, + "endColumn" : 18 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 21 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 29, + "startColumn" : 20, + "endLine" : 29, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 9 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 30, + "startColumn" : 17, + "endLine" : 30, + "endColumn" : 18 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 22 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 30, + "startColumn" : 20, + "endLine" : 30, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 6 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 32, + "startColumn" : 18, + "endLine" : 32, + "endColumn" : 19 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2025 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 33, + "startColumn" : 18, + "endLine" : 33, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 10 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 33, + "startColumn" : 24, + "endLine" : 33, + "endColumn" : 26 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 15 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 33, + "startColumn" : 28, + "endLine" : 33, + "endColumn" : 30 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 13, + "startColumn" : 18, + "endLine" : 13, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 14, + "startColumn" : 18, + "endLine" : 14, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 15, + "startColumn" : 18, + "endLine" : 15, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 14 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 15, + "startColumn" : 36, + "endLine" : 15, + "endColumn" : 38 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 16, + "startColumn" : 18, + "endLine" : 16, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 17, + "startColumn" : 18, + "endLine" : 17, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 18, + "startColumn" : 18, + "endLine" : 18, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 26 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 18, + "startColumn" : 40, + "endLine" : 18, + "endColumn" : 42 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 19, + "startColumn" : 22, + "endLine" : 19, + "endColumn" : 26 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 6 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 19, + "startColumn" : 43, + "endLine" : 19, + "endColumn" : 44 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 20, + "startColumn" : 22, + "endLine" : 20, + "endColumn" : 26 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 12 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 20, + "startColumn" : 44, + "endLine" : 20, + "endColumn" : 46 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 21, + "startColumn" : 22, + "endLine" : 21, + "endColumn" : 26 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 8 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 21, + "startColumn" : 28, + "endLine" : 21, + "endColumn" : 29 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 15 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 21, + "startColumn" : 31, + "endLine" : 21, + "endColumn" : 33 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 22, + "startColumn" : 22, + "endLine" : 22, + "endColumn" : 26 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 11 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 22, + "startColumn" : 28, + "endLine" : 22, + "endColumn" : 30 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 11 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 22, + "startColumn" : 32, + "endLine" : 22, + "endColumn" : 34 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 11 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 22, + "startColumn" : 36, + "endLine" : 22, + "endColumn" : 38 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 23, + "startColumn" : 22, + "endLine" : 23, + "endColumn" : 26 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 8 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 23, + "startColumn" : 41, + "endLine" : 23, + "endColumn" : 42 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 9 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 23, + "startColumn" : 44, + "endLine" : 23, + "endColumn" : 45 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2025 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 24, + "startColumn" : 22, + "endLine" : 24, + "endColumn" : 26 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 24, + "startColumn" : 28, + "endLine" : 24, + "endColumn" : 29 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 24, + "startColumn" : 31, + "endLine" : 24, + "endColumn" : 32 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 24, + "startColumn" : 34, + "endLine" : 24, + "endColumn" : 35 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 24, + "startColumn" : 37, + "endLine" : 24, + "endColumn" : 38 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 25, + "startColumn" : 18, + "endLine" : 25, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 4 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 25, + "startColumn" : 24, + "endLine" : 25, + "endColumn" : 25 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 26, + "startColumn" : 18, + "endLine" : 26, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 12 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 26, + "startColumn" : 24, + "endLine" : 26, + "endColumn" : 26 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2025 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 27, + "startColumn" : 18, + "endLine" : 27, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 5 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 27, + "startColumn" : 24, + "endLine" : 27, + "endColumn" : 25 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2025 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 28, + "startColumn" : 18, + "endLine" : 28, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 7 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 29, + "startColumn" : 17, + "endLine" : 29, + "endColumn" : 18 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 14 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 29, + "startColumn" : 20, + "endLine" : 29, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 11 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 30, + "startColumn" : 17, + "endLine" : 30, + "endColumn" : 19 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 7 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 32, + "startColumn" : 18, + "endLine" : 32, + "endColumn" : 19 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2025 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 33, + "startColumn" : 18, + "endLine" : 33, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 8 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 33, + "startColumn" : 24, + "endLine" : 33, + "endColumn" : 25 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 10 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 33, + "startColumn" : 27, + "endLine" : 33, + "endColumn" : 29 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 13, + "startColumn" : 18, + "endLine" : 13, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 31 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 13, + "startColumn" : 39, + "endLine" : 13, + "endColumn" : 41 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 14, + "startColumn" : 18, + "endLine" : 14, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 29 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 14, + "startColumn" : 40, + "endLine" : 14, + "endColumn" : 42 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 15, + "startColumn" : 18, + "endLine" : 15, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 31 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 15, + "startColumn" : 37, + "endLine" : 15, + "endColumn" : 39 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 16, + "startColumn" : 18, + "endLine" : 16, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 30 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 16, + "startColumn" : 36, + "endLine" : 16, + "endColumn" : 38 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 17, + "startColumn" : 18, + "endLine" : 17, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 30 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 17, + "startColumn" : 41, + "endLine" : 17, + "endColumn" : 43 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 18, + "startColumn" : 18, + "endLine" : 18, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 31 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 18, + "startColumn" : 40, + "endLine" : 18, + "endColumn" : 42 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 19, + "startColumn" : 22, + "endLine" : 19, + "endColumn" : 26 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 31 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 19, + "startColumn" : 41, + "endLine" : 19, + "endColumn" : 43 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 23 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 19, + "startColumn" : 45, + "endLine" : 19, + "endColumn" : 47 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 59 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 19, + "startColumn" : 49, + "endLine" : 19, + "endColumn" : 51 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 20, + "startColumn" : 22, + "endLine" : 20, + "endColumn" : 26 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 30 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 20, + "startColumn" : 40, + "endLine" : 20, + "endColumn" : 42 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 23 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 20, + "startColumn" : 44, + "endLine" : 20, + "endColumn" : 46 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 59 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 20, + "startColumn" : 48, + "endLine" : 20, + "endColumn" : 50 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 21, + "startColumn" : 22, + "endLine" : 21, + "endColumn" : 26 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 9 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 21, + "startColumn" : 28, + "endLine" : 21, + "endColumn" : 29 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 30 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 21, + "startColumn" : 31, + "endLine" : 21, + "endColumn" : 33 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 23 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 21, + "startColumn" : 35, + "endLine" : 21, + "endColumn" : 37 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 59 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 21, + "startColumn" : 39, + "endLine" : 21, + "endColumn" : 41 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 22, + "startColumn" : 22, + "endLine" : 22, + "endColumn" : 26 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 12 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 22, + "startColumn" : 28, + "endLine" : 22, + "endColumn" : 30 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 31 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 22, + "startColumn" : 32, + "endLine" : 22, + "endColumn" : 34 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 23 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 22, + "startColumn" : 36, + "endLine" : 22, + "endColumn" : 38 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 59 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 22, + "startColumn" : 40, + "endLine" : 22, + "endColumn" : 42 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2025 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 23, + "startColumn" : 22, + "endLine" : 23, + "endColumn" : 26 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 30 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 23, + "startColumn" : 40, + "endLine" : 23, + "endColumn" : 42 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 23 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 23, + "startColumn" : 44, + "endLine" : 23, + "endColumn" : 46 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 59 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 23, + "startColumn" : 48, + "endLine" : 23, + "endColumn" : 50 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2025 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 24, + "startColumn" : 22, + "endLine" : 24, + "endColumn" : 26 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 9 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 24, + "startColumn" : 28, + "endLine" : 24, + "endColumn" : 29 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 30 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 24, + "startColumn" : 31, + "endLine" : 24, + "endColumn" : 33 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 23 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 24, + "startColumn" : 35, + "endLine" : 24, + "endColumn" : 37 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 59 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 24, + "startColumn" : 39, + "endLine" : 24, + "endColumn" : 41 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 25, + "startColumn" : 18, + "endLine" : 25, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 6 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 25, + "startColumn" : 24, + "endLine" : 25, + "endColumn" : 25 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 26, + "startColumn" : 18, + "endLine" : 26, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 9 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 26, + "startColumn" : 24, + "endLine" : 26, + "endColumn" : 25 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2024 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 27, + "startColumn" : 18, + "endLine" : 27, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 12 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 27, + "startColumn" : 24, + "endLine" : 27, + "endColumn" : 26 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2025 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 28, + "startColumn" : 18, + "endLine" : 28, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 12 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 29, + "startColumn" : 17, + "endLine" : 29, + "endColumn" : 19 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 31 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 29, + "startColumn" : 21, + "endLine" : 29, + "endColumn" : 23 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 3 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 30, + "startColumn" : 17, + "endLine" : 30, + "endColumn" : 18 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 31 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 30, + "startColumn" : 20, + "endLine" : 30, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 4 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 32, + "startColumn" : 18, + "endLine" : 32, + "endColumn" : 19 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 2025 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 33, + "startColumn" : 18, + "endLine" : 33, + "endColumn" : 22 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 11 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 33, + "startColumn" : 24, + "endLine" : 33, + "endColumn" : 26 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S109", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Assign this magic number 30 to a well-named constant, and use the constant instead." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 33, + "startColumn" : 28, + "endLine" : 33, + "endColumn" : 30 + } + } + } ], + "rank" : -1.0 + } ], + "newlineSequences" : [ "\r\n", "\n" ], + "columnKind" : "utf16CodeUnits" + } ] +} \ No newline at end of file diff --git a/its/ruling/src/test/resources/expected/java-time-example-less-threshold/java-S1120.sarif b/its/ruling/src/test/resources/expected/java-time-example-less-threshold/java-S1120.sarif new file mode 100644 index 00000000000..803c2a25aa3 --- /dev/null +++ b/its/ruling/src/test/resources/expected/java-time-example-less-threshold/java-S1120.sarif @@ -0,0 +1,258 @@ +{ + "$schema" : "https://json.schemastore.org/sarif-2.1.0.json", + "version" : "2.1.0", + "runs" : [ { + "tool" : { + "driver" : { + "name" : "LITS", + "language" : "en-US", + "contents" : [ "localizedData", "nonLocalizedData" ], + "isComprehensive" : false + } + }, + "language" : "en-US", + "results" : [ { + "ruleId" : "java:S1120", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Make this line start after 4 spaces instead of 2 in order to indent the code consistently. (Indentation level is at 4.)" + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 11, + "startColumn" : 1, + "endLine" : 11, + "endColumn" : 20 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S1120", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Make this line start after 8 spaces instead of 4 in order to indent the code consistently. (Indentation level is at 4.)" + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 12, + "startColumn" : 1, + "endLine" : 12, + "endColumn" : 43 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S1120", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Make this line start after 4 spaces instead of 2 in order to indent the code consistently. (Indentation level is at 4.)" + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 12, + "startColumn" : 1, + "endLine" : 12, + "endColumn" : 19 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S1120", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Make this line start after 8 spaces instead of 4 in order to indent the code consistently. (Indentation level is at 4.)" + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 13, + "startColumn" : 1, + "endLine" : 13, + "endColumn" : 44 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S1120", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Make this line start after 4 spaces instead of 2 in order to indent the code consistently. (Indentation level is at 4.)" + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 12, + "startColumn" : 1, + "endLine" : 12, + "endColumn" : 16 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S1120", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Make this line start after 8 spaces instead of 4 in order to indent the code consistently. (Indentation level is at 4.)" + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 13, + "startColumn" : 1, + "endLine" : 13, + "endColumn" : 43 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S1120", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Make this line start after 4 spaces instead of 2 in order to indent the code consistently. (Indentation level is at 4.)" + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 12, + "startColumn" : 1, + "endLine" : 12, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S1120", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Make this line start after 8 spaces instead of 4 in order to indent the code consistently. (Indentation level is at 4.)" + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 13, + "startColumn" : 1, + "endLine" : 13, + "endColumn" : 42 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S1120", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Make this line start after 4 spaces instead of 2 in order to indent the code consistently. (Indentation level is at 4.)" + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 12, + "startColumn" : 1, + "endLine" : 12, + "endColumn" : 20 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S1120", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Make this line start after 8 spaces instead of 4 in order to indent the code consistently. (Indentation level is at 4.)" + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 13, + "startColumn" : 1, + "endLine" : 13, + "endColumn" : 43 + } + } + } ], + "rank" : -1.0 + } ], + "newlineSequences" : [ "\r\n", "\n" ], + "columnKind" : "utf16CodeUnits" + } ] +} \ No newline at end of file diff --git a/its/ruling/src/test/resources/expected/java-time-example-less-threshold/java-S113.sarif b/its/ruling/src/test/resources/expected/java-time-example-less-threshold/java-S113.sarif new file mode 100644 index 00000000000..1c6254cdd0f --- /dev/null +++ b/its/ruling/src/test/resources/expected/java-time-example-less-threshold/java-S113.sarif @@ -0,0 +1,108 @@ +{ + "$schema" : "https://json.schemastore.org/sarif-2.1.0.json", + "version" : "2.1.0", + "runs" : [ { + "tool" : { + "driver" : { + "name" : "LITS", + "language" : "en-US", + "contents" : [ "localizedData", "nonLocalizedData" ], + "isComprehensive" : false + } + }, + "language" : "en-US", + "results" : [ { + "ruleId" : "java:S113", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Add a new line at the end of this file." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S113", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Add a new line at the end of this file." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S113", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Add a new line at the end of this file." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S113", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Add a new line at the end of this file." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S113", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Add a new line at the end of this file." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + } + } + } ], + "rank" : -1.0 + } ], + "newlineSequences" : [ "\r\n", "\n" ], + "columnKind" : "utf16CodeUnits" + } ] +} \ No newline at end of file diff --git a/its/ruling/src/test/resources/expected/java-time-example-less-threshold/java-S1228.sarif b/its/ruling/src/test/resources/expected/java-time-example-less-threshold/java-S1228.sarif new file mode 100644 index 00000000000..9a7cfec1a51 --- /dev/null +++ b/its/ruling/src/test/resources/expected/java-time-example-less-threshold/java-S1228.sarif @@ -0,0 +1,36 @@ +{ + "$schema" : "https://json.schemastore.org/sarif-2.1.0.json", + "version" : "2.1.0", + "runs" : [ { + "tool" : { + "driver" : { + "name" : "LITS", + "language" : "en-US", + "contents" : [ "localizedData", "nonLocalizedData" ], + "isComprehensive" : false + } + }, + "language" : "en-US", + "results" : [ { + "ruleId" : "java:S1228", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Add a 'package-info.java' file to document the 'example' package" + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example", + "index" : -1 + } + } + } ], + "rank" : -1.0 + } ], + "newlineSequences" : [ "\r\n", "\n" ], + "columnKind" : "utf16CodeUnits" + } ] +} \ No newline at end of file diff --git a/its/ruling/src/test/resources/expected/java-time-example-less-threshold/java-S1451.sarif b/its/ruling/src/test/resources/expected/java-time-example-less-threshold/java-S1451.sarif new file mode 100644 index 00000000000..d2e7686263f --- /dev/null +++ b/its/ruling/src/test/resources/expected/java-time-example-less-threshold/java-S1451.sarif @@ -0,0 +1,108 @@ +{ + "$schema" : "https://json.schemastore.org/sarif-2.1.0.json", + "version" : "2.1.0", + "runs" : [ { + "tool" : { + "driver" : { + "name" : "LITS", + "language" : "en-US", + "contents" : [ "localizedData", "nonLocalizedData" ], + "isComprehensive" : false + } + }, + "language" : "en-US", + "results" : [ { + "ruleId" : "java:S1451", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Add or update the header of this file." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S1451", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Add or update the header of this file." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S1451", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Add or update the header of this file." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S1451", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Add or update the header of this file." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S1451", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Add or update the header of this file." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + } + } + } ], + "rank" : -1.0 + } ], + "newlineSequences" : [ "\r\n", "\n" ], + "columnKind" : "utf16CodeUnits" + } ] +} \ No newline at end of file diff --git a/its/ruling/src/test/resources/expected/java-time-example-less-threshold/java-S1481.sarif b/its/ruling/src/test/resources/expected/java-time-example-less-threshold/java-S1481.sarif new file mode 100644 index 00000000000..a9cf0c5b339 --- /dev/null +++ b/its/ruling/src/test/resources/expected/java-time-example-less-threshold/java-S1481.sarif @@ -0,0 +1,114 @@ +{ + "$schema" : "https://json.schemastore.org/sarif-2.1.0.json", + "version" : "2.1.0", + "runs" : [ { + "tool" : { + "driver" : { + "name" : "LITS", + "language" : "en-US", + "contents" : [ "localizedData", "nonLocalizedData" ], + "isComprehensive" : false + } + }, + "language" : "en-US", + "results" : [ { + "ruleId" : "java:S1481", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Remove this unused \"day\" local variable." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 31, + "startColumn" : 15, + "endLine" : 31, + "endColumn" : 18 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S1481", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Remove this unused \"day\" local variable." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 31, + "startColumn" : 15, + "endLine" : 31, + "endColumn" : 18 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S1481", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Remove this unused \"day\" local variable." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 31, + "startColumn" : 15, + "endLine" : 31, + "endColumn" : 18 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S1481", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Remove this unused \"day\" local variable." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 31, + "startColumn" : 15, + "endLine" : 31, + "endColumn" : 18 + } + } + } ], + "rank" : -1.0 + } ], + "newlineSequences" : [ "\r\n", "\n" ], + "columnKind" : "utf16CodeUnits" + } ] +} \ No newline at end of file diff --git a/its/ruling/src/test/resources/expected/java-time-example-less-threshold/java-S1854.sarif b/its/ruling/src/test/resources/expected/java-time-example-less-threshold/java-S1854.sarif new file mode 100644 index 00000000000..d0b28c36688 --- /dev/null +++ b/its/ruling/src/test/resources/expected/java-time-example-less-threshold/java-S1854.sarif @@ -0,0 +1,114 @@ +{ + "$schema" : "https://json.schemastore.org/sarif-2.1.0.json", + "version" : "2.1.0", + "runs" : [ { + "tool" : { + "driver" : { + "name" : "LITS", + "language" : "en-US", + "contents" : [ "localizedData", "nonLocalizedData" ], + "isComprehensive" : false + } + }, + "language" : "en-US", + "results" : [ { + "ruleId" : "java:S1854", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Remove this useless assignment to local variable \"day\"." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 31, + "startColumn" : 19, + "endLine" : 31, + "endColumn" : 37 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S1854", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Remove this useless assignment to local variable \"day\"." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 31, + "startColumn" : 19, + "endLine" : 31, + "endColumn" : 40 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S1854", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Remove this useless assignment to local variable \"day\"." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 31, + "startColumn" : 19, + "endLine" : 31, + "endColumn" : 37 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S1854", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Remove this useless assignment to local variable \"day\"." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 31, + "startColumn" : 19, + "endLine" : 31, + "endColumn" : 37 + } + } + } ], + "rank" : -1.0 + } ], + "newlineSequences" : [ "\r\n", "\n" ], + "columnKind" : "utf16CodeUnits" + } ] +} \ No newline at end of file diff --git a/its/ruling/src/test/resources/expected/java-time-example-less-threshold/java-S2201.sarif b/its/ruling/src/test/resources/expected/java-time-example-less-threshold/java-S2201.sarif new file mode 100644 index 00000000000..86e71e2b9e4 --- /dev/null +++ b/its/ruling/src/test/resources/expected/java-time-example-less-threshold/java-S2201.sarif @@ -0,0 +1,2418 @@ +{ + "$schema" : "https://json.schemastore.org/sarif-2.1.0.json", + "version" : "2.1.0", + "runs" : [ { + "tool" : { + "driver" : { + "name" : "LITS", + "language" : "en-US", + "contents" : [ "localizedData", "nonLocalizedData" ], + "isComprehensive" : false + } + }, + "language" : "en-US", + "results" : [ { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 12, + "startColumn" : 15, + "endLine" : 12, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 13, + "startColumn" : 15, + "endLine" : 13, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 14, + "startColumn" : 15, + "endLine" : 14, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 15, + "startColumn" : 15, + "endLine" : 15, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 16, + "startColumn" : 15, + "endLine" : 16, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 17, + "startColumn" : 15, + "endLine" : 17, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 18, + "startColumn" : 19, + "endLine" : 18, + "endColumn" : 21 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 19, + "startColumn" : 19, + "endLine" : 19, + "endColumn" : 21 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 20, + "startColumn" : 19, + "endLine" : 20, + "endColumn" : 21 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 21, + "startColumn" : 19, + "endLine" : 21, + "endColumn" : 21 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 22, + "startColumn" : 19, + "endLine" : 22, + "endColumn" : 21 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 23, + "startColumn" : 19, + "endLine" : 23, + "endColumn" : 21 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 24, + "startColumn" : 15, + "endLine" : 24, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 25, + "startColumn" : 15, + "endLine" : 25, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 26, + "startColumn" : 15, + "endLine" : 26, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 27, + "startColumn" : 15, + "endLine" : 27, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 28, + "startColumn" : 15, + "endLine" : 28, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 29, + "startColumn" : 14, + "endLine" : 29, + "endColumn" : 16 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 30, + "startColumn" : 14, + "endLine" : 30, + "endColumn" : 16 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 31, + "startColumn" : 14, + "endLine" : 31, + "endColumn" : 16 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 13, + "startColumn" : 15, + "endLine" : 13, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 14, + "startColumn" : 15, + "endLine" : 14, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 15, + "startColumn" : 15, + "endLine" : 15, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 16, + "startColumn" : 15, + "endLine" : 16, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 17, + "startColumn" : 15, + "endLine" : 17, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 18, + "startColumn" : 15, + "endLine" : 18, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 19, + "startColumn" : 19, + "endLine" : 19, + "endColumn" : 21 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 20, + "startColumn" : 19, + "endLine" : 20, + "endColumn" : 21 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 21, + "startColumn" : 19, + "endLine" : 21, + "endColumn" : 21 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 22, + "startColumn" : 19, + "endLine" : 22, + "endColumn" : 21 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 23, + "startColumn" : 19, + "endLine" : 23, + "endColumn" : 21 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 24, + "startColumn" : 19, + "endLine" : 24, + "endColumn" : 21 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 25, + "startColumn" : 15, + "endLine" : 25, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 26, + "startColumn" : 15, + "endLine" : 26, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 27, + "startColumn" : 15, + "endLine" : 27, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 28, + "startColumn" : 15, + "endLine" : 28, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 29, + "startColumn" : 14, + "endLine" : 29, + "endColumn" : 16 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 30, + "startColumn" : 14, + "endLine" : 30, + "endColumn" : 16 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 32, + "startColumn" : 15, + "endLine" : 32, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 33, + "startColumn" : 15, + "endLine" : 33, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 13, + "startColumn" : 15, + "endLine" : 13, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 14, + "startColumn" : 15, + "endLine" : 14, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 15, + "startColumn" : 15, + "endLine" : 15, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 16, + "startColumn" : 15, + "endLine" : 16, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 17, + "startColumn" : 15, + "endLine" : 17, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 18, + "startColumn" : 15, + "endLine" : 18, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 19, + "startColumn" : 19, + "endLine" : 19, + "endColumn" : 21 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 20, + "startColumn" : 19, + "endLine" : 20, + "endColumn" : 21 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 21, + "startColumn" : 19, + "endLine" : 21, + "endColumn" : 21 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 22, + "startColumn" : 19, + "endLine" : 22, + "endColumn" : 21 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 23, + "startColumn" : 19, + "endLine" : 23, + "endColumn" : 21 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 24, + "startColumn" : 19, + "endLine" : 24, + "endColumn" : 21 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 25, + "startColumn" : 15, + "endLine" : 25, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 26, + "startColumn" : 15, + "endLine" : 26, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 27, + "startColumn" : 15, + "endLine" : 27, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 28, + "startColumn" : 15, + "endLine" : 28, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 29, + "startColumn" : 14, + "endLine" : 29, + "endColumn" : 16 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 30, + "startColumn" : 14, + "endLine" : 30, + "endColumn" : 16 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 32, + "startColumn" : 15, + "endLine" : 32, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 33, + "startColumn" : 15, + "endLine" : 33, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 13, + "startColumn" : 15, + "endLine" : 13, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 14, + "startColumn" : 15, + "endLine" : 14, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 15, + "startColumn" : 15, + "endLine" : 15, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 16, + "startColumn" : 15, + "endLine" : 16, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 17, + "startColumn" : 15, + "endLine" : 17, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 18, + "startColumn" : 15, + "endLine" : 18, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 19, + "startColumn" : 19, + "endLine" : 19, + "endColumn" : 21 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 20, + "startColumn" : 19, + "endLine" : 20, + "endColumn" : 21 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 21, + "startColumn" : 19, + "endLine" : 21, + "endColumn" : 21 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 22, + "startColumn" : 19, + "endLine" : 22, + "endColumn" : 21 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 23, + "startColumn" : 19, + "endLine" : 23, + "endColumn" : 21 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 24, + "startColumn" : 19, + "endLine" : 24, + "endColumn" : 21 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 25, + "startColumn" : 15, + "endLine" : 25, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 26, + "startColumn" : 15, + "endLine" : 26, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 27, + "startColumn" : 15, + "endLine" : 27, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 28, + "startColumn" : 15, + "endLine" : 28, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 29, + "startColumn" : 14, + "endLine" : 29, + "endColumn" : 16 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 30, + "startColumn" : 14, + "endLine" : 30, + "endColumn" : 16 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 32, + "startColumn" : 15, + "endLine" : 32, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 33, + "startColumn" : 15, + "endLine" : 33, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 13, + "startColumn" : 15, + "endLine" : 13, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 14, + "startColumn" : 15, + "endLine" : 14, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 15, + "startColumn" : 15, + "endLine" : 15, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 16, + "startColumn" : 15, + "endLine" : 16, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 17, + "startColumn" : 15, + "endLine" : 17, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 18, + "startColumn" : 15, + "endLine" : 18, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 19, + "startColumn" : 19, + "endLine" : 19, + "endColumn" : 21 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 20, + "startColumn" : 19, + "endLine" : 20, + "endColumn" : 21 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 21, + "startColumn" : 19, + "endLine" : 21, + "endColumn" : 21 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 22, + "startColumn" : 19, + "endLine" : 22, + "endColumn" : 21 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 23, + "startColumn" : 19, + "endLine" : 23, + "endColumn" : 21 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 24, + "startColumn" : 19, + "endLine" : 24, + "endColumn" : 21 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 25, + "startColumn" : 15, + "endLine" : 25, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 26, + "startColumn" : 15, + "endLine" : 26, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 27, + "startColumn" : 15, + "endLine" : 27, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 28, + "startColumn" : 15, + "endLine" : 28, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 29, + "startColumn" : 14, + "endLine" : 29, + "endColumn" : 16 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 30, + "startColumn" : 14, + "endLine" : 30, + "endColumn" : 16 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 32, + "startColumn" : 15, + "endLine" : 32, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S2201", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "The return value of \"of\" must be used." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 33, + "startColumn" : 15, + "endLine" : 33, + "endColumn" : 17 + } + } + } ], + "rank" : -1.0 + } ], + "newlineSequences" : [ "\r\n", "\n" ], + "columnKind" : "utf16CodeUnits" + } ] +} \ No newline at end of file diff --git a/its/ruling/src/test/resources/expected/java-time-example-less-threshold/java-S8694.sarif b/its/ruling/src/test/resources/expected/java-time-example-less-threshold/java-S8694.sarif new file mode 100644 index 00000000000..7364e43a58f --- /dev/null +++ b/its/ruling/src/test/resources/expected/java-time-example-less-threshold/java-S8694.sarif @@ -0,0 +1,1218 @@ +{ + "$schema" : "https://json.schemastore.org/sarif-2.1.0.json", + "version" : "2.1.0", + "runs" : [ { + "tool" : { + "driver" : { + "name" : "LITS", + "language" : "en-US", + "contents" : [ "localizedData", "nonLocalizedData" ], + "isComprehensive" : false + } + }, + "language" : "en-US", + "results" : [ { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.Month\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 20, + "startColumn" : 28, + "endLine" : 20, + "endColumn" : 29 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.Month\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 21, + "startColumn" : 28, + "endLine" : 21, + "endColumn" : 30 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.Month\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 23, + "startColumn" : 28, + "endLine" : 23, + "endColumn" : 30 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.Month\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 24, + "startColumn" : 24, + "endLine" : 24, + "endColumn" : 25 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.Month\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 25, + "startColumn" : 24, + "endLine" : 25, + "endColumn" : 25 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.Month\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 26, + "startColumn" : 24, + "endLine" : 26, + "endColumn" : 25 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.Month\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 28, + "startColumn" : 24, + "endLine" : 28, + "endColumn" : 26 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.Month\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 29, + "startColumn" : 17, + "endLine" : 29, + "endColumn" : 18 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.Month\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 30, + "startColumn" : 17, + "endLine" : 30, + "endColumn" : 18 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.Month\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/AppointmentService.java", + "index" : -1 + }, + "region" : { + "startLine" : 31, + "startColumn" : 17, + "endLine" : 31, + "endColumn" : 19 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.Month\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 21, + "startColumn" : 28, + "endLine" : 21, + "endColumn" : 30 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.Month\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 22, + "startColumn" : 28, + "endLine" : 22, + "endColumn" : 30 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.Month\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 24, + "startColumn" : 28, + "endLine" : 24, + "endColumn" : 29 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.Month\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 25, + "startColumn" : 24, + "endLine" : 25, + "endColumn" : 25 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.Month\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 26, + "startColumn" : 24, + "endLine" : 26, + "endColumn" : 25 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.Month\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 27, + "startColumn" : 24, + "endLine" : 27, + "endColumn" : 25 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.Month\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 29, + "startColumn" : 17, + "endLine" : 29, + "endColumn" : 18 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.Month\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 30, + "startColumn" : 17, + "endLine" : 30, + "endColumn" : 18 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.DayOfWeek\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 32, + "startColumn" : 5, + "endLine" : 32, + "endColumn" : 20 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.Month\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/CalendarUtils.java", + "index" : -1 + }, + "region" : { + "startLine" : 33, + "startColumn" : 24, + "endLine" : 33, + "endColumn" : 26 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.Month\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 21, + "startColumn" : 28, + "endLine" : 21, + "endColumn" : 29 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.Month\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 22, + "startColumn" : 28, + "endLine" : 22, + "endColumn" : 30 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.Month\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 24, + "startColumn" : 28, + "endLine" : 24, + "endColumn" : 29 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.Month\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 25, + "startColumn" : 24, + "endLine" : 25, + "endColumn" : 25 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.Month\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 26, + "startColumn" : 24, + "endLine" : 26, + "endColumn" : 25 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.Month\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 27, + "startColumn" : 24, + "endLine" : 27, + "endColumn" : 25 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.Month\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 29, + "startColumn" : 17, + "endLine" : 29, + "endColumn" : 18 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.Month\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 30, + "startColumn" : 17, + "endLine" : 30, + "endColumn" : 18 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.DayOfWeek\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 32, + "startColumn" : 5, + "endLine" : 32, + "endColumn" : 20 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.Month\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/EventScheduler.java", + "index" : -1 + }, + "region" : { + "startLine" : 33, + "startColumn" : 24, + "endLine" : 33, + "endColumn" : 26 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.Month\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 21, + "startColumn" : 28, + "endLine" : 21, + "endColumn" : 29 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.Month\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 22, + "startColumn" : 28, + "endLine" : 22, + "endColumn" : 30 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.Month\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 24, + "startColumn" : 28, + "endLine" : 24, + "endColumn" : 29 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.Month\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 25, + "startColumn" : 24, + "endLine" : 25, + "endColumn" : 25 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.Month\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 26, + "startColumn" : 24, + "endLine" : 26, + "endColumn" : 26 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.Month\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 27, + "startColumn" : 24, + "endLine" : 27, + "endColumn" : 25 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.Month\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 29, + "startColumn" : 17, + "endLine" : 29, + "endColumn" : 18 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.Month\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 30, + "startColumn" : 17, + "endLine" : 30, + "endColumn" : 19 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.DayOfWeek\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 32, + "startColumn" : 5, + "endLine" : 32, + "endColumn" : 20 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.Month\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/HolidayChecker.java", + "index" : -1 + }, + "region" : { + "startLine" : 33, + "startColumn" : 24, + "endLine" : 33, + "endColumn" : 25 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.Month\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 21, + "startColumn" : 28, + "endLine" : 21, + "endColumn" : 29 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.Month\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 22, + "startColumn" : 28, + "endLine" : 22, + "endColumn" : 30 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.Month\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 24, + "startColumn" : 28, + "endLine" : 24, + "endColumn" : 29 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.Month\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 25, + "startColumn" : 24, + "endLine" : 25, + "endColumn" : 25 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.Month\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 26, + "startColumn" : 24, + "endLine" : 26, + "endColumn" : 25 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.Month\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 27, + "startColumn" : 24, + "endLine" : 27, + "endColumn" : 26 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.Month\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 29, + "startColumn" : 17, + "endLine" : 29, + "endColumn" : 19 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.Month\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 30, + "startColumn" : 17, + "endLine" : 30, + "endColumn" : 18 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.DayOfWeek\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 32, + "startColumn" : 5, + "endLine" : 32, + "endColumn" : 20 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S8694", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Use a \"java.time.Month\" enum constant instead of this int literal." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "java-time-example:src/main/java/example/ReportGenerator.java", + "index" : -1 + }, + "region" : { + "startLine" : 33, + "startColumn" : 24, + "endLine" : 33, + "endColumn" : 26 + } + } + } ], + "rank" : -1.0 + } ], + "newlineSequences" : [ "\r\n", "\n" ], + "columnKind" : "utf16CodeUnits" + } ] +} \ No newline at end of file