Skip to content

Commit

Permalink
Fix rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
armandfardeau committed Mar 23, 2023
1 parent 687fe03 commit c2f650c
Show file tree
Hide file tree
Showing 3 changed files with 1,861 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
inherit_from: https://raw.githubusercontent.com/decidim/decidim/develop/.rubocop.yml
inherit_from:
- .rubocop_ruby.yml
- .rubocop_rails.yml

AllCops:
TargetRubyVersion: 2.7.5
Expand Down
93 changes: 93 additions & 0 deletions .rubocop_rails.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
require: rubocop-rails

Rails:
Enabled: true

Rails/ActionFilter:
Include:
- decidim-*/app/controllers/**/*.rb

Rails/ContentTag:
Enabled: false

Rails/CreateTableWithTimestamps:
Enabled: false

Rails/EnumUniqueness:
Include:
- decidim-*/app/models/**/*.rb

Rails/Exit:
Include:
- decidim-*/app/**/*.rb
- decidim-*/config/**/*.rb
- decidim-*/lib/**/*.rb
Exclude:
- decidim-*/lib/**/*.rake

Rails/FindBy:
Include:
- "**/*.rb"

Rails/FindEach:
Include:
- decidim-*/app/models/**/*.rb

Rails/HasAndBelongsToMany:
Include:
- decidim-*/app/models/**/*.rb

Rails/HasManyOrHasOneDependent:
Include:
- decidim-*/app/models/**/*.rb

Rails/InverseOf:
Enabled: false

Rails/LexicallyScopedActionFilter:
Include:
- decidim-*/app/controllers/**/*.rb

Rails/NotNullColumn:
Enabled: false

Rails/Output:
Include:
- decidim-*/app/**/*.rb
- decidim-*/config/**/*.rb
- decidim-*/db/**/*.rb
- decidim-*/lib/**/*.rb
Exclude:
- decidim-core/db/seeds.rb
- decidim-core/lib/decidim/core.rb
- decidim-core/lib/decidim/component_manifest.rb
- decidim-core/lib/decidim/participatory_space_manifest.rb
- decidim-system/db/seeds.rb
- decidim-templates/db/seeds.rb

Rails/OutputSafety:
Enabled: false

Rails/Pluck:
Enabled: false

Rails/RakeEnvironment:
Enabled: false

Rails/ReadWriteAttribute:
Include:
- decidim-*/app/models/**/*.rb

Rails/ReversibleMigration:
Enabled: false

Rails/ScopeArgs:
Include:
- decidim-*/app/models/**/*.rb

Rails/SkipsModelValidations:
Enabled: true

Rails/Validation:
Include:
- decidim-*/app/models/**/*.rb
Loading

0 comments on commit c2f650c

Please sign in to comment.