Skip to content

Commit 8561843

Browse files
committed
Issue #6771: use 'violation'/'problem' term in it/resources instead of 'error'
1 parent 88a7991 commit 8561843

File tree

9 files changed

+19
-19
lines changed

9 files changed

+19
-19
lines changed

src/it/resources/com/google/checkstyle/test/chapter2filebasic/rule231filetab/InputFileTabCharacter.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ void ALL_UPPERCASE_METHOD()
121121
// long line that has a tab -> <- and would be OK if tab counted as 1 char //warn
122122
// tabs that count as one char because of their position -> <- -> <- //warn
123123

124-
/** some lines to test the error column after tabs */
125-
void errorColumnAfterTabs()
124+
/** some lines to test the column after tabs */
125+
void violateColumnAfterTabs()
126126
{
127127
// with tab-width 8 all statements below start at the same column,
128128
// with different combinations of ' ' and '\t' before the statement

src/it/resources/com/google/checkstyle/test/chapter3filestructure/rule332nolinewrap/InputLineLength.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ void ALL_UPPERCASE_METHOD()
131131
// long line that has a tab -> <- and would be OK if tab counted as 1 char
132132
// tabs that count as one char because of their position -> <- -> <-, OK
133133

134-
/** some lines to test the error column after tabs */
135-
void errorColumnAfterTabs()
134+
/** some lines to test the column after tabs */
135+
void violateColumnAfterTabs()
136136
{
137137
// with tab-width 8 all statements below start at the same column,
138138
// with different combinations of ' ' and '\t' before the statement

src/it/resources/com/google/checkstyle/test/chapter4formatting/rule412nonemptyblocks/InputRightCurlyDoWhile.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ public void foo4() {
4747
String.CASE_INSENSITIVE_ORDER.equals("My number is greater than yours");
4848
}
4949
} else {
50-
String.CASE_INSENSITIVE_ORDER.equals("Error!");
50+
String.CASE_INSENSITIVE_ORDER.equals("Violation!");
5151
}
5252
}
5353
} while( user != prog );
5454
} else {
55-
String.CASE_INSENSITIVE_ORDER.equals("Error!");
55+
String.CASE_INSENSITIVE_ORDER.equals("Violation!");
5656
}
5757
String.CASE_INSENSITIVE_ORDER.equals("Goodbye!");
5858
}

src/it/resources/com/google/checkstyle/test/chapter4formatting/rule412nonemptyblocks/InputRightCurlyDoWhileAlone.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ public void foo4() {
4747
String.CASE_INSENSITIVE_ORDER.equals("My number is greater than yours");
4848
}
4949
} else {
50-
String.CASE_INSENSITIVE_ORDER.equals("Error!");
50+
String.CASE_INSENSITIVE_ORDER.equals("Violation!");
5151
}
5252
}
5353
} while( user != prog );
5454
} else {
55-
String.CASE_INSENSITIVE_ORDER.equals("Error!");
55+
String.CASE_INSENSITIVE_ORDER.equals("Violation!");
5656
}
5757
String.CASE_INSENSITIVE_ORDER.equals("Goodbye!");
5858
}

src/it/resources/com/google/checkstyle/test/chapter4formatting/rule44columnlimit/InputLineLength.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ void ALL_UPPERCASE_METHOD()
131131
// long line that has a tab -> <- and would be OK if tab counted as 1 char
132132
// tabs that count as one char because of their position -> <- -> <-, OK
133133

134-
/** some lines to test the error column after tabs */
135-
void errorColumnAfterTabs()
134+
/** some lines to test the column after tabs */
135+
void violateColumnAfterTabs()
136136
{
137137
// with tab-width 8 all statements below start at the same column,
138138
// with different combinations of ' ' and '\t' before the statement

src/it/resources/com/google/checkstyle/test/chapter4formatting/rule462horizontalwhitespace/InputWhitespaceAroundBasic.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
* Class for testing whitespace issues.
5-
* error missing author tag
5+
* violation missing author tag
66
**/
77
class InputWhitespaceAroundBasic
88
{

src/it/resources/com/google/checkstyle/test/chapter7javadoc/rule711generalform/InputSingleLineJavadocCheck.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ void foo1() {}
1010
*/
1111
void foo2() {}
1212

13-
/** @throws CheckstyleException if an error occurs */ //warn
13+
/** @throws CheckstyleException if a problem occurs */ //warn
1414
void foo3() {}
1515

1616
/**
17-
* @throws CheckstyleException if an error occurs
17+
* @throws CheckstyleException if a problem occurs
1818
*/
1919
void foo4() {}
2020

src/it/resources/com/google/checkstyle/test/chapter7javadoc/rule72thesummaryfragment/InputCorrectSummaryJavaDocCheck.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ void foo3() {}
1717

1818
/**
1919
* This is valid.
20-
* @throws Exception if an error occurs.
20+
* @throws Exception if a problem occurs.
2121
*/
2222
void foo4() throws Exception {}
2323

@@ -66,7 +66,7 @@ void foo3() {}
6666

6767
/**
6868
* This is valid.
69-
* @throws Exception if an error occurs.
69+
* @throws Exception if a problem occurs.
7070
*/
7171
void foo4() throws Exception {}
7272

@@ -110,7 +110,7 @@ void foo3() {}
110110

111111
/**
112112
* This is valid.
113-
* @throws Exception if an error occurs.
113+
* @throws Exception if a problem occurs.
114114
*/
115115
void foo4() throws Exception {}
116116

src/it/resources/com/google/checkstyle/test/chapter7javadoc/rule72thesummaryfragment/InputIncorrectSummaryJavaDocCheck.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class InputIncorrectSummaryJavaDocCheck {
1212
void foo3() {}
1313

1414
/*warn*//**
15-
* @throws Exception if an error occurs
15+
* @throws Exception if a problem occurs
1616
*/
1717
void foo4() throws Exception {}
1818

@@ -67,7 +67,7 @@ void foo2() {}
6767
void foo3() {}
6868

6969
/*warn*//**
70-
* @throws Exception if an error occurs
70+
* @throws Exception if a problem occurs
7171
*/
7272
void foo4() throws Exception {}
7373

@@ -101,7 +101,7 @@ void emulated(String s) {}
101101
void foo3() {}
102102

103103
/*warn*//**
104-
* @throws Exception if an error occurs
104+
* @throws Exception if a problem occurs
105105
*/
106106
void foo4() throws Exception {}
107107

0 commit comments

Comments
 (0)