Skip to content

Commit a259c85

Browse files
committed
Make editorconfig-checker exclude regex 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 file contained a filename 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 a22dd52 commit a259c85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.ecrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"Exclude": ["LICENSE.txt"]
2+
"Exclude": ["^LICENSE\\.txt$"]
33
}

0 commit comments

Comments
 (0)