-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Make it possible to skip/ignore rules/linting on specific lines #83
Comments
Actually it is the parsing of the file that fails, not any linting rule..
But if the line could be skipped completely from even that it would be great! |
Hey @tomasbackman, thank you for reporting this! What you’re asking sounds a lot like #36. Could you share more from your template? Just with this line alone I’m not entirely sure I understand what the parser might be failing on. |
@thibaudcolas sorry for late reply, I just checked curlylint again (using version 13.0 on macos Big Sur 11.6)
The snippet above is valid config and in production use in our bareos backup servers. I think it is the Mail and Operator Command lines that makes curlylint fail (due to the repeated escapes and quotes maybe?). I tried to rewrite the lines a few times so that both the linting and the config worked but did not succeed in that.. :/. |
Output fromm command (above snippet in a file)
|
We also have other occurrences in our code base where curlylint fails with similar problems in various template files (shell commands with mixes of quotes and backslashes etc. |
Is your proposal related to a problem?
Yes
The linting can fail on certain complex lines, like for example our (valid) usage of mail command for bareos backups in a template file:
"/usr/lib/bareos/bsmtp -h localhost -f \"\(Bareos\) \<%r\>\" -s \"Bareos: %t %e of %c %l\" %r"
Taken from: https://docs.bareos.org/Configuration/Messages.html#config-Dir_Messages_MailCommand
Describe the solution you’d like
Im not sure how to format the line above (or even if it is possible) so that the linter accepts it..
but I do know that the template and command works..
So I would like the possibility to skip this linting.
Just skipping the/a line, not skipping it for the whole 200+ lines file as linting still is good here.
Either skipping curlylint completely or just this rule.
For example with a
# noqa ...
line above the one you want to skip or something similar.The text was updated successfully, but these errors were encountered: