Skip to content

Commit

Permalink
[MSHARED-1155] Remove rules to be enforced related to code style
Browse files Browse the repository at this point in the history
Those should be enforced by using a formatter through the spotless plugin
  • Loading branch information
gnodet committed Oct 25, 2022
1 parent d4dbd3e commit 704375f
Showing 1 changed file with 0 additions and 57 deletions.
57 changes: 0 additions & 57 deletions src/main/resources/config/maven_checks_nocodestyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,34 +34,8 @@ under the License.
<property name="fileNamePattern" value="module\-info\.java$" />
</module>

<!-- Checks whether files end with a new line. -->
<!-- See https://checkstyle.org/config_misc.html#NewlineAtEndOfFile -->
<!-- module name="NewlineAtEndOfFile"/ -->

<module name="FileLength"/>

<!-- Checks for Headers -->
<!-- See https://checkstyle.org/config_header.html -->
<module name="RegexpHeader">
<property name="fileExtensions" value="java"/>
<property name="headerFile" value="${checkstyle.header.file}"/>
</module>

<module name="FileTabCharacter">
<property name="eachLine" value="true"/>
</module>

<!-- Line with trailing spaces (disabled as it's too noisy) -->
<!--<module name="RegexpSingleline">
<property name="format" value="\s+$"/>
<property name="message" value="Line has trailing spaces."/>
</module>-->

<module name="LineLength">
<property name="max" value="120" />
<property name="ignorePattern" value="@version|@see|@todo|TODO"/>
</module>

<!-- Support CHECKSTYLE_OFF: regexp and CHECKSTYLE_ON: regexp comments to disable/enable some checks -->
<!-- see https://checkstyle.org/config_filters.html#SuppressWithPlainTextCommentFilter -->
<module name="SuppressWithPlainTextCommentFilter">
Expand All @@ -78,14 +52,6 @@ under the License.
<!-- see https://checkstyle.org/config_annotation.html#SuppressWarningsHolder -->
<module name="SuppressWarningsHolder"/>

<module name="LeftCurly">
<property name="option" value="nl"/>
</module>

<module name="RightCurly">
<property name="option" value="alone"/>
</module>

<module name="MemberName" />

<!-- Checks for Javadoc comments. -->
Expand Down Expand Up @@ -120,34 +86,11 @@ under the License.
<module name="StaticVariableName"/>
<module name="TypeName"/>

<!-- Checks for imports -->
<!-- See https://checkstyle.org/config_imports.html -->
<module name="AvoidStarImport"/>
<module name="IllegalImport"/>
<module name="RedundantImport"/>
<module name="UnusedImports"/>

<!-- Checks for Size Violations. -->
<!-- See https://checkstyle.org/config_sizes.html -->
<module name="MethodLength"/>
<module name="ParameterNumber"/>

<!-- Checks for whitespace -->
<!-- See https://checkstyle.org/config_whitespace.html -->
<module name="EmptyForIteratorPad">
<property name="option" value="space"/>
</module>
<!-- module name="NoWhitespaceAfter"/ -->
<!-- module name="NoWhitespaceBefore"/ -->
<module name="OperatorWrap"/>
<module name="ParenPad">
<property name="option" value="space" />
</module>
<module name="WhitespaceAfter"/>
<module name="WhitespaceAround"/>
<!-- module name="MethodParamPad"/ -->
<module name="GenericWhitespace"/>

<!-- Modifier Checks -->
<!-- See https://checkstyle.org/config_modifier.html -->
<module name="ModifierOrder"/>
Expand Down

0 comments on commit 704375f

Please sign in to comment.