Fixit icon indicating copy to clipboard operation
Fixit copied to clipboard

Allow files to be excluded for AddMissingHeaderRule

Open zsol opened this issue 5 years ago • 2 comments

Add an option to AddMissingHeaderRule so some files can be exempt from it.

Something like:

rule_config:
   AddMissingHeaderRule:
       path: pkg/*.py
       exclude:
           - pkg/uninteresting*.py
       header: |-
           # header line 1
           # header line 2

zsol avatar Nov 18 '20 17:11 zsol

Although maybe #156 will help with this.

zsol avatar Nov 18 '20 18:11 zsol

Make suppression comment lint-ignore: AddMissingHeaderRule works is a better and more consistent user experience. #156 is specific for ImportConstraintRule which doesn't seem related.

jimmylai avatar Nov 18 '20 23:11 jimmylai