-
-
Notifications
You must be signed in to change notification settings - Fork 423
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
feat: Chunked execution of linters on Windows only #439
Conversation
Codecov Report
@@ Coverage Diff @@
## master #439 +/- ##
==========================================
+ Coverage 98.18% 98.71% +0.53%
==========================================
Files 11 12 +1
Lines 220 234 +14
Branches 25 27 +2
==========================================
+ Hits 216 231 +15
+ Misses 4 3 -1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is LGTM. I'm super low on time so I can't review properly. Please add tests and push forward.
Move some tests from makeCmdTasks to resolveTaskFn.
d9a4269
to
cde5d74
Compare
@okonet Adding the test commit dismissed your earlier review. Could you please take a look again? |
## Overview The following dependencies have been updated by [dependencies.io](https://www.dependencies.io/): - `lint-staged` in `package.json` from "7.0.5" to "7.1.2" ## Details ### `lint-staged` This dependency is located in `package.json` and was updated from "7.0.5" to "7.1.2". <details> <summary>7.1.0</summary> # [7.1.0](lint-staged/lint-staged@v7.0.5...v7.1.0) (2018-05-07) ### Features * Chunked execution of linters on Windows only ([#439](lint-staged/lint-staged#439)) ([1601c02](lint-staged/lint-staged@1601c02)) </details> <details> <summary>7.1.1</summary> ## [7.1.1](lint-staged/lint-staged@v7.1.0...v7.1.1) (2018-05-18) ### Bug Fixes * **cli:** Correct value for FORCE_COLOR env var ([#451](lint-staged/lint-staged#451)) ([9823d26](lint-staged/lint-staged@9823d26)), closes [#448](lint-staged/lint-staged#448) </details> <details> <summary>7.1.2</summary> ## [7.1.2](lint-staged/lint-staged@v7.1.1...v7.1.2) (2018-05-21) ### Bug Fixes * **package:** Update cosmiconfig to version 5.0.2 ([#444](lint-staged/lint-staged#444)) ([2fc7aa3](lint-staged/lint-staged@2fc7aa3)), closes [#441](lint-staged/lint-staged#441) * **package:** Update listr to version 0.14.1 ([#445](lint-staged/lint-staged#445)) ([a56d7c9](lint-staged/lint-staged@a56d7c9)), closes [#426](lint-staged/lint-staged#426) * Add .lintstagedrc.js to list of config files to search ([9e27620](lint-staged/lint-staged@9e27620)) </details>
This adds a new file
resolveTaskFn
which checks and returns different task functions depending on the OS. File paths passed to linters are chunked only on Windows as it is unnecessary everywhere else to the best of my understanding. Also includes some minor refactoring, renaming and docs update.I have not yet added tests, would like to get some feedback first.Closes #430