Skip to content

Commit

Permalink
Simplify config: remove Generic.CodeAnalysis.UnusedFunctionParameter
Browse files Browse the repository at this point in the history
too many special cases.
also, we should like to minimize number of warnings and use errors only
  • Loading branch information
alies-dev committed Dec 21, 2023
1 parent 9171605 commit cc52a7a
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions IxDFCodingStandard/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,22 +70,6 @@
<rule ref="Generic.CodeAnalysis.UnnecessaryFinalModifier"/>
<!-- Forbid useless empty method overrides -->
<rule ref="Generic.CodeAnalysis.UselessOverridingMethod"/>
<rule ref="Generic.CodeAnalysis.UnusedFunctionParameter">
<!-- But allow specifying unused params not the last parameters that are used. Needed for code not owned by us. -->
<exclude name="Generic.CodeAnalysis.UnusedFunctionParameter.FoundBeforeLastUsed"/>
<!-- But allow specifying unused params for methods declared in parent classes -->
<exclude name="Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClass"/>
<!-- But allow specifying unused params for methods declared in parent classes -->
<exclude name="Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClassBeforeLastUsed"/>
<!-- But allow specifying unused params for methods declared in parent classes -->
<exclude name="Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClassAfterLastUsed"/>
<!-- But allow specifying unused params for methods declared in parent interface -->
<exclude name="Generic.CodeAnalysis.UnusedFunctionParameter.FoundInImplementedInterface"/>
<!-- But allow specifying unused params for methods declared in parent interface -->
<exclude name="Generic.CodeAnalysis.UnusedFunctionParameter.FoundInImplementedInterfaceBeforeLastUsed"/>
<!-- But allow specifying unused params for methods declared in parent interface -->
<exclude name="Generic.CodeAnalysis.UnusedFunctionParameter.FoundInImplementedInterfaceAfterLastUsed"/>
</rule>
<!-- Detects the usage of one and the same incrementer into an outer and an inner -->
<rule ref="Generic.CodeAnalysis.JumbledIncrementer"/>
<rule ref="Generic.CodeAnalysis.UnconditionalIfStatement"/>
Expand Down

0 comments on commit cc52a7a

Please sign in to comment.