-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2347 from sul-dlss/setup-erblint
Set up linting of ERBs
- Loading branch information
Showing
23 changed files
with
163 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
exclude: | ||
- '**/vendor/**/*' | ||
linters: | ||
Rubocop: | ||
enabled: true | ||
rubocop_config: | ||
inherit_from: | ||
- .rubocop.yml | ||
# Suggested by https://github.com/Shopify/erb-lint#rubocop | ||
Layout/InitialIndentation: | ||
Enabled: false | ||
Layout/LineLength: | ||
Enabled: false | ||
Layout/TrailingEmptyLines: | ||
Enabled: false | ||
Style/FrozenStringLiteralComment: | ||
Enabled: false | ||
Naming/FileName: | ||
Enabled: false | ||
Lint/UselessAssignment: | ||
Enabled: false | ||
Rails/OutputSafety: # Already covered by ErbSafety linter | ||
Enabled: false | ||
Rails/LinkToBlank: | ||
Enabled: false | ||
ErbSafety: | ||
enabled: true | ||
PartialInstanceVariable: | ||
enabled: false | ||
DeprecatedClasses: | ||
enabled: true | ||
NoUnusedDisable: | ||
enabled: true | ||
RubocopText: | ||
enabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
# frozen_string_literal: true | ||
|
||
# Load DSL and set up stages | ||
require "capistrano/setup" | ||
require 'capistrano/setup' | ||
|
||
# Include default deployment tasks | ||
require "capistrano/deploy" | ||
require 'capistrano/deploy' | ||
|
||
require "capistrano/scm/git" | ||
require 'capistrano/scm/git' | ||
install_plugin Capistrano::SCM::Git | ||
|
||
require "capistrano/bundler" | ||
require "capistrano/passenger" | ||
require "capistrano/rails" | ||
require "capistrano/honeybadger" | ||
require "dlss/capistrano" | ||
require 'capistrano/bundler' | ||
require 'capistrano/passenger' | ||
require 'capistrano/rails' | ||
require 'capistrano/honeybadger' | ||
require 'dlss/capistrano' | ||
require 'whenever/capistrano' | ||
|
||
# Load custom tasks from `lib/capistrano/tasks` if you have any defined | ||
Dir.glob("lib/capistrano/tasks/*.rake").each { |r| import r } | ||
Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,4 +57,4 @@ | |
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,4 +22,3 @@ | |
</table> | ||
</div> | ||
</div> | ||
|
Oops, something went wrong.