Skip to content

Commit 3c1778f

Browse files
committed
Revert "Simplify config: remove Generic.CodeAnalysis.UnusedFunctionParameter"
This reverts commit cc52a7a.
1 parent cc52a7a commit 3c1778f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

IxDFCodingStandard/ruleset.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,22 @@
7070
<rule ref="Generic.CodeAnalysis.UnnecessaryFinalModifier"/>
7171
<!-- Forbid useless empty method overrides -->
7272
<rule ref="Generic.CodeAnalysis.UselessOverridingMethod"/>
73+
<rule ref="Generic.CodeAnalysis.UnusedFunctionParameter">
74+
<!-- But allow specifying unused params not the last parameters that are used. Needed for code not owned by us. -->
75+
<exclude name="Generic.CodeAnalysis.UnusedFunctionParameter.FoundBeforeLastUsed"/>
76+
<!-- But allow specifying unused params for methods declared in parent classes -->
77+
<exclude name="Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClass"/>
78+
<!-- But allow specifying unused params for methods declared in parent classes -->
79+
<exclude name="Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClassBeforeLastUsed"/>
80+
<!-- But allow specifying unused params for methods declared in parent classes -->
81+
<exclude name="Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClassAfterLastUsed"/>
82+
<!-- But allow specifying unused params for methods declared in parent interface -->
83+
<exclude name="Generic.CodeAnalysis.UnusedFunctionParameter.FoundInImplementedInterface"/>
84+
<!-- But allow specifying unused params for methods declared in parent interface -->
85+
<exclude name="Generic.CodeAnalysis.UnusedFunctionParameter.FoundInImplementedInterfaceBeforeLastUsed"/>
86+
<!-- But allow specifying unused params for methods declared in parent interface -->
87+
<exclude name="Generic.CodeAnalysis.UnusedFunctionParameter.FoundInImplementedInterfaceAfterLastUsed"/>
88+
</rule>
7389
<!-- Detects the usage of one and the same incrementer into an outer and an inner -->
7490
<rule ref="Generic.CodeAnalysis.JumbledIncrementer"/>
7591
<rule ref="Generic.CodeAnalysis.UnconditionalIfStatement"/>

0 commit comments

Comments
 (0)