Add GitHub CI workflow for slim lint

This commit is contained in:
Sebastian Serth
2024-04-13 23:42:31 +02:00
committed by Dominic Sauer
parent 9a9efd5caa
commit 681e8ec444
4 changed files with 67 additions and 0 deletions

32
.slim-lint.yml Normal file
View File

@ -0,0 +1,32 @@
linters:
# Disabled a few linters that are not relevant to our use case
EmptyLines:
enabled: false
ConsecutiveControlStatements:
enabled: false
LineLength:
enabled: false
# Enable additional linters
EmbeddedEngines:
enabled: true
forbidden_engines:
# JavaScript is not allowed due to our Content Security Policy (CSP)
- javascript
InstanceVariables:
enabled: false # TODO: Enable
include:
# Include only Rails partial templates by default
- app/views/**/_*.html.slim
StrictLocalsMissing:
enabled: false # TODO: Enable
include:
# Include only Rails partial templates by default
- app/views/**/_*.html.slim
Zwsp:
enabled: true