Skip to content
Permalink
Browse files
Update checkstyle and enforce.
  • Loading branch information
garydgregory committed Oct 22, 2021
1 parent 7a060bd commit 897593c0f09ba8b87b3dd13dce00b0d5fbdf2c3f
Showing 5 changed files with 6 additions and 12 deletions.
@@ -46,13 +46,13 @@ limitations under the License.
</module>

<module name="TreeWalker">
<module name="LeftCurly" />

<!-- Checks for Javadoc comments. -->
<!-- See http://checkstyle.sf.net/config_javadoc.html -->
<module name="JavadocType"/>
<module name="JavadocVariable"/>


<!-- Checks for Naming Conventions. -->
<!-- See http://checkstyle.sf.net/config_naming.html -->
<module name="ConstantName"/>
@@ -72,7 +72,6 @@ limitations under the License.
<module name="RedundantImport"/>
<module name="UnusedImports"/>


<!-- Checks for Size Violations. -->
<!-- See http://checkstyle.sf.net/config_sizes.html -->
<!--<module name="FileLength"/>-->
@@ -78,8 +78,7 @@ protected String[] flatten(final Options options, final String[] arguments, fina
}

if (eatTheRest) {
for (i++; i < arguments.length; i++) // NOPMD
{
for (i++; i < arguments.length; i++) { // NOPMD
tokens.add(arguments[i]);
}
}
@@ -807,8 +807,7 @@ private Appendable renderWrappedTextBlock(final StringBuffer sb, final int width
}
renderWrappedText(sb, width, nextLineTabStop, line);
}
} catch (final IOException e) // NOPMD
{
} catch (final IOException e) { // NOPMD
// cannot happen
}

@@ -310,8 +310,7 @@ protected void processProperties(final Properties properties) throws ParseExcept
if (opt.getValues() == null || opt.getValues().length == 0) {
try {
opt.addValueForProcessing(value);
} catch (final RuntimeException exp) // NOPMD
{
} catch (final RuntimeException exp) { // NOPMD
// if we cannot add the value don't worry about it
}
}
@@ -294,8 +294,7 @@ public void testOptionWithoutShortFormat2() {
}

@Test
public void testPrintHelpNewlineFooter()
{
public void testPrintHelpNewlineFooter() {
final HelpFormatter formatter = new HelpFormatter();
final ByteArrayOutputStream out = new ByteArrayOutputStream();
final PrintWriter pw = new PrintWriter(out);
@@ -322,8 +321,7 @@ public void testPrintHelpNewlineFooter()
}

@Test
public void testPrintHelpNewlineHeader()
{
public void testPrintHelpNewlineHeader() {
final HelpFormatter formatter = new HelpFormatter();
final ByteArrayOutputStream out = new ByteArrayOutputStream();
final PrintWriter pw = new PrintWriter(out);

0 comments on commit 897593c

Please sign in to comment.