Skip to content

Commit 7449a10

Browse files
committed
πŸ§‘β€πŸ’» Allow concurrent local development of rubocop-lts
1 parent 464ba4a commit 7449a10

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

β€Ž.envrcβ€Ž

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ export MAX_ROWS=1 # Setting for simplecov-console gem for tty output, limits to
2929
# Internal Debugging Controls
3030
export DEBUG=false # do not allow byebug statements (override in .env.local)
3131

32+
# Concurrently developing the rubocop-lts suite?
33+
export RUBOCOP_LTS_LOCAL=false
34+
3235
# .env would override anything in this file, if `dotenv` is uncommented below.
3336
# .env is a DOCKER standard, and if we use it, it would be in deployed, or DOCKER, environments,
3437
# and that is why we generally want to leave it commented out.

β€Žgemfiles/modular/style.gemfileβ€Ž

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,19 @@
55

66
gem "reek", "~> 6.4"
77
gem "rubocop", "~> 1.73", ">= 1.73.2"
8-
gem "rubocop-lts", "~> 8.1", ">= 8.1.1" # Linting for Ruby >= 2.2
98
gem "rubocop-packaging", "~> 0.5", ">= 0.5.2"
10-
gem "rubocop-rspec", "~> 3.2"
119
gem "standard", "~> 1.47"
1210

1311
# Std Lib extractions
1412
gem "benchmark", "~> 0.4" # Removed from Std Lib in Ruby 3.5
1513

16-
# gem "rubocop-lts", :path => "/home/pboling/src/rubocop-lts/rubocop-lts"
17-
# gem "rubocop-lts-rspec", :path => "/home/pboling/src/rubocop-lts/rubocop-lts-rspec"
18-
# gem "rubocop-ruby1_8", :path => "/home/pboling/src/rubocop-lts/rubocop-ruby1_8"
19-
# gem "standard-rubocop-lts", :path => "/home/pboling/src/rubocop-lts/standard-rubocop-lts"
14+
if ENV.fetch("RUBOCOP_LTS_LOCAL", "false").casecmp("true").zero?
15+
home = ENV["HOME"]
16+
gem "rubocop-lts", path: "#{home}/src/rubocop-lts/rubocop-lts"
17+
gem "rubocop-lts-rspec", path: "#{home}/src/rubocop-lts/rubocop-lts-rspec"
18+
gem "rubocop-ruby2_2", path: "#{home}/src/rubocop-lts/rubocop-ruby2_2"
19+
gem "standard-rubocop-lts", path: "#{home}/src/rubocop-lts/standard-rubocop-lts"
20+
else
21+
gem "rubocop-lts", "~> 8.1", ">= 8.1.1" # Linting for Ruby >= 2.2
22+
gem "rubocop-rspec", "~> 3.2"
23+
end

0 commit comments

Comments
Β (0)