Skip to content

Commit

Permalink
Properly configure RuboCop (with Rails integration)
Browse files Browse the repository at this point in the history
  • Loading branch information
pverscha committed Mar 14, 2023
1 parent e92d4d1 commit 81dffab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ Style/ClassAndModuleChildren:
Style/FrozenStringLiteralComment:
Enabled: false

Rails/InverseOf:
Enabled: false
Rails/HasManyOrHasOneDependent:
Enabled: false
Rails/HelperInstanceVariable:
Enabled: false

# disable for now
Layout/LineLength:
Enabled: false
Expand Down
1 change: 0 additions & 1 deletion app/controllers/datasets_controller.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
class DatasetsController < HandleOptionsController
before_action :set_headers, only: %i[sampledata]
before_action :default_format_json, only: %i[sampledata]
before_action :authorize, only: %i[new edit create update destroy]

def sampledata
@datasets = Dataset.includes(:dataset_items).all
Expand Down

0 comments on commit 81dffab

Please sign in to comment.