-
Notifications
You must be signed in to change notification settings - Fork 39
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
Ensure exclude_paths
works even if files are provided on the command line
#72
Comments
@myii The current command:
Takes around 17 seconds to finish
Improving the command:
Takes around 0.2 seconds to finish
So it looks likes the command that you are using is causing the delay. The second command is slightly different. It calls |
Good catch @matthijswendelaar, I'll check this out. This invocation was shared, probably a remnant from a previous linter: |
If it solves the problem, let me know. |
Will do, if all is OK, I'll close this issue as well. Thanks again. |
@matthijswendelaar Checked this while reviewing #90, everything appears fine, thanks. I'm closing this issue. CC: @sblaisot -- you probably want to update your |
# [1.45.0](v1.44.1...v1.45.0) (2019-11-02) ### Features * **salt-lint:** improve `salt-lint` invocation (better performance) ([ecc81b0](ecc81b0)), closes [/github.com/warpnet/salt-lint/issues/72#issuecomment-548738115](https://github.com//github.com/warpnet/salt-lint/issues/72/issues/issuecomment-548738115)
Based upon this configuration in the
php-formula
:I've found that there is still a significant delay when
salt-lint
is supplied the files under this directory via. the command line:The delay in this case is an extra 2 minutes during our Travis run (3 minutes for the
php-formula
compared to 1 minute for the other formulas).Taking an example from
yamllint
. Assuming there's a violation inopenvpn/defaults.yaml
:If the file is ignored in the config:
Then it will not run a check for it:
The idea is for
salt-lint
to skip these files, in all cases, even if they are specified on the command line.The text was updated successfully, but these errors were encountered: