加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.rubocop.yml 1.08 KB
一键复制 编辑 原始数据 按行查看 历史
Pete Matsyburka 提交于 2024-02-10 19:38 . adjust api completion
require:
- rubocop-performance
- rubocop-rails
- rubocop-rspec
AllCops:
NewCops: enable
Exclude:
- db/schema.rb
- node_modules/**/*
- bin/*
- vendor/**/*
TargetRubyVersion: '3.2'
Metrics/BlockLength:
Exclude:
- Rakefile
- '**/*.rake'
- spec/**/*
- config/environments/**/*
- config/routes.rb
Style/Documentation:
Enabled: false
Lint/MissingSuper:
Enabled: false
Metrics/ParameterLists:
Max: 10
Metrics/MethodLength:
Max: 30
Exclude:
- 'db/migrate/**'
Metrics/CyclomaticComplexity:
Max: 15
Metrics/PerceivedComplexity:
Max: 15
Layout/LineLength:
AllowedPatterns: ['\A\s*#']
Metrics/AbcSize:
Max: 40
Metrics/ModuleLength:
Max: 500
Metrics/ClassLength:
Max: 500
RSpec/NestedGroups:
Max: 6
RSpec/MultipleExpectations:
Max: 20
RSpec/ExampleLength:
Max: 40
RSpec/MultipleMemoizedHelpers:
Max: 6
Rails/I18nLocaleTexts:
Enabled: false
Rails/FindEach:
Enabled: false
Rails/SkipsModelValidations:
Enabled: false
Rails/ApplicationController:
Enabled: false
Capybara/ClickLinkOrButtonStyle:
Enabled: false
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化