-
-
Notifications
You must be signed in to change notification settings - Fork 24
All lint subcommands should exit with status 1 on error #367
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
All lint subcommands should exit with status 1 on error #367
Conversation
This behavior is intentional. In most cases, users do not want the autoloads file to be linted. Only the files specified in the Eask file should be included in linting.
No, elisp doesn't know how to do the indentation until some operations are introduced. e.g., like macros. For example, the After loading macros: |
|
I've introduced two new variables The only concern is that this can't differentiate between linting errors and errors from other operations. 🤔 But I don't think we would need to care about this since we only use it to report |
|
I'll merge this now, as it mostly looks good. :D |
Ported
linttests from #275 and fixed some commands.Most changes to commands follow the same pattern
--strictis set, exit with code 1There were two other bugs I found
lint regexpscauses a failure because the reporting format had changed (seems to have changed to an array and with severity in a different position)lint indentalways printsDon't call this!as a result of trying to load-pkg.elfiles. As far as I can tell it doesn't need to install any package dependencies or load package files as it simply reformats the file without interpreting it. I removed this loading step.