-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Print informative errors when configuration YAML contains unused information #120
Comments
I'd absolutely love to do more error handling wrt yaml files, but haven't yet found an elegant way to do that. |
Where do I put .swiftlint.yml btw? I cannot get this to work at all. Where do I run swiftlint from? |
It looks like SwiftLint team, would love to get the config file support released! Great tool so far. |
Homebrew literally just yesterday started accepting formulas requiring Xcode 7, so we haven't been able to release until now. We'll be releasing shortly. |
Hooray! Thanks @jpsim ! |
Many improvements to YAML error reporting were just merged in #498. |
Not sure this is worth fixing, but I wanted to bring it up.
If you make a config file like:
Instead of:
SwiftLint will silently ignore the first one. Typically I think this performs the same way in yaml, but regardless it might be nice to add errors for cases where the configuration isn't what we'd expect. The only reason I noticed this is because of the large number of files being linted.
The text was updated successfully, but these errors were encountered: