Skip to content

Commit 0dba32b

Browse files
stoyanK7romani
authored andcommitted
Issue #13627: Use violation messages macro in header templates
1 parent 148cddd commit 0dba32b

File tree

4 files changed

+14
-24
lines changed

4 files changed

+14
-24
lines changed

src/xdocs/checks/header/header.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,13 @@ line 5: ////////////////////////////////////////////////////////////////////
168168
<ul>
169169
<li>
170170
<a href="https://github.com/search?q=path%3Asrc%2Fmain%2Fresources%2Fcom%2Fpuppycrawl%2Ftools%2Fcheckstyle%2Fchecks%2Fheader%20path%3A**%2Fmessages*.properties+repo%3Acheckstyle%2Fcheckstyle+%22header.mismatch%22">
171-
header.mismatch</a>
171+
header.mismatch
172+
</a>
172173
</li>
173174
<li>
174175
<a href="https://github.com/search?q=path%3Asrc%2Fmain%2Fresources%2Fcom%2Fpuppycrawl%2Ftools%2Fcheckstyle%2Fchecks%2Fheader%20path%3A**%2Fmessages*.properties+repo%3Acheckstyle%2Fcheckstyle+%22header.missing%22">
175-
header.missing</a>
176+
header.missing
177+
</a>
176178
</li>
177179
</ul>
178180
<p>

src/xdocs/checks/header/header.xml.template

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -159,16 +159,9 @@ line 5: ////////////////////////////////////////////////////////////////////
159159
</subsection>
160160

161161
<subsection name="Violation Messages" id="Violation_Messages">
162-
<ul>
163-
<li>
164-
<a href="https://github.com/search?q=path%3Asrc%2Fmain%2Fresources%2Fcom%2Fpuppycrawl%2Ftools%2Fcheckstyle%2Fchecks%2Fheader%20path%3A**%2Fmessages*.properties+repo%3Acheckstyle%2Fcheckstyle+%22header.mismatch%22">
165-
header.mismatch</a>
166-
</li>
167-
<li>
168-
<a href="https://github.com/search?q=path%3Asrc%2Fmain%2Fresources%2Fcom%2Fpuppycrawl%2Ftools%2Fcheckstyle%2Fchecks%2Fheader%20path%3A**%2Fmessages*.properties+repo%3Acheckstyle%2Fcheckstyle+%22header.missing%22">
169-
header.missing</a>
170-
</li>
171-
</ul>
162+
<macro name="violation-messages">
163+
<param name="checkName" value="Header"/>
164+
</macro>
172165
<p>
173166
All messages can be customized if the default message doesn't suit you.
174167
Please <a href="../../config.html#Custom_messages">see the documentation</a>

src/xdocs/checks/header/regexpheader.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,11 +242,13 @@ public class ThisWillPass { }
242242
<ul>
243243
<li>
244244
<a href="https://github.com/search?q=path%3Asrc%2Fmain%2Fresources%2Fcom%2Fpuppycrawl%2Ftools%2Fcheckstyle%2Fchecks%2Fheader%20path%3A**%2Fmessages*.properties+repo%3Acheckstyle%2Fcheckstyle+%22header.mismatch%22">
245-
header.mismatch</a>
245+
header.mismatch
246+
</a>
246247
</li>
247248
<li>
248249
<a href="https://github.com/search?q=path%3Asrc%2Fmain%2Fresources%2Fcom%2Fpuppycrawl%2Ftools%2Fcheckstyle%2Fchecks%2Fheader%20path%3A**%2Fmessages*.properties+repo%3Acheckstyle%2Fcheckstyle+%22header.missing%22">
249-
header.missing</a>
250+
header.missing
251+
</a>
250252
</li>
251253
</ul>
252254
<p>

src/xdocs/checks/header/regexpheader.xml.template

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -229,16 +229,9 @@ line 6: ^\W*$
229229
</subsection>
230230

231231
<subsection name="Violation Messages" id="Violation_Messages">
232-
<ul>
233-
<li>
234-
<a href="https://github.com/search?q=path%3Asrc%2Fmain%2Fresources%2Fcom%2Fpuppycrawl%2Ftools%2Fcheckstyle%2Fchecks%2Fheader%20path%3A**%2Fmessages*.properties+repo%3Acheckstyle%2Fcheckstyle+%22header.mismatch%22">
235-
header.mismatch</a>
236-
</li>
237-
<li>
238-
<a href="https://github.com/search?q=path%3Asrc%2Fmain%2Fresources%2Fcom%2Fpuppycrawl%2Ftools%2Fcheckstyle%2Fchecks%2Fheader%20path%3A**%2Fmessages*.properties+repo%3Acheckstyle%2Fcheckstyle+%22header.missing%22">
239-
header.missing</a>
240-
</li>
241-
</ul>
232+
<macro name="violation-messages">
233+
<param name="checkName" value="RegexpHeader"/>
234+
</macro>
242235
<p>
243236
All messages can be customized if the default message doesn't suit you.
244237
Please <a href="../../config.html#Custom_messages">see the documentation</a>

0 commit comments

Comments
 (0)