From f3d05282da458674807662524ef171ebeac02baf Mon Sep 17 00:00:00 2001 From: Alessandro Rodi Date: Thu, 5 Sep 2024 10:36:21 +0200 Subject: [PATCH] Update erb-linter (#377) --- templates/.erb-lint.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/templates/.erb-lint.yml b/templates/.erb-lint.yml index dea1908c..bf89c5f9 100644 --- a/templates/.erb-lint.yml +++ b/templates/.erb-lint.yml @@ -1,20 +1,29 @@ --- -glob: "**/app/views/**/*.{html,text,js}{+*,}.erb" EnableDefaultLinters: true +exclude: + - '**/rails_admin/*' + - "vendor/**/*" linters: + SpaceInHtmlTag: + enabled: false + NoJavascriptTagHelper: + enabled: true + correction_style: 'plain' Rubocop: enabled: true rubocop_config: inherit_from: - .rubocop.yml - # Each ruby statement (between ERB tags <% ... %>) is parsed and analyzed independently of each other, - # so contextual rules are manually disabled Layout/InitialIndentation: Enabled: false + Layout/LineLength: + Enabled: true Layout/TrailingEmptyLines: Enabled: false Layout/TrailingWhitespace: Enabled: false + Layout/BlockAlignment: + Enabled: false Naming/FileName: Enabled: false Style/FrozenStringLiteralComment: