j2lint icon indicating copy to clipboard operation
j2lint copied to clipboard

Jinja2 Linter CLI

Results 9 j2lint issues
Sort by recently updated
recently updated
newest added

Words with hyphens within a string not touching a quote are raising `jinja-variable-format` false positives: For instance: ``` {{ "test with spcial-word in the middle" | indent(2, true) }} ```

## Description The `jinja-variable-lower-case` rule in `j2lint` is incorrectly identifies escaped strings as variables. According to the [Jinja2 documentation](https://jinja.palletsprojects.com/en/3.1.x/templates/#escaping), these strings should be treated as literal strings, not variables. ##...

enhancement

Hi, if printing strings inside of a `{{` statement, the tool complains about `jinja-variable-lower-case`: For example: ``` {{ ' trustGuestRxFilters=\'yes\'' if iftype == 'direct' else '' }} ``` Results in:...

enhancement

cf: https://github.com/aristanetworks/j2lint/issues/53#issuecomment-1404697619

Several linters offer auto-correct options. It would make sense to offer this function given a lot of the style lint is related to easily fixable, but tedious fixes.

When linting a file, multiple instance of an issue on a line or consolidated into only one error even when said error description is not the same for both errors....

The following is not detected: ```python3 {% if foo is defined %} bar-option % else %} baz-option {% endif %} ``` The missing leading `{` is not found.

Closes #3 A maintainer will need to leverage their standard docker image host publish process & key. This is atleast a start for a docker image.

I see this a perfect fit for ci, and thus a docker image would be ideal.