Skip to content

Commit 73a5a43

Browse files
committed
Merge branch 'master' into add-istannen-to-integrators
2 parents 8de18df + a94b70a commit 73a5a43

File tree

6 files changed

+24
-16
lines changed

6 files changed

+24
-16
lines changed

chore/check-javadoc-regressions.py

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,21 @@ def hl(text: str) -> str:
5858
return colored(text, _COLOR_HIGHLIGHT)
5959

6060

61+
def print_checkstyle_not_parseable_error():
62+
"""
63+
If the user has a maven problem that prevents checkstyle from running they'd likely
64+
appreciate *some* output. If we can't extract a violation count the checkstyle plugin
65+
probably didn't run successfully. Let's warn them.
66+
"""
67+
print()
68+
print(warn("Checkstyle output doesn't contain a violation count. Maybe your setup has an error?"))
69+
if len(sys.argv) > 1:
70+
print(
71+
f" {hl('Suggestion')}: Run this script without arguments and inspect the unfiltered "
72+
"checkstyle output"
73+
)
74+
75+
6176
def write_checkstyle_config(path: Path) -> None:
6277
"""
6378
Saves the Javadoc checkstyle config in the given path.
@@ -68,7 +83,7 @@ def write_checkstyle_config(path: Path) -> None:
6883
<module name="Checker">
6984
<module name="TreeWalker">
7085
<module name="JavadocMethod">
71-
<property name="scope" value="public"/>
86+
<property name="accessModifiers" value="public"/>
7287
</module>
7388
<module name="MissingJavadocMethod">
7489
<property name="scope" value="public"/>
@@ -197,9 +212,11 @@ def handle_compare_with_branch_output(target_branch: str, reference_output: str,
197212

198213
if reference_violation_count is None:
199214
print(warn("The Checkstyle run for the reference branch did not yield any result."))
215+
print_checkstyle_not_parseable_error()
200216
exit(1)
201217
if other_violation_count is None:
202218
print(warn("The Checkstyle run for your branch did not yield any result."))
219+
print_checkstyle_not_parseable_error()
203220
exit(1)
204221

205222
print_current_status(target_branch, reference_violation_count, other_violation_count)
@@ -244,17 +261,8 @@ def command_filtered_checkstyle_errors(regex_str: str) -> None:
244261
if regex.search(line):
245262
print(line)
246263

247-
# If the user has a maven problem that prevents checkstyle from running they'd likely
248-
# appreciate *some* output. If we can't extract a violation count the checkstyle plugin
249-
# probably didn't successfully. Let's warn them.
250264
if extract_violation_count(checkstyle_output) is None:
251-
print()
252-
print(warn("Checkstyle output doesn't contain a violation count. Maybe your setup has an error?"))
253-
if len(sys.argv) > 1:
254-
print(
255-
f" {hl('Suggestion')}: Run this script without arguments and inspect the unfiltered "
256-
"checkstyle output"
257-
)
265+
print_checkstyle_not_parseable_error()
258266

259267

260268
def fix_colors_windows_cmd():

doc/_includes/head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<link rel="stylesheet" type="text/css" href="css/{{site.theme_file}}">
1515
<link rel="canonical" href="{{ page.url | replace:'index.html','' }}">
1616
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="feed.xml" />
17-
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
17+
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
1818
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
1919
<script src="js/jquery.navgoco.min.js"></script>
2020
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@
257257
<plugin>
258258
<groupId>org.apache.maven.plugins</groupId>
259259
<artifactId>maven-checkstyle-plugin</artifactId>
260-
<version>3.1.2</version>
260+
<version>3.2.0</version>
261261
<configuration>
262262
<failsOnError>true</failsOnError>
263263
<consoleOutput>true</consoleOutput>

spoon-control-flow/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<plugin>
2828
<groupId>org.apache.maven.plugins</groupId>
2929
<artifactId>maven-checkstyle-plugin</artifactId>
30-
<version>3.1.2</version>
30+
<version>3.2.0</version>
3131
<configuration>
3232
<failsOnError>true</failsOnError>
3333
<configLocation>../checkstyle.xml</configLocation>

spoon-decompiler/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
<plugin>
8484
<groupId>org.apache.maven.plugins</groupId>
8585
<artifactId>maven-checkstyle-plugin</artifactId>
86-
<version>3.1.2</version>
86+
<version>3.2.0</version>
8787
<configuration>
8888
<failsOnError>true</failsOnError>
8989
<configLocation>../checkstyle.xml</configLocation>

spoon-smpl/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<plugin>
3737
<groupId>org.apache.maven.plugins</groupId>
3838
<artifactId>maven-checkstyle-plugin</artifactId>
39-
<version>3.1.2</version>
39+
<version>3.2.0</version>
4040
<configuration>
4141
<failsOnError>true</failsOnError>
4242
<configLocation>../checkstyle.xml</configLocation>

0 commit comments

Comments
 (0)