Skip to content

Commit 9b3c8ce

Browse files
Issue #17727: Add regex pattern to forbid lowercase Javadoc beginnings in google_checks.xml
1 parent aa07f91 commit 9b3c8ce

File tree

195 files changed

+930
-926
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

195 files changed

+930
-926
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ int test1(int badFormat1, int badFormat2, final int badFormat3) throws Exception
2525
// tabs that count as one char because of their position -> <- -> <-
2626
// violation above 'Line contains a tab character.'
2727

28-
/** some lines to test the column after tabs. */
28+
/** Some lines to test the column after tabs. */
2929
void violateColumnAfterTabs() {
3030
// with tab-width 8 all statements below start at the same column,
3131
// with different combinations of ' ' and '\t' before the statement

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ int test1(int badFormat1, int badFormat2,
2626
// tabs that count as one char because of their position -> <- -> <-
2727
// violation above 'Line contains a tab character.'
2828

29-
/** some lines to test the column after tabs. */
29+
/** Some lines to test the column after tabs. */
3030
void violateColumnAfterTabs() {
3131
// with tab-width 8 all statements below start at the same column,
3232
// with different combinations of ' ' and '\t' before the statement

src/it/resources/com/google/checkstyle/test/chapter2filebasic/rule232specialescape/InputSpecialEscapeSequences.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/** Test for illegal tokens. */
44
public class InputSpecialEscapeSequences {
55

6-
/** some javadoc. */
6+
/** Some javadoc. */
77
public void methodWithLiterals() {
88
final String ref = "<a href=\"";
99
final String refCase = "<A hReF=\"";

src/it/resources/com/google/checkstyle/test/chapter2filebasic/rule232specialescape/InputSpecialEscapeSequencesInTextBlockForOctalValues.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public void specialCharsWithoutWarn() {
4040
}
4141
}
4242

43-
/** some javadoc. */
43+
/** Some javadoc. */
4444
public void methodWithLiterals() {
4545
final String ref =
4646
"""

src/it/resources/com/google/checkstyle/test/chapter3filestructure/rule32packagestatement/InputPackageStatement.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.google.checkstyle.test. // violation 'package statement should not be line-wrapped.'
22
chapter3filestructure.rule32packagestatement;
33

4-
/** some javadoc. */
4+
/** Some javadoc. */
55
public class InputPackageStatement {
66
// Long line
77
// -----------------------------------------------------------------------------------------------------

src/it/resources/com/google/checkstyle/test/chapter3filestructure/rule333orderingandspacing/InputFormattedOrderingAndSpacing1.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
/** Some javadoc. */
1616
public class InputFormattedOrderingAndSpacing1 {
17-
/** some javadoc. */
17+
/** Some javadoc. */
1818
public static void main(String[] args) {
1919
// Use of static imports
2020
try {

src/it/resources/com/google/checkstyle/test/chapter3filestructure/rule333orderingandspacing/InputOrderingAndSpacing1.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
/** Some javadoc. */
3131
public class InputOrderingAndSpacing1 {
32-
/** some javadoc. */
32+
/** Some javadoc. */
3333
public static void main(String[] args) {
3434
// Use of static imports
3535
try {

src/it/resources/com/google/checkstyle/test/chapter3filestructure/rule3421overloadsplit/InputOverloadsNeverSplit.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -132,26 +132,26 @@ private class Inner4 {
132132

133133
private class Inner5 {}
134134

135-
/** some javadoc. */
135+
/** Some javadoc. */
136136
public void overloadMethod(int i) {
137137
// some foo code
138138
}
139139

140-
/** some javadoc. */
140+
/** Some javadoc. */
141141
public void overloadMethod(String s) {
142142
// some foo code
143143
}
144144

145-
/** some javadoc. */
145+
/** Some javadoc. */
146146
public void overloadMethod(boolean b) {
147147
// some foo code
148148
}
149149

150-
/** some javadoc. */
150+
/** Some javadoc. */
151151
public void fooMethod() {}
152152

153153
// violation 2 lines below 'All overloaded methods should be placed next to each other. .* '146'.'
154-
/** some javadoc. */
154+
/** Some javadoc. */
155155
public void overloadMethod(String s, Boolean b, int i) {
156156
// some foo code
157157
}
@@ -178,18 +178,18 @@ public void overloadMethod(String s, Boolean b, int i) {
178178
}
179179
};
180180

181-
/** some javadoc. */
181+
/** Some javadoc. */
182182
public void testing() {}
183183

184184
private void testing(int a) {}
185185

186-
/** some javadoc. */
186+
/** Some javadoc. */
187187
public void testing(int a, int b) {}
188188

189-
/** some javadoc. */
189+
/** Some javadoc. */
190190
public static void testing(String a) {}
191191

192-
/** some javadoc. */
192+
/** Some javadoc. */
193193
public void testing(String a, String b) {}
194194

195195
interface Fooable {

src/it/resources/com/google/checkstyle/test/chapter4formatting/rule411optionalbracesusage/InputUseOfOptionalBraces.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
class InputUseOfOptionalBraces {
44
/**
5-
* some javadoc..
5+
* Some javadoc..
66
*
77
* @return helper func *
88
*/

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
class InputFormattedNonemptyBlocksLeftRightCurly {
44
/**
5-
* summary.
5+
* Summary.
66
*
77
* @return helper func *
88
*/
@@ -145,7 +145,7 @@ class WithArraysLeft2 {
145145
// violation below 'Top-level class InputRightCurlyOther22 has to reside in its own source file.'
146146
class InputRightCurlyOther22 {
147147
/**
148-
* summary.
148+
* Summary.
149149
*
150150
* @see test method *
151151
*/
@@ -196,7 +196,7 @@ int foo() throws InterruptedException {
196196
int x = 1;
197197
}
198198

199-
/** some javadoc. */
199+
/** Some javadoc. */
200200
public enum GreetingsEnum {
201201
HELLO,
202202
GOODBYE

0 commit comments

Comments
 (0)