Skip to content

Commit

Permalink
fix links to checkstyle site (site structure changed)
Browse files Browse the repository at this point in the history
  • Loading branch information
xvik committed Jan 31, 2024
1 parent e868a6a commit bea53a6
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
- Remove spotbugsShowStackTraces option because it's not used by spotbugs anymore
- Custom xsl file is not used for html report - native html report generation used instead
* Update checkstyle 10.6.0 -> 10.12.7 (gradle metadata fix applied)
- Fix links to checkstyle site (site structure changed)
* Update spotbugs 4.7.3 -> 4.8.3
* Update pmd 6.54 -> 6.55 (java 20 support)
* Update codenarc 3.2.0 -> 3.4.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class CheckstyleReporter implements Reporter<Checkstyle> {
// part in braces recognized by intellij IDEA and shown as link
task.logger.error "[${group.capitalize()} | $check] $name.($sourceFile:$srcPointer)" +
"$NL ${it.@message}" +
"$NL http://checkstyle.sourceforge.io/config_${group}.html#$check$NL"
"$NL https://checkstyle.sourceforge.io/checks/${group}/${check.toLowerCase()}.html$NL"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ Checkstyle violations by severity: [error:2]
[Misc | NewlineAtEndOfFile] sample.(Sample.java:1)
File does not end with a newline.
http://checkstyle.sourceforge.io/config_misc.html#NewlineAtEndOfFile
https://checkstyle.sourceforge.io/checks/misc/newlineatendoffile.html
[Javadoc | MissingJavadocType] sample.(Sample.java:6)
Missing a Javadoc comment.
http://checkstyle.sourceforge.io/config_javadoc.html#MissingJavadocType
https://checkstyle.sourceforge.io/checks/javadoc/missingjavadoctype.html
""".replaceAll("tmp/junit6300057182805361069", ReportUtils.noRootFilePath(testProjectDir)))

Expand All @@ -74,11 +74,11 @@ Checkstyle violations by severity: [error:2]
[Misc | NewlineAtEndOfFile] sample.(Sample2.java:1)
File does not end with a newline.
http://checkstyle.sourceforge.io/config_misc.html#NewlineAtEndOfFile
https://checkstyle.sourceforge.io/checks/misc/newlineatendoffile.html
[Javadoc | MissingJavadocType] sample.(Sample2.java:6)
Missing a Javadoc comment.
http://checkstyle.sourceforge.io/config_javadoc.html#MissingJavadocType
https://checkstyle.sourceforge.io/checks/javadoc/missingjavadoctype.html
""".replaceAll("tmp/junit6300057182805361069", ReportUtils.noRootFilePath(testProjectDir)))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,19 @@ class CheckstyleReporterTest extends AbstractKitTest {
[Misc | NewlineAtEndOfFile] sample.(Sample.java:0)
File does not end with a newline.
http://checkstyle.sourceforge.io/config_misc.html#NewlineAtEndOfFile
https://checkstyle.sourceforge.io/checks/misc/newlineatendoffile.html
[Javadoc | JavadocType] sample.(Sample.java:6)
Missing a Javadoc comment.
http://checkstyle.sourceforge.io/config_javadoc.html#JavadocType
http://checkstyle.sourceforge.io/checks/javadoc/javadoctype.html
[Misc | NewlineAtEndOfFile] sample.(Sample2.java:0)
File does not end with a newline.
http://checkstyle.sourceforge.io/config_misc.html#NewlineAtEndOfFile
https://checkstyle.sourceforge.io/checks/misc/newlineatendoffile.html
[Javadoc | JavadocType] sample.(Sample2.java:6)
Missing a Javadoc comment.
http://checkstyle.sourceforge.io/config_javadoc.html#JavadocType
https://checkstyle.sourceforge.io/checks/javadoc/javadoctype.html
""" as String
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class SuppressFilterKitTest extends AbstractKitTest {
[Misc | NewlineAtEndOfFile] sample.(Sample2.java:1)
File does not end with a newline.
http://checkstyle.sourceforge.io/config_misc.html#NewlineAtEndOfFile
https://checkstyle.sourceforge.io/checks/misc/newlineatendoffile.html
"""
}
}

0 comments on commit bea53a6

Please sign in to comment.