代码拉取完成,页面将自动刷新
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2022-12-31 04:13:03 UTC using RuboCop version 1.41.1.
# 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: AllowedMethods, AllowedPatterns, IgnoredMethods, CountRepeatedAttributes.
Metrics/AbcSize:
Max: 84
# Offense count: 2
# Configuration parameters: CountComments, CountAsOne.
Metrics/ClassLength:
Max: 189
# Offense count: 2
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
Metrics/CyclomaticComplexity:
Max: 20
# Offense count: 9
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods.
Metrics/MethodLength:
Max: 45
# Offense count: 1
# Configuration parameters: CountComments, CountAsOne.
Metrics/ModuleLength:
Max: 263
# Offense count: 2
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
Metrics/PerceivedComplexity:
Max: 21
# Offense count: 3
# This cop supports unsafe autocorrection (--autocorrect-all).
Performance/UnfreezeString:
Exclude:
- 'spec/licensee/matchers/copyright_matcher_spec.rb'
- 'spec/licensee/project_files/license_file_spec.rb'
# Offense count: 169
# Configuration parameters: Prefixes, AllowedPatterns.
# Prefixes: when, with, without
RSpec/ContextWording:
Enabled: false
# Offense count: 7
# Configuration parameters: IgnoredMetadata.
RSpec/DescribeClass:
Exclude:
- '**/spec/features/**/*'
- '**/spec/requests/**/*'
- '**/spec/routing/**/*'
- '**/spec/system/**/*'
- '**/spec/views/**/*'
- 'spec/bin_spec.rb'
- 'spec/fixture_spec.rb'
- 'spec/integration_spec.rb'
- 'spec/licensee/commands/detect_spec.rb'
- 'spec/licensee/commands/license_path_spec.rb'
- 'spec/licensee/commands/version_spec.rb'
- 'spec/vendored_license_spec.rb'
# Offense count: 5
# Configuration parameters: CountAsOne.
RSpec/ExampleLength:
Max: 8
# Offense count: 2
# Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly.
# Include: **/*_spec*rb*, **/spec/**/*
RSpec/FilePath:
Exclude:
- 'spec/licensee/project_files/package_info_spec.rb'
- 'spec/licensee/projects/github_project_spec.rb'
# Offense count: 98
RSpec/MultipleExpectations:
Max: 6
# Offense count: 139
# Configuration parameters: AllowSubject.
RSpec/MultipleMemoizedHelpers:
Max: 16
# Offense count: 290
# Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
# SupportedStyles: always, named_only
RSpec/NamedSubject:
Enabled: false
# Offense count: 66
# Configuration parameters: AllowedGroups.
RSpec/NestedGroups:
Max: 6
# Offense count: 2
RSpec/RepeatedDescription:
Exclude:
- 'spec/licensee/hash_helper_spec.rb'
# Offense count: 7
RSpec/ScatteredSetup:
Exclude:
- 'spec/licensee/project_files/project_file_spec.rb'
- 'spec/licensee/project_spec.rb'
# Offense count: 4
RSpec/SubjectStub:
Exclude:
- 'spec/licensee/matchers/package_matcher_spec.rb'
- 'spec/licensee/project_files/project_file_spec.rb'
# Offense count: 36
# Configuration parameters: AllowedConstants.
Style/Documentation:
Enabled: false
# Offense count: 3
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/StructInheritance:
Exclude:
- 'lib/licensee/license_field.rb'
- 'lib/licensee/license_meta.rb'
- 'lib/licensee/license_rules.rb'
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。