Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dscanner.ini settings get ignored when adding ModuleFilters #940

Open
SingingBush opened this issue Oct 26, 2023 · 0 comments
Open

dscanner.ini settings get ignored when adding ModuleFilters #940

SingingBush opened this issue Oct 26, 2023 · 0 comments

Comments

@SingingBush
Copy link

The following works fine for all modules:

[analysis.config.StaticAnalysisConfig]
undocumented_declaration_check="disabled"

but if I add another setting specific to a module, with ModuleFilters before StaticAnalysisConfig, then the undocumented_declaration_check is somehow enabled again.

[analysis.config.ModuleFilters]
could_be_immutable_check="+myproject.app,-myproject.tests"

[analysis.config.StaticAnalysisConfig]
undocumented_declaration_check="disabled"

If I put StaticAnalysisConfig before the ModuleFilters then the undocumented_declaration_check does get disabled as expected but the could_be_immutable_check is still being checked against myproject.tests when it shouldn't be.

[analysis.config.StaticAnalysisConfig]
undocumented_declaration_check="disabled"

[analysis.config.ModuleFilters]
could_be_immutable_check="+myproject.app,-myproject.tests"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant