Skip to content

Conversation

alanmcruickshank
Copy link
Member

@alanmcruickshank alanmcruickshank commented Sep 26, 2024

I noticed that while most of the rules are defined in plugin bundles now (and therefore outside of the core package), and that there's a plugin hook for importing config validation values - none of the bundles use it, and instead all the config validation settings are still centrally defined.

This moves most of them out into the rule bundles, for better isolation, and not better mimic how external plugin maintainers should structure their projects.

I also removed the validation for any config values which are no longer valid to have on rules.

Copy link
Contributor

github-actions bot commented Sep 26, 2024

Coverage Results ✅

Name    Stmts   Miss  Cover   Missing
-------------------------------------
TOTAL   18396      0   100%

236 files skipped due to complete coverage.

@coveralls
Copy link

coveralls commented Sep 26, 2024

Coverage Status

coverage: 99.985%. remained the same
when pulling c24ab6d on ac/config_info
into dbbf765 on main.

new_rule = Rule_NewRule_ZZ99(code="L000", description="", tab_space_size=6)
assert new_rule.tab_space_size == 6
new_rule = Rule_NewRule_ZZ99(code="L000", description="", case_sensitive=False)
assert new_rule.case_sensitive is False
# Error is thrown since "tab_space_size" is defined in class,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment here referencing tab_space_size should be updated.

@alanmcruickshank alanmcruickshank merged commit 158054c into main Sep 29, 2024
29 checks passed
@alanmcruickshank alanmcruickshank deleted the ac/config_info branch September 29, 2024 20:08
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

Successfully merging this pull request may close these issues.

3 participants