All lint subcommands should exit with status 1 on error#367
All lint subcommands should exit with status 1 on error#367jcs090218 merged 14 commits intoemacs-eask:masterfrom
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.