Enable the Lint/UnusedBlockArgument cop
This commit is contained in:
parent
ddc71cbacf
commit
0596d53ac2
10 changed files with 16 additions and 16 deletions
|
@ -5,7 +5,7 @@
|
|||
|
||||
if ENV['RAILS_ENV'] != 'test' && File.basename($0) != 'rake'
|
||||
reference_env_file = File.join('config', 'env.example')
|
||||
Dotenv::Environment.new(Rails.root.join(reference_env_file)).each do |key, value|
|
||||
Dotenv::Environment.new(Rails.root.join(reference_env_file)).each do |key, _value|
|
||||
if !ENV.key?(key.to_s)
|
||||
raise "Configuration error: `#{key}` is not present in the process’ environment variables (declared in `#{reference_env_file}`)"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue