-
Notifications
You must be signed in to change notification settings - Fork 25
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
How to exclude a file from being linted by jinjalint? #24
Comments
for example eslint has disable comment at top of the file as an option |
or would the solution for editor config work the same for jinjalint config? |
@akinhwan I also needed to do this for my project – there is no way to do this with jinjalint that I know of, so here is what I ended up with: jinjalint --parse-only <your target folder> | grep -v '<name of file to ignore>' | tee /dev/tty | wc -l | grep -q '0' The For example, linting all files inside the jinjalint --parse-only wagtail | grep -v 'welcome_page.html:6:70' | tee /dev/tty | wc -l | grep -q '0' |
thanks @thibaudcolas let me try this out and report back to close the issue if it works! For now I've just decided to use htmllint for the files in question |
How can i exclude a file from being linted? @motet-a
Or, could I have multiple config files for the same project?
Also is there more documentation on what I can put in my jinjalintconfig file? I currently just has "indent_size = 2"
The text was updated successfully, but these errors were encountered: