diff --git a/build.gradle b/build.gradle index 09d6f785df..0ebac0bf75 100644 --- a/build.gradle +++ b/build.gradle @@ -2,7 +2,7 @@ plugins { id 'java' id "com.diffplug.spotless" version "6.11.0" id "org.sonarqube" version "3.5.0.2730" - id "name.remal.sonarlint" version "1.5.0" + id "name.remal.sonarlint" version "2.0.0" } group 'org.togetherjava' @@ -52,15 +52,11 @@ subprojects { } // sonarlint configuration, not to be confused with sonarqube/sonarcloud. - sonarlint { - excludes { - // Disables "Track uses of "TO-DO" tags" rule. - message 'java:S1135' - - // Disables "Regular expressions should not overflow the stack" rule. - // https://sonarcloud.io/project/issues?id=Together-Java_TJ-Bot&issues=AXvleoajNC7zjjhmSufQ&open=AXvleoajNC7zjjhmSufQ - // https://sonarcloud.io/project/issues?id=Together-Java_TJ-Bot&issues=AXvleoX5NC7zjjhmSufP&open=AXvleoX5NC7zjjhmSufP - message 'java:S5998' + sonarLint { + rules { + disable( + 'java:S1135' // Disables "Track uses of "TO-DO" tags" rule. + ) } }