Skip to content

Commit

Permalink
Update rubocop to latest and fix as many violations as possible (#29)
Browse files Browse the repository at this point in the history
* Update rubocop to latest and fix as many violations as possible

* Update spec/granite/form/model/associations/embeds_many_spec.rb

Co-authored-by: Ilya Denisov <[email protected]>

* Update spec/granite/form/model/associations/embeds_one_spec.rb

Co-authored-by: Ilya Denisov <[email protected]>

* Update spec/granite/form/model/associations/reflections/embeds_many_spec.rb

Co-authored-by: Ilya Denisov <[email protected]>

* Update spec/granite/form/model/associations/reflections/embeds_many_spec.rb

Co-authored-by: Ilya Denisov <[email protected]>

* Update spec/granite/form/model/associations/reflections/references_many_spec.rb

Co-authored-by: Ilya Denisov <[email protected]>

* Update spec/granite/form/model/attributes/attribute_spec.rb

Co-authored-by: Ilya Denisov <[email protected]>

* Update spec/granite/form/model/attributes/attribute_spec.rb

Co-authored-by: Ilya Denisov <[email protected]>

* Update spec/granite/form/model/attributes/attribute_spec.rb

Co-authored-by: Ilya Denisov <[email protected]>

* Update spec/granite/form/model/attributes/base_spec.rb

Co-authored-by: Ilya Denisov <[email protected]>

* wip

* wip

* wip

* wip

* wip

---------

Co-authored-by: Ilya Denisov <[email protected]>
  • Loading branch information
lstrzebinczyk and id-ilych authored May 14, 2024
1 parent 1a6847d commit 8b96bf4
Show file tree
Hide file tree
Showing 98 changed files with 1,437 additions and 603 deletions.
74 changes: 26 additions & 48 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,64 +1,42 @@
inherit_from: .rubocop_todo.yml

require:
- rubocop-rspec

AllCops:
Include:
- '**/*.rb'
- '**/Gemfile'
- '**/Rakefile'
Exclude:
- 'vendor/bundle/**/*'
- 'log/**/*'
- 'spec/fixtures/**/*'
- 'lib/granite/form/model/dirty.rb'
DisplayCopNames: true
TargetRubyVersion: 2.4.0
TargetRubyVersion: 2.6
NewCops: enable

Lint/AmbiguousBlockAssociation:
RSpec/MultipleExpectations:
Enabled: false

Lint/EndAlignment:
EnforcedStyleAlignWith: variable

Layout/AccessModifierIndentation:
EnforcedStyle: outdent

Layout/AlignHash:
EnforcedLastArgumentHashStyle: always_ignore

Layout/AlignParameters:
EnforcedStyle: with_fixed_indentation

Layout/CaseIndentation:
EnforcedStyle: end

Layout/IndentArray:
EnforcedStyle: consistent

Layout/IndentHash:
EnforcedStyle: consistent

Layout/IndentHeredoc:
RSpec/NestedGroups:
Enabled: false

Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented

Layout/MultilineOperationIndentation:
EnforcedStyle: indented

Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space

Metrics/BlockLength:
Exclude:
- '**/*_spec.rb'
- '**/*_examples.rb'
- '**/*.rake'
RSpec/MessageSpies:
Enabled: false

Metrics/ModuleLength:
Exclude:
- '**/*_spec.rb'
- 'lib/granite/form.rb'
Gemspec/DevelopmentDependencies:
Enabled: false

Style/Alias:
EnforcedStyle: prefer_alias_method
Style/FrozenStringLiteralComment:
Enabled: false

Style/AndOr:
EnforcedStyle: conditionals
RSpec/DescribedClass:
Enabled: false

Style/DoubleNegation:
Style/OptionalBooleanParameter:
Enabled: false

Style/FrozenStringLiteralComment:
Style/MissingRespondToMissing:
Enabled: false
Loading

0 comments on commit 8b96bf4

Please sign in to comment.