Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
131 lines (115 sloc) 3.99 KB
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2016-12-03 09:18:45 +0000 using RuboCop version 0.46.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.
# Offense count: 8
# Configuration parameters: Include.
# Include: **/Gemfile, **/gems.rb
Bundler/OrderedGems:
Exclude:
- 'Gemfile'
# Offense count: 2
Lint/DuplicateMethods:
Exclude:
- 'test/functional/api/v1/downloads_controller_test.rb'
- 'test/functional/api/v1/rubygems_controller_test.rb'
# Offense count: 89
# Configuration parameters: CountComments.
Metrics/BlockLength:
Max: 284
# Offense count: 43
# Cop supports --auto-correct.
# Configuration parameters: Whitelist.
# Whitelist: find_by_sql
Rails/DynamicFindBy:
Enabled: false
# Offense count: 119
# Cop supports --auto-correct.
# Configuration parameters: Include.
# Include: spec/**/*, test/**/*
Rails/HttpPositionalArguments:
Enabled: false
# Offense count: 4
Rails/OutputSafety:
Exclude:
- 'app/helpers/application_helper.rb'
- 'app/helpers/rubygems_helper.rb'
# Offense count: 38
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect.
Security/JSONLoad:
Exclude:
- 'config/initializers/yaml_renderer.rb'
- 'test/functional/api/v1/activities_controller_test.rb'
- 'test/functional/api/v1/api_keys_controller_test.rb'
- 'test/functional/api/v1/dependencies_controller_test.rb'
- 'test/functional/api/v1/downloads_controller_test.rb'
- 'test/functional/api/v1/rubygems_controller_test.rb'
- 'test/functional/api/v1/versions_controller_test.rb'
- 'test/functional/api/v1/web_hooks_controller_test.rb'
- 'test/functional/api/v2/versions_controller_test.rb'
- 'test/integration/api/v2/version_information_test.rb'
- 'test/unit/dependency_test.rb'
- 'test/unit/rubygem_test.rb'
- 'test/unit/web_hook_test.rb'
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: compact, expanded
Style/EmptyMethod:
Exclude:
- 'app/controllers/email_confirmations_controller.rb'
- 'app/controllers/rubygems_controller.rb'
# Offense count: 5
# Cop supports --auto-correct.
# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
Layout/ExtraSpacing:
Exclude:
- 'script/s3_utils.rb'
- 'test/unit/version_test.rb'
Naming/MemoizedInstanceVariableName:
Exclude:
- 'lib/rubygem_fs.rb'
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedOctalStyle, SupportedOctalStyles.
# SupportedOctalStyles: zero_with_o, zero_only
Style/NumericLiteralPrefix:
Exclude:
- 'test/unit/pusher_test.rb'
# Offense count: 4
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect, EnforcedStyle, SupportedStyles.
# SupportedStyles: predicate, comparison
Style/NumericPredicate:
Exclude:
- 'spec/**/*'
- 'app/helpers/searches_helper.rb'
- 'app/models/rubygem.rb'
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowSafeAssignment.
# SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
Style/TernaryParentheses:
Exclude:
- 'config/initializers/clearance.rb'
# Offense count: 16
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: snake_case, normalcase, non_integer
Naming/VariableNumber:
Exclude:
- 'test/functional/api/v1/downloads_controller_test.rb'
- 'test/unit/gem_download_test.rb'
- 'test/unit/rubygem_searchable_test.rb'
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: implicit, explicit
Style/RescueStandardError:
Exclude:
- 'app/controllers/api/v1/rubygems_controller.rb'
- 'app/jobs/fastly_log_processor.rb'
- 'lib/tasks/linkset.rake'
You can’t perform that action at this time.