You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to have a flag for a more strict matching for generated files?
For example, something like --skip-generated-strict that only matches files with the regular expression ^// Code generated .* DO NOT EDIT\.$ as the first non-comment, non-blank text in the file, as explained in https://pkg.go.dev/cmd/go#hdr-Generate_Go_files_by_processing_source?
Rationale
Right now, the --skip-generated flag instructs gci to ignore files containing any of these strings:
Some of these strings create false positives, often appearing in hand-written files (especially the last one, genAutoGenerated).
The text was updated successfully, but these errors were encountered:
alcortesm
changed the title
add an option for strict matching for generated code
add an option for strict matching of generated code
Dec 30, 2024
alcortesm
changed the title
add an option for strict matching of generated code
add an flag for strict matching of generated code
Dec 30, 2024
alcortesm
changed the title
add an flag for strict matching of generated code
Feature request: add an flag for strict matching of generated code
Dec 30, 2024
What version of GCI are you using?
Feature Request
Would it be possible to have a flag for a more strict matching for generated files?
For example, something like
--skip-generated-strict
that only matches files with the regular expression^// Code generated .* DO NOT EDIT\.$
as the first non-comment, non-blank text in the file, as explained in https://pkg.go.dev/cmd/go#hdr-Generate_Go_files_by_processing_source?Rationale
Right now, the
--skip-generated
flag instructs gci to ignore files containing any of these strings:Some of these strings create false positives, often appearing in hand-written files (especially the last one, genAutoGenerated).
The text was updated successfully, but these errors were encountered: