Skip to content

Commit

Permalink
Issue #13627: Use violation messages macro in regexp templates
Browse files Browse the repository at this point in the history
  • Loading branch information
stoyanK7 authored and nrmancuso committed Aug 26, 2023
1 parent c7380de commit 5d36f8d
Show file tree
Hide file tree
Showing 10 changed files with 41 additions and 75 deletions.
9 changes: 6 additions & 3 deletions src/xdocs/checks/regexp/regexp.xml
Original file line number Diff line number Diff line change
Expand Up @@ -503,15 +503,18 @@ public static final int A_SETPOINT = 1;
<ul>
<li>
<a href="https://github.com/search?q=path%3Asrc%2Fmain%2Fresources%2Fcom%2Fpuppycrawl%2Ftools%2Fcheckstyle%2Fchecks%2Fregexp%20path%3A**%2Fmessages*.properties+repo%3Acheckstyle%2Fcheckstyle+%22duplicate.regexp%22">
duplicate.regexp</a>
duplicate.regexp
</a>
</li>
<li>
<a href="https://github.com/search?q=path%3Asrc%2Fmain%2Fresources%2Fcom%2Fpuppycrawl%2Ftools%2Fcheckstyle%2Fchecks%2Fregexp%20path%3A**%2Fmessages*.properties+repo%3Acheckstyle%2Fcheckstyle+%22illegal.regexp%22">
illegal.regexp</a>
illegal.regexp
</a>
</li>
<li>
<a href="https://github.com/search?q=path%3Asrc%2Fmain%2Fresources%2Fcom%2Fpuppycrawl%2Ftools%2Fcheckstyle%2Fchecks%2Fregexp%20path%3A**%2Fmessages*.properties+repo%3Acheckstyle%2Fcheckstyle+%22required.regexp%22">
required.regexp</a>
required.regexp
</a>
</li>
</ul>
<p>
Expand Down
17 changes: 3 additions & 14 deletions src/xdocs/checks/regexp/regexp.xml.template
Original file line number Diff line number Diff line change
Expand Up @@ -323,20 +323,9 @@
</subsection>

<subsection name="Violation Messages" id="Violation_Messages">
<ul>
<li>
<a href="https://github.com/search?q=path%3Asrc%2Fmain%2Fresources%2Fcom%2Fpuppycrawl%2Ftools%2Fcheckstyle%2Fchecks%2Fregexp%20path%3A**%2Fmessages*.properties+repo%3Acheckstyle%2Fcheckstyle+%22duplicate.regexp%22">
duplicate.regexp</a>
</li>
<li>
<a href="https://github.com/search?q=path%3Asrc%2Fmain%2Fresources%2Fcom%2Fpuppycrawl%2Ftools%2Fcheckstyle%2Fchecks%2Fregexp%20path%3A**%2Fmessages*.properties+repo%3Acheckstyle%2Fcheckstyle+%22illegal.regexp%22">
illegal.regexp</a>
</li>
<li>
<a href="https://github.com/search?q=path%3Asrc%2Fmain%2Fresources%2Fcom%2Fpuppycrawl%2Ftools%2Fcheckstyle%2Fchecks%2Fregexp%20path%3A**%2Fmessages*.properties+repo%3Acheckstyle%2Fcheckstyle+%22required.regexp%22">
required.regexp</a>
</li>
</ul>
<macro name="violation-messages">
<param name="checkName" value="Regexp"/>
</macro>
<p>
All messages can be customized if the default message doesn't suit you.
Please <a href="../../config.html#Custom_messages">see the documentation</a>
Expand Down
12 changes: 8 additions & 4 deletions src/xdocs/checks/regexp/regexpmultiline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -266,19 +266,23 @@ void method() {
<ul>
<li>
<a href="https://github.com/search?q=path%3Asrc%2Fmain%2Fresources%2Fcom%2Fpuppycrawl%2Ftools%2Fcheckstyle%2Fchecks%2Fregexp%20path%3A**%2Fmessages*.properties+repo%3Acheckstyle%2Fcheckstyle+%22regexp.StackOverflowError%22">
regexp.StackOverflowError</a>
regexp.StackOverflowError
</a>
</li>
<li>
<a href="https://github.com/search?q=path%3Asrc%2Fmain%2Fresources%2Fcom%2Fpuppycrawl%2Ftools%2Fcheckstyle%2Fchecks%2Fregexp%20path%3A**%2Fmessages*.properties+repo%3Acheckstyle%2Fcheckstyle+%22regexp.empty%22">
regexp.empty</a>
regexp.empty
</a>
</li>
<li>
<a href="https://github.com/search?q=path%3Asrc%2Fmain%2Fresources%2Fcom%2Fpuppycrawl%2Ftools%2Fcheckstyle%2Fchecks%2Fregexp%20path%3A**%2Fmessages*.properties+repo%3Acheckstyle%2Fcheckstyle+%22regexp.exceeded%22">
regexp.exceeded</a>
regexp.exceeded
</a>
</li>
<li>
<a href="https://github.com/search?q=path%3Asrc%2Fmain%2Fresources%2Fcom%2Fpuppycrawl%2Ftools%2Fcheckstyle%2Fchecks%2Fregexp%20path%3A**%2Fmessages*.properties+repo%3Acheckstyle%2Fcheckstyle+%22regexp.minimum%22">
regexp.minimum</a>
regexp.minimum
</a>
</li>
</ul>
<p>
Expand Down
21 changes: 3 additions & 18 deletions src/xdocs/checks/regexp/regexpmultiline.xml.template
Original file line number Diff line number Diff line change
Expand Up @@ -207,24 +207,9 @@
</subsection>

<subsection name="Violation Messages" id="Violation_Messages">
<ul>
<li>
<a href="https://github.com/search?q=path%3Asrc%2Fmain%2Fresources%2Fcom%2Fpuppycrawl%2Ftools%2Fcheckstyle%2Fchecks%2Fregexp%20path%3A**%2Fmessages*.properties+repo%3Acheckstyle%2Fcheckstyle+%22regexp.StackOverflowError%22">
regexp.StackOverflowError</a>
</li>
<li>
<a href="https://github.com/search?q=path%3Asrc%2Fmain%2Fresources%2Fcom%2Fpuppycrawl%2Ftools%2Fcheckstyle%2Fchecks%2Fregexp%20path%3A**%2Fmessages*.properties+repo%3Acheckstyle%2Fcheckstyle+%22regexp.empty%22">
regexp.empty</a>
</li>
<li>
<a href="https://github.com/search?q=path%3Asrc%2Fmain%2Fresources%2Fcom%2Fpuppycrawl%2Ftools%2Fcheckstyle%2Fchecks%2Fregexp%20path%3A**%2Fmessages*.properties+repo%3Acheckstyle%2Fcheckstyle+%22regexp.exceeded%22">
regexp.exceeded</a>
</li>
<li>
<a href="https://github.com/search?q=path%3Asrc%2Fmain%2Fresources%2Fcom%2Fpuppycrawl%2Ftools%2Fcheckstyle%2Fchecks%2Fregexp%20path%3A**%2Fmessages*.properties+repo%3Acheckstyle%2Fcheckstyle+%22regexp.minimum%22">
regexp.minimum</a>
</li>
</ul>
<macro name="violation-messages">
<param name="checkName" value="RegexpMultiline"/>
</macro>
<p>
All messages can be customized if the default message doesn't suit you.
Please <a href="../../config.html#Custom_messages">see the documentation</a>
Expand Down
6 changes: 4 additions & 2 deletions src/xdocs/checks/regexp/regexponfilename.xml
Original file line number Diff line number Diff line change
Expand Up @@ -249,11 +249,13 @@ src/main/main_class.java //violation, file names should be in Camel Case
<ul>
<li>
<a href="https://github.com/search?q=path%3Asrc%2Fmain%2Fresources%2Fcom%2Fpuppycrawl%2Ftools%2Fcheckstyle%2Fchecks%2Fregexp%20path%3A**%2Fmessages*.properties+repo%3Acheckstyle%2Fcheckstyle+%22regexp.filename.match%22">
regexp.filename.match</a>
regexp.filename.match
</a>
</li>
<li>
<a href="https://github.com/search?q=path%3Asrc%2Fmain%2Fresources%2Fcom%2Fpuppycrawl%2Ftools%2Fcheckstyle%2Fchecks%2Fregexp%20path%3A**%2Fmessages*.properties+repo%3Acheckstyle%2Fcheckstyle+%22regexp.filename.mismatch%22">
regexp.filename.mismatch</a>
regexp.filename.mismatch
</a>
</li>
</ul>
<p>
Expand Down
13 changes: 3 additions & 10 deletions src/xdocs/checks/regexp/regexponfilename.xml.template
Original file line number Diff line number Diff line change
Expand Up @@ -218,16 +218,9 @@
</subsection>

<subsection name="Violation Messages" id="Violation_Messages">
<ul>
<li>
<a href="https://github.com/search?q=path%3Asrc%2Fmain%2Fresources%2Fcom%2Fpuppycrawl%2Ftools%2Fcheckstyle%2Fchecks%2Fregexp%20path%3A**%2Fmessages*.properties+repo%3Acheckstyle%2Fcheckstyle+%22regexp.filename.match%22">
regexp.filename.match</a>
</li>
<li>
<a href="https://github.com/search?q=path%3Asrc%2Fmain%2Fresources%2Fcom%2Fpuppycrawl%2Ftools%2Fcheckstyle%2Fchecks%2Fregexp%20path%3A**%2Fmessages*.properties+repo%3Acheckstyle%2Fcheckstyle+%22regexp.filename.mismatch%22">
regexp.filename.mismatch</a>
</li>
</ul>
<macro name="violation-messages">
<param name="checkName" value="RegexpOnFilename"/>
</macro>
<p>
All messages can be customized if the default message doesn't suit you.
Please <a href="../../config.html#Custom_messages">see the documentation</a>
Expand Down
6 changes: 4 additions & 2 deletions src/xdocs/checks/regexp/regexpsingleline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,13 @@ CREATE DATABASE MyDB;
<ul>
<li>
<a href="https://github.com/search?q=path%3Asrc%2Fmain%2Fresources%2Fcom%2Fpuppycrawl%2Ftools%2Fcheckstyle%2Fchecks%2Fregexp%20path%3A**%2Fmessages*.properties+repo%3Acheckstyle%2Fcheckstyle+%22regexp.exceeded%22">
regexp.exceeded</a>
regexp.exceeded
</a>
</li>
<li>
<a href="https://github.com/search?q=path%3Asrc%2Fmain%2Fresources%2Fcom%2Fpuppycrawl%2Ftools%2Fcheckstyle%2Fchecks%2Fregexp%20path%3A**%2Fmessages*.properties+repo%3Acheckstyle%2Fcheckstyle+%22regexp.minimum%22">
regexp.minimum</a>
regexp.minimum
</a>
</li>
</ul>
<p>
Expand Down
13 changes: 3 additions & 10 deletions src/xdocs/checks/regexp/regexpsingleline.xml.template
Original file line number Diff line number Diff line change
Expand Up @@ -170,16 +170,9 @@
</subsection>

<subsection name="Violation Messages" id="Violation_Messages">
<ul>
<li>
<a href="https://github.com/search?q=path%3Asrc%2Fmain%2Fresources%2Fcom%2Fpuppycrawl%2Ftools%2Fcheckstyle%2Fchecks%2Fregexp%20path%3A**%2Fmessages*.properties+repo%3Acheckstyle%2Fcheckstyle+%22regexp.exceeded%22">
regexp.exceeded</a>
</li>
<li>
<a href="https://github.com/search?q=path%3Asrc%2Fmain%2Fresources%2Fcom%2Fpuppycrawl%2Ftools%2Fcheckstyle%2Fchecks%2Fregexp%20path%3A**%2Fmessages*.properties+repo%3Acheckstyle%2Fcheckstyle+%22regexp.minimum%22">
regexp.minimum</a>
</li>
</ul>
<macro name="violation-messages">
<param name="checkName" value="RegexpSingleline"/>
</macro>
<p>
All messages can be customized if the default message doesn't suit you.
Please <a href="../../config.html#Custom_messages">see the documentation</a>
Expand Down
6 changes: 4 additions & 2 deletions src/xdocs/checks/regexp/regexpsinglelinejava.xml
Original file line number Diff line number Diff line change
Expand Up @@ -240,11 +240,13 @@ class Foo{
<ul>
<li>
<a href="https://github.com/search?q=path%3Asrc%2Fmain%2Fresources%2Fcom%2Fpuppycrawl%2Ftools%2Fcheckstyle%2Fchecks%2Fregexp%20path%3A**%2Fmessages*.properties+repo%3Acheckstyle%2Fcheckstyle+%22regexp.exceeded%22">
regexp.exceeded</a>
regexp.exceeded
</a>
</li>
<li>
<a href="https://github.com/search?q=path%3Asrc%2Fmain%2Fresources%2Fcom%2Fpuppycrawl%2Ftools%2Fcheckstyle%2Fchecks%2Fregexp%20path%3A**%2Fmessages*.properties+repo%3Acheckstyle%2Fcheckstyle+%22regexp.minimum%22">
regexp.minimum</a>
regexp.minimum
</a>
</li>
</ul>
<p>
Expand Down
13 changes: 3 additions & 10 deletions src/xdocs/checks/regexp/regexpsinglelinejava.xml.template
Original file line number Diff line number Diff line change
Expand Up @@ -186,16 +186,9 @@
</subsection>

<subsection name="Violation Messages" id="Violation_Messages">
<ul>
<li>
<a href="https://github.com/search?q=path%3Asrc%2Fmain%2Fresources%2Fcom%2Fpuppycrawl%2Ftools%2Fcheckstyle%2Fchecks%2Fregexp%20path%3A**%2Fmessages*.properties+repo%3Acheckstyle%2Fcheckstyle+%22regexp.exceeded%22">
regexp.exceeded</a>
</li>
<li>
<a href="https://github.com/search?q=path%3Asrc%2Fmain%2Fresources%2Fcom%2Fpuppycrawl%2Ftools%2Fcheckstyle%2Fchecks%2Fregexp%20path%3A**%2Fmessages*.properties+repo%3Acheckstyle%2Fcheckstyle+%22regexp.minimum%22">
regexp.minimum</a>
</li>
</ul>
<macro name="violation-messages">
<param name="checkName" value="RegexpSinglelineJava"/>
</macro>
<p>
All messages can be customized if the default message doesn't suit you.
Please <a href="../../config.html#Custom_messages">see the documentation</a>
Expand Down

0 comments on commit 5d36f8d

Please sign in to comment.