Extending rules¶
Checklist¶
Extend the RULES list in
wscheck/checker.pyfile with the next IDWrite unit tests and production code with TDD
- Extend the
tests/unit/checker/test_rules.pyfile with specific unit tests. - Write the checker in
wscheck/checker.pyfile. - Extend the complex cases with the new rule related things.
- Extend the
Extend performance tests in
tests/performance/test_checker_performance.py- With a rule specific suite.
- Extend the complex case too.
- Run all performance tests for check performance degradation!
Extend documentation
- Create
docs/rules/WSC000.rstfile for describing the rule. - Write example into
examples/WSC000_fooand use it in the.rst. - Extend
examples/multiple_problems.pyfile with a typical wrong line for demonstrate. - Refresh the output in
README.rsttoo.
- Create
Update changelog
- Extend the link list of rules at the bottom of
CHANGELOG.md. - Update the Unreleased section of
CHANGELOG.md, where refers to the rule.
- Extend the link list of rules at the bottom of