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
Execute the following commands (assuming linux shell):
touch src/Gya.ts
yarn test-run:default
Here is the output:
[info] Started linting src...
[error] src/Gya.ts does not match kebab-case!
[info] Finished linting src!
[info] Linted 37 file(s), 1 didn't match pattern.
The path gets recognized correctly.
Then it matches one of the ignore pattern, so it will get replaced to an empty string in src/util/string.utils.ts.
When src/linter/linter.ts processes the path (empty string) it returns false.
Could you please clarify if this is intended or a fix needed? :)
The text was updated successfully, but these errors were encountered:
Thanks for opening a detailed issue :)
When you ignore a full (although relative) path, expected behavior should be that the linting passes on it, so it is indeed a bug.
Fixing is in progress.
Proper path portion / full project path ignoring has been implemented in 2.1.0, which is now also platform-independent.
Travis CI jobs have been configured to automatically execute tests on both Linux & Windows.
I found an issue regarding ignoring exact matches, here is the necessary steps to reproduce the issue:
Given the following path-linter.json:
Execute the following commands (assuming linux shell):
Here is the output:
The path gets recognized correctly.
Then it matches one of the ignore pattern, so it will get replaced to an empty string in
src/util/string.utils.ts
.When
src/linter/linter.ts
processes the path (empty string) it returns false.Could you please clarify if this is intended or a fix needed? :)
The text was updated successfully, but these errors were encountered: