Skip to content

Commit

Permalink
Upgrading Bixby to 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
randalldfloyd committed Jun 10, 2020
1 parent 40019dd commit 0463639
Show file tree
Hide file tree
Showing 3 changed files with 168 additions and 197 deletions.
94 changes: 7 additions & 87 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,99 +1,19 @@
inherit_gem:
bixby: bixby_default.yml
inherit_from: .rubocop_todo.yml

AllCops:
DisplayCopNames: true
Include:
- '**/Rakefile'
- '**/config.ru'
Exclude:
- 'db/**/*'
- 'script/**/*'
- 'spec/test_app_templates/**/*'
- 'vendor/bundle/**/*'

Bundler/DuplicatedGem:
Exclude:
- 'Gemfile'
TargetRubyVersion: 2.6

Layout/IndentationConsistency:
EnforcedStyle: rails

Metrics/AbcSize:
Max: 50

Metrics/BlockLength:
Exclude:
- 'hydra-editor.gemspec'
- 'spec/views/records/_form.html.erb_spec.rb'
- 'spec/helpers/records_helper_spec.rb'
- 'spec/inputs/multi_value_input_spec.rb'
- 'spec/controllers/records_controller_spec.rb'
- 'spec/routing/records_routing_spec.rb'
- 'spec/presenters/hydra_editor_presenter_spec.rb'
- 'spec/forms/hydra_editor_form_permissions_spec.rb'
- 'spec/forms/hydra_editor_form_spec.rb'
- 'spec/features/record_editing_spec.rb'

Metrics/LineLength:
Max: 400

Metrics/MethodLength:
Max: 30
inherit_from: .rubocop_todo.yml

Naming/FileName:
Exclude:
- 'lib/tasks/hydra-editor_tasks.rake'
- '**/Gemfile'
- '**/*.rake'
- 'hydra-pcdm.gemspec'
- 'lib/hydra-editor.rb'
- 'hydra-editor.gemspec'
- 'Gemfile'
- 'spec/hydra-editor_spec.rb'

Rails:
Enabled: true

RSpec/AnyInstance:
Exclude:
- 'spec/features/record_editing_spec.rb'
- 'spec/features/create_record_spec.rb'

RSpec/DescribeClass:
Exclude:
- 'spec/views/records/edit_fields/_default.html.erb_spec.rb'
- 'spec/views/records/_form.html.erb_spec.rb'
- 'spec/routing/records_routing_spec.rb'
- 'spec/javascripts/jasmine_spec.rb'
- 'spec/features/record_editing_spec.rb'

RSpec/ExampleLength:
Exclude:
- 'spec/helpers/records_helper_spec.rb'
- 'spec/javascripts/jasmine_spec.rb'
- 'spec/features/record_editing_spec.rb'
- 'spec/features/create_record_spec.rb'

RSpec/InstanceVariable:
Exclude:
- 'spec/controllers/records_controller_spec.rb'

RSpec/VerifiedDoubles:
Metrics/BlockLength:
Exclude:
- 'spec/inputs/multi_value_input_spec.rb'
- 'spec/helpers/records_helper_spec.rb'
- 'spec/forms/hydra_editor_form_spec.rb'

Style/CollectionMethods:
PreferredMethods:
collect: 'map'
collect!: 'map!'
inject: 'reduce'
detect: 'find'
find_all: 'select'


Style/RegexpLiteral:
Enabled: false

Style/SingleLineBlockParams:
Enabled: false
- 'spec/**/*.rb'
Loading

0 comments on commit 0463639

Please sign in to comment.