1 Star 0 Fork 8

lch-ky/foreman

forked from openKylin-backup/foreman 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.rubocop.yml 2.43 KB
一键复制 编辑 原始数据 按行查看 历史
require:
- rubocop-performance
- rubocop-rails
- rubocop-minitest
inherit_from: .rubocop_todo.yml
AllCops:
TargetRubyVersion: 2.5
TargetRailsVersion: 5.2
Exclude:
- 'db/schema.rb'
- 'node_modules/**/*'
- 'vendor/**/*'
Bundler/OrderedGems:
Enabled: false
Layout/ArgumentAlignment:
EnforcedStyle: with_fixed_indentation
IndentationWidth: 2
Layout/DotPosition:
Enabled: false
Layout/EmptyLineAfterGuardClause:
Enabled: false
Layout/FirstArgumentIndentation:
EnforcedStyle: consistent
Layout/HashAlignment:
Enabled: false
Layout/LineLength:
Enabled: false
Layout/ParameterAlignment:
Enabled: false
Metrics:
Enabled: false
Performance/Casecmp:
Enabled: false
Performance/RedundantMatch:
Enabled: true
Performance/RedundantMerge:
Enabled: true
Performance/RegexpMatch:
Enabled: false
Rails:
Enabled: true
Rails/Blank:
UnlessPresent: false
# Won't work with sqlite
Rails/BulkChangeTable:
Enabled: false
Rails/RefuteMethods:
Enabled: false
Style/Alias:
EnforcedStyle: prefer_alias_method
Style/AndOr:
EnforcedStyle: conditionals
# Don't prefer is_a? over kind_of?
Style/ClassCheck:
Enabled: false
# Don't enforce certain methods, e.g. detect over find
Style/CollectionMethods:
Enabled: false
Style/ConditionalAssignment:
Enabled: false
# Don't enforce documentation
Style/Documentation:
Enabled: false
Style/EmptyMethod:
EnforcedStyle: expanded
# Don't enforce frozen string literals
Style/FrozenStringLiteralComment:
Enabled: false
# Support both, Ruby 1.9 hashmap and hash-rocket syntax
Style/HashSyntax:
EnforcedStyle: no_mixed_keys
Style/IfUnlessModifier:
Enabled: false
Style/InverseMethods:
Enabled: false
# disabled until we can configure "+" as concat sign
Style/LineEndConcatenation:
Enabled: false
Style/MultipleComparison:
Enabled: false
Style/NumericPredicate:
Enabled: false
Style/ParallelAssignment:
Enabled: false
Style/ParenthesesAroundCondition:
Enabled: false
Style/PreferredHashMethods:
Enabled: false
# Both double and single quotes are OK
Style/StringLiterals:
Enabled: false
Style/SymbolArray:
EnforcedStyle: brackets
MinSize: 1
Style/TernaryParentheses:
EnforcedStyle: require_parentheses_when_complex
Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: comma
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: comma
#Allow both ['a', 'b'], %w[a b] and %w(a b) style arrays
Style/WordArray:
Enabled: false
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lch-ky/foreman.git
git@gitee.com:lch-ky/foreman.git
lch-ky
foreman
foreman
develop

搜索帮助