-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Standardize repo name to
erb_lint
(#360)
* Deprecate old binstub, add the renamed binstub * Rename instances of erb-lint to erb_lint * Deprecate `erb-lint` mentions in the Cli to `erb_lint` * Warn message grammatical fixes * Make remaining README refactors to erb_lint * Add rainbow require * Reword deprecation message and add test to check that it warns * Update erblint warning message * Fix binstubs * Deprecate .erb-linters in favour of .erb_linters --------- Co-authored-by: Jenny Shen <jenny.shen@shopify.com>
- Loading branch information
Showing
10 changed files
with
93 additions
and
39 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
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,10 @@ | ||
#!/usr/bin/env ruby | ||
# frozen_string_literal: true | ||
|
||
lib_path = File.expand_path("#{__dir__}/../lib") | ||
$LOAD_PATH.unshift(lib_path) unless $LOAD_PATH.include?(lib_path) | ||
|
||
require "erb_lint/cli" | ||
|
||
cli = ERBLint::CLI.new | ||
exit(cli.run) |
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,9 +1,10 @@ | ||
#!/usr/bin/env ruby | ||
# frozen_string_literal: true | ||
|
||
$LOAD_PATH.unshift("#{__dir__}/../lib") | ||
lib_path = File.expand_path("#{__dir__}/../lib") | ||
$LOAD_PATH.unshift(lib_path) unless $LOAD_PATH.include?(lib_path) | ||
|
||
require "erb_lint/cli" | ||
require "rainbow" | ||
|
||
cli = ERBLint::CLI.new | ||
exit(cli.run) | ||
warn(Rainbow("Calling `erblint` is deprecated, please call the renamed executable `erb_lint` instead.").yellow) | ||
exec(File.join(__dir__, "erb_lint"), *ARGV) |
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
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