Skip to content

Commit

Permalink
item #6 set up sonarqube on sonarqube.io
Browse files Browse the repository at this point in the history
  • Loading branch information
davenicolette committed Jan 28, 2021
1 parent 27aaef5 commit d5be670
Show file tree
Hide file tree
Showing 6 changed files with 1,436 additions and 4 deletions.
Binary file modified GREETINGT
Binary file not shown.
Binary file modified LAUNCHTESTT
Binary file not shown.
2 changes: 0 additions & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
rootProject.name = 'cobol-check'
include 'src:intTest'
findProject(':src:intTest')?.name = 'intTest'

7 changes: 7 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
sonar.sources=src
sonar.exclusions=build/**,\
bin/**,\
gradle/**,\
gradlew,\
gradlew.bat,\
*.gradle
1,424 changes: 1,424 additions & 0 deletions sonarlog.txt

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions src/main/java/com/neopragma/cobolcheck/CobolVerbs.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
* @since 1.8
*/
public class CobolVerbs {
private static final List<String> cobolVerbs = List.of(
private static final List<String> values = List.of(
"ACCEPT",
"ADD",
"CALL",
Expand Down Expand Up @@ -63,7 +63,10 @@ public class CobolVerbs {
);

public static boolean isCobolVerb(String token) {
return cobolVerbs.contains(token.toUpperCase(Locale.ROOT));
return values.contains(token.toUpperCase(Locale.ROOT));
}

private CobolVerbs() {
throw new IllegalStateException("Can't instantiate static class");
}
}

0 comments on commit d5be670

Please sign in to comment.