Skip to content

Commit

Permalink
Fix Rubocop warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecRust committed Jan 13, 2020
1 parent 25e7255 commit 80cee10
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
16 changes: 5 additions & 11 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ AllCops:
- "vendor/**/*"
- "bin/bundle"

Documentation:
Enabled: false

Performance:
Exclude:
- "**/test/**/*"
Expand All @@ -23,25 +20,22 @@ Lint/RedundantCopDisableDirective:
Exclude:
- "**/*.*"

Metrics/LineLength:
Rails/RakeEnvironment:
Enabled: false

Layout/LineLength:
Max: 120
Exclude:
- config/**/*
- db/**

Style/Documentation:
Exclude:
- db/**/*
- app/controllers/**/*
- test/**/*
Enabled: false

Rails/BulkChangeTable:
Exclude:
- db/migrate/*

Rails/RakeEnvironment:
Enabled: false

Metrics/MethodLength:
Exclude:
- db/migrate/*
Expand Down
4 changes: 2 additions & 2 deletions lib/tasks/gcs.rake
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ namespace :gcs do
end

task :staging do
# rubocop:disable Metrics/LineLength
# rubocop:disable Layout/LineLength
`heroku config:set GOOGLE_APPLICATION_CREDENTIALS="$(< config/secrets/google-carbon-map-staging.json)" -a carbon-map`
# rubocop:enable Metrics/LineLength
# rubocop:enable Layout/LineLength
update_cors('https://carbon-map.herokuapp.com', 'carbon-map-staging')
end

Expand Down

0 comments on commit 80cee10

Please sign in to comment.