Skip to content
Please note that GitHub no longer supports your web browser.

We recommend upgrading to the latest Google Chrome or Firefox.

Learn more
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time. Cannot retrieve contributors at this time
89 lines (68 sloc) 1.74 KB
require: rubocop-performance
require: rubocop-rspec
AllCops:
Exclude:
- '.internal_test_app/**/*'
- '.internal_test_gem/**/*'
- 'bin/**/*'
- 'db/**/*'
- 'lib/generators/warclight/templates/**/*'
- 'vendor/**/*'
TargetRubyVersion: 2.4
DisplayCopNames: true
Rails:
Enabled: true
Metrics/LineLength:
Max: 120
Exclude:
- 'Gemfile'
- 'spec/models/concerns/warclight/solr_document_spec.rb'
Metrics/ModuleLength:
Max: 120
Metrics/ClassLength:
Max: 120
Metrics/MethodLength:
Max: 20
Metrics/BlockLength:
Exclude:
- !ruby/regexp /\.rake$/
- 'warclight.gemspec'
- 'spec/**/*'
- 'lib/warclight/custom_document.rb'
Metrics/AbcSize:
Exclude:
- 'app/models/concerns/warclight/solr_document.rb' #Come back to this later
Performance/RegexpMatch:
Enabled: false
Rails/OutputSafety:
Exclude:
- 'app/controllers/concerns/warclight/field_config_helpers.rb' # html_safe needs to be called to mimic BL JOIN behavior
- 'app/models/concerns/warclight/solr_document.rb'
RSpec/ExampleLength:
Enabled: false
RSpec/MultipleExpectations:
Enabled: false
RSpec/NestedGroups:
Max: 4
RSpec/DescribeClass:
Enabled: false
Rails/TimeZone:
Exclude:
- 'app/models/concerns/warclight/solr_document.rb' #Come back to this later
Style/Documentation:
Exclude:
- 'spec/**/*'
- 'lib/warclight.rb'
Style/ExpandPathArguments:
Exclude:
- warclight.gemspec
- lib/generators/warclight/install_generator.rb
- lib/generators/warclight/update_generator.rb
Bundler/DuplicatedGem:
Enabled: false
Lint/UselessAssignment:
Exclude:
- 'app/models/concerns/warclight/solr_document.rb' #Come back to this later
Style/RescueStandardError:
Exclude:
- app/helpers/warclight_helper.rb
You can’t perform that action at this time.