Skip to content

Commit

Permalink
Delete DuplicateAttributeCheck
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladiwostok committed Feb 20, 2024
1 parent 2bf728f commit 189d000
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 271 deletions.
2 changes: 2 additions & 0 deletions changelog/dscanner.duplicate-attribute-check.dd
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Remove the check for duplicate attributes (@property, @safe, @trusted, @system, pure, nothrow).
This check is no longer necessary since having duplicated attributes is now a compiler error.
266 changes: 0 additions & 266 deletions src/dscanner/analysis/duplicate_attribute.d

This file was deleted.

5 changes: 0 additions & 5 deletions src/dscanner/analysis/run.d
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ import dscanner.analysis.constructors;
import dscanner.analysis.unused_variable;
import dscanner.analysis.unused_label;
import dscanner.analysis.unused_parameter;
import dscanner.analysis.duplicate_attribute;
import dscanner.analysis.opequals_without_tohash;
import dscanner.analysis.length_subtraction;
import dscanner.analysis.builtin_property_names;
Expand Down Expand Up @@ -840,10 +839,6 @@ private BaseAnalyzer[] getAnalyzersForModuleAndConfig(string fileName,
checks ~= new UnmodifiedFinder(args.setSkipTests(
analysisConfig.could_be_immutable_check == Check.skipTests && !ut));

if (moduleName.shouldRun!DuplicateAttributeCheck(analysisConfig))
checks ~= new DuplicateAttributeCheck(args.setSkipTests(
analysisConfig.duplicate_attribute == Check.skipTests && !ut));

if (moduleName.shouldRun!FunctionAttributeCheck(analysisConfig))
checks ~= new FunctionAttributeCheck(args.setSkipTests(
analysisConfig.function_attribute_check == Check.skipTests && !ut));
Expand Down

0 comments on commit 189d000

Please sign in to comment.