Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for ignore file globs #731

Merged
merged 9 commits into from
Aug 28, 2021
Merged

Conversation

somewhatabstract
Copy link
Owner

Summary:

This updates the --ignore-files option to support globs so that we can do things like "**/lint-disallowlist.txt" to get all disallow lists in the tree that is being synced.

This also ensures that ignore rules loaded from these files are applied based on the path of the ignore file to avoid ignoring things they aren't meant to.

Issue: #636

Test plan:

yarn test

@codecov
Copy link

codecov bot commented Aug 23, 2021

Codecov Report

Merging #731 (a017b3c) into main (22ff93f) will not change coverage.
The diff coverage is 100.00%.

❗ Current head a017b3c differs from pull request most recent head 165b214. Consider uploading reports for the commit 165b214 to get more accurate results

Impacted file tree graph

@@            Coverage Diff            @@
##              main      #731   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           26        28    +2     
  Lines          445       455   +10     
  Branches        82        85    +3     
=========================================
+ Hits           445       455   +10     
Impacted Files Coverage Δ
src/help.js 100.00% <ø> (ø)
src/ignore-format-to-globs.js 100.00% <ø> (ø)
src/get-files.js 100.00% <100.00%> (ø)
src/ignore-file-globs-to-exclude-globs.js 100.00% <100.00%> (ø)
src/ignore-file-to-exclude-globs.js 100.00% <100.00%> (ø)
src/normalize-separators.js 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 170eca5...165b214. Read the comment docs.

@@ -4,3 +4,4 @@ dist/
obj/
report/
yarn-error.log
_quokka.js
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just so I could save my quokka-ing :)

@@ -2,5 +2,4 @@
"editor.formatOnSave": true,
"javascript.validate.enable": false,
"typescript.validate.enable": false,
"jest.pathToConfig": "./jest.config.js",
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm using Wallaby now :)

Comment on lines -88 to -92
"pre-commit": [
"pretty-quick",
"lint",
"test"
]
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have github actions now, we don't really need this overhead. Also, the linting was linting files that were not staged, which just got in the way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant