Skip to content

Commit befd449

Browse files
committed
Make editorconfig-checker exclude regexes explicit
The `Exclude` array in the `.ecrc` configuration file contains the regular expressions of paths that should be excluded from checking by the editorconfig-checker tool. Previously, the "template" file contained a list of filenames that should always be ignored. Although it did work, it was not really correct because the `.` in the filename is actually a regex wildcard, which is not what was intended. Although a false match was unlikely, this also might mislead users adding project-specific exclusions to the file regarding the nature of the exclude patterns. Changing to very explicit patterns avoids any chance of false matches and also makes it clear that these are regexes.
1 parent 76088ef commit befd449

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.ecrc

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"Exclude": [
3-
"LICENSE.txt",
4-
"poetry.lock",
3+
"^LICENSE\\.txt$",
4+
"^poetry\\.lock$",
55
"^internal/rule/schema/schemadata/bindata.go$",
66
"^internal/rule/schema/testdata/bindata.go$"
77
]

0 commit comments

Comments
 (0)