Skip to content

Commit

Permalink
Rubocop config
Browse files Browse the repository at this point in the history
  • Loading branch information
blacksmith-welder committed Aug 28, 2024
1 parent b0abeb9 commit 5f7c1f7
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
16 changes: 16 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# .rubocop.yml

AllCops:
NewCops: enable

Metrics/AbcSize:
Max: 50

Metrics/MethodLength:
Max: 50

Layout/ElseAlignment:
Enabled: false

Style/ConditionalAssignment:
Enabled: false
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ source 'https://rubygems.org'
gem 'byebug'
gem 'capybara'
gem 'cucumber'
gem 'selenium-webdriver'
gem 'rspec-expectations'
gem 'rubocop-packaging', require: false
gem 'selenium-webdriver'
6 changes: 3 additions & 3 deletions env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@
require 'capybara/cucumber'
require 'selenium-webdriver'

case ENV['HOST']
case ENV.fetch('HOST', nil)
when 'localhost', 'http://localhost:8080'
BASE_URL = 'http://localhost:8080'
PUBLIC_URL = 'http://localhost:8081'
STAFF_URL = "#{BASE_URL}".freeze
STAFF_URL = BASE_URL
else
BASE_URL = 'https://e2e.archivesspace.org'
PUBLIC_URL = BASE_URL.freeze
STAFF_URL = "#{BASE_URL}/staff".freeze
end

case ENV['HEADLESS']
case ENV.fetch('HEADLESS', nil)
when 'true'
HEADLESS = '--headless'
else
Expand Down

0 comments on commit 5f7c1f7

Please sign in to comment.