Skip to content

Commit 07404d1

Browse files
stoyanK7nrmancuso
authored andcommitted
Issue #13627: Use violation messages macro in sizes templates
1 parent 5d36f8d commit 07404d1

20 files changed

Lines changed: 58 additions & 90 deletions

src/xdocs/checks/sizes/anoninnerlength.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@
8181
<ul>
8282
<li>
8383
<a href="https://github.com/search?q=path%3Asrc%2Fmain%2Fresources%2Fcom%2Fpuppycrawl%2Ftools%2Fcheckstyle%2Fchecks%2Fsizes%20path%3A**%2Fmessages*.properties+repo%3Acheckstyle%2Fcheckstyle+%22maxLen.anonInner%22">
84-
maxLen.anonInner</a>
84+
maxLen.anonInner
85+
</a>
8586
</li>
8687
</ul>
8788
<p>

src/xdocs/checks/sizes/anoninnerlength.xml.template

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,9 @@
7272
</subsection>
7373

7474
<subsection name="Violation Messages" id="Violation_Messages">
75-
<ul>
76-
<li>
77-
<a href="https://github.com/search?q=path%3Asrc%2Fmain%2Fresources%2Fcom%2Fpuppycrawl%2Ftools%2Fcheckstyle%2Fchecks%2Fsizes%20path%3A**%2Fmessages*.properties+repo%3Acheckstyle%2Fcheckstyle+%22maxLen.anonInner%22">
78-
maxLen.anonInner</a>
79-
</li>
80-
</ul>
75+
<macro name="violation-messages">
76+
<param name="checkName" value="AnonInnerLength"/>
77+
</macro>
8178
<p>
8279
All messages can be customized if the default message doesn't suit you.
8380
Please <a href="../../config.html#Custom_messages">see the documentation</a>

src/xdocs/checks/sizes/executablestatementcount.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@
110110
<ul>
111111
<li>
112112
<a href="https://github.com/search?q=path%3Asrc%2Fmain%2Fresources%2Fcom%2Fpuppycrawl%2Ftools%2Fcheckstyle%2Fchecks%2Fsizes%20path%3A**%2Fmessages*.properties+repo%3Acheckstyle%2Fcheckstyle+%22executableStatementCount%22">
113-
executableStatementCount</a>
113+
executableStatementCount
114+
</a>
114115
</li>
115116
</ul>
116117
<p>

src/xdocs/checks/sizes/executablestatementcount.xml.template

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,9 @@
100100
</subsection>
101101

102102
<subsection name="Violation Messages" id="Violation_Messages">
103-
<ul>
104-
<li>
105-
<a href="https://github.com/search?q=path%3Asrc%2Fmain%2Fresources%2Fcom%2Fpuppycrawl%2Ftools%2Fcheckstyle%2Fchecks%2Fsizes%20path%3A**%2Fmessages*.properties+repo%3Acheckstyle%2Fcheckstyle+%22executableStatementCount%22">
106-
executableStatementCount</a>
107-
</li>
108-
</ul>
103+
<macro name="violation-messages">
104+
<param name="checkName" value="ExecutableStatementCount"/>
105+
</macro>
109106
<p>
110107
All messages can be customized if the default message doesn't suit you.
111108
Please <a href="../../config.html#Custom_messages">see the documentation</a>

src/xdocs/checks/sizes/filelength.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@
8686
<ul>
8787
<li>
8888
<a href="https://github.com/search?q=path%3Asrc%2Fmain%2Fresources%2Fcom%2Fpuppycrawl%2Ftools%2Fcheckstyle%2Fchecks%2Fsizes%20path%3A**%2Fmessages*.properties+repo%3Acheckstyle%2Fcheckstyle+%22maxLen.file%22">
89-
maxLen.file</a>
89+
maxLen.file
90+
</a>
9091
</li>
9192
</ul>
9293
<p>

src/xdocs/checks/sizes/filelength.xml.template

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,9 @@
8181
</subsection>
8282

8383
<subsection name="Violation Messages" id="Violation_Messages">
84-
<ul>
85-
<li>
86-
<a href="https://github.com/search?q=path%3Asrc%2Fmain%2Fresources%2Fcom%2Fpuppycrawl%2Ftools%2Fcheckstyle%2Fchecks%2Fsizes%20path%3A**%2Fmessages*.properties+repo%3Acheckstyle%2Fcheckstyle+%22maxLen.file%22">
87-
maxLen.file</a>
88-
</li>
89-
</ul>
84+
<macro name="violation-messages">
85+
<param name="checkName" value="FileLength"/>
86+
</macro>
9087
<p>
9188
All messages can be customized if the default message doesn't suit you.
9289
Please <a href="../../config.html#Custom_messages">see the documentation</a>

src/xdocs/checks/sizes/lambdabodylength.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ class Example2 {
146146
<ul>
147147
<li>
148148
<a href="https://github.com/search?q=path%3Asrc%2Fmain%2Fresources%2Fcom%2Fpuppycrawl%2Ftools%2Fcheckstyle%2Fchecks%2Fsizes%20path%3A**%2Fmessages*.properties+repo%3Acheckstyle%2Fcheckstyle+%22maxLen.lambdaBody%22">
149-
maxLen.lambdaBody</a>
149+
maxLen.lambdaBody
150+
</a>
150151
</li>
151152
</ul>
152153
<p>

src/xdocs/checks/sizes/lambdabodylength.xml.template

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,9 @@
8787
</subsection>
8888

8989
<subsection name="Violation Messages" id="Violation_Messages">
90-
<ul>
91-
<li>
92-
<a href="https://github.com/search?q=path%3Asrc%2Fmain%2Fresources%2Fcom%2Fpuppycrawl%2Ftools%2Fcheckstyle%2Fchecks%2Fsizes%20path%3A**%2Fmessages*.properties+repo%3Acheckstyle%2Fcheckstyle+%22maxLen.lambdaBody%22">
93-
maxLen.lambdaBody</a>
94-
</li>
95-
</ul>
90+
<macro name="violation-messages">
91+
<param name="checkName" value="LambdaBodyLength"/>
92+
</macro>
9693
<p>
9794
All messages can be customized if the default message doesn't suit you.
9895
Please <a href="../../config.html#Custom_messages">see the documentation</a>

src/xdocs/checks/sizes/linelength.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,8 @@ import java.util.regex.Pattern; // The length of this comment will be taken into
185185
<ul>
186186
<li>
187187
<a href="https://github.com/search?q=path%3Asrc%2Fmain%2Fresources%2Fcom%2Fpuppycrawl%2Ftools%2Fcheckstyle%2Fchecks%2Fsizes%20path%3A**%2Fmessages*.properties+repo%3Acheckstyle%2Fcheckstyle+%22maxLineLen%22">
188-
maxLineLen</a>
188+
maxLineLen
189+
</a>
189190
</li>
190191
</ul>
191192
<p>

src/xdocs/checks/sizes/linelength.xml.template

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,9 @@ import java.util.regex.Pattern; // The length of this comment will be taken into
167167
</subsection>
168168

169169
<subsection name="Violation Messages" id="Violation_Messages">
170-
<ul>
171-
<li>
172-
<a href="https://github.com/search?q=path%3Asrc%2Fmain%2Fresources%2Fcom%2Fpuppycrawl%2Ftools%2Fcheckstyle%2Fchecks%2Fsizes%20path%3A**%2Fmessages*.properties+repo%3Acheckstyle%2Fcheckstyle+%22maxLineLen%22">
173-
maxLineLen</a>
174-
</li>
175-
</ul>
170+
<macro name="violation-messages">
171+
<param name="checkName" value="LineLength"/>
172+
</macro>
176173
<p>
177174
All messages can be customized if the default message doesn't suit you.
178175
Please <a href="../../config.html#Custom_messages">see the documentation</a>

0 commit comments

Comments
 (0)