mirror of
https://github.com/Hopiu/djLint.git
synced 2026-03-16 21:40:24 +00:00
24 lines
685 B
YAML
24 lines
685 B
YAML
- rule:
|
|
name: E001
|
|
message: Variables should be wrapped in a single whitespace.
|
|
patterns:
|
|
- '{[{|%|#][^\s]+'
|
|
- '[^\s]+[}|%|#]}'
|
|
- \s{2,}[}|%|#]}
|
|
- '{[{|%|#]\s{2,}'
|
|
- rule:
|
|
name: E002
|
|
message: Double quotes should be used in tags.
|
|
patterns:
|
|
- '{%.?extends\s+?[^\"]\w+'
|
|
- rule:
|
|
name: W003
|
|
message: 'Endblock should have name. Ex: {% endblock body %}.'
|
|
patterns:
|
|
- '{%\s*?endblock\s*?%}'
|
|
- rule:
|
|
name: W004
|
|
message: Status urls should follow {% static path/to/file %} pattern.
|
|
# this should be using the static path from django settings
|
|
patterns:
|
|
- <(?:link|img|script)\s[^\>]*?(?:href|src)=[\"\']/?static/?
|