Skip to content

Commit a43a9e4

Browse files
butterflyskyfilipesperandio
authored andcommitted
Upgrade checkstyle to 8.25 and fix upgrade script (#22)
* Fix upgrade script to reliably find latest URL * Upgrade checkstyle from 8.2 to 8.25 * Specify LineLength module as top-level module in default config * Remove unsupported property from JavadocMethod module config
1 parent 60889af commit a43a9e4

File tree

5 files changed

+250
-154
lines changed

5 files changed

+250
-154
lines changed

CHECKSTYLE_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8.2
1+
8.25

bin/install-checkstyle.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

33
# use `make upgrade` to update this URL to the latest version
4-
URL='https://downloads.sourceforge.net/project/checkstyle/checkstyle/8.2/checkstyle-8.2-all.jar'
4+
URL='https://github.com/checkstyle/checkstyle/releases/download/checkstyle-8.25/checkstyle-8.25-all.jar'
55

66
wget -O /usr/local/bin/checkstyle.jar $URL

bin/upgrade.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
22

3-
URL=$(curl -s -i https://sourceforge.net/projects/checkstyle/files/latest/download | grep Location | awk '{print $2}'| sed 's/\?.*$//')
3+
URL=$(curl -s https://api.github.com/repos/checkstyle/checkstyle/releases/latest | grep browser_download_url | cut -d\" -f4)
44
sed -i -E "s#URL=.*#URL='${URL}'#" bin/install-checkstyle.sh
55
echo $URL | sed -E 's/.*checkstyle-(.*)-all.jar/\1/' > CHECKSTYLE_VERSION

0 commit comments

Comments
 (0)