代码拉取完成,页面将自动刷新
同步操作将从 openKylin-backup/foreman 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。