2019-09-17 19:31:56 +08:00
|
|
|
require:
|
|
|
|
- rubocop-performance
|
|
|
|
- rubocop-rails
|
2019-05-09 19:20:04 +08:00
|
|
|
|
2016-08-23 20:01:08 +08:00
|
|
|
AllCops:
|
|
|
|
Exclude:
|
|
|
|
- "vendor/**/*"
|
|
|
|
- "db/schema.rb"
|
2021-06-30 19:12:19 +08:00
|
|
|
- "spec/**/*"
|
2020-09-16 20:13:54 +08:00
|
|
|
NewCops: enable
|
2016-08-23 20:01:08 +08:00
|
|
|
UseCache: false
|
2023-07-03 19:06:15 +08:00
|
|
|
TargetRubyVersion: 3.2
|
2016-08-23 20:01:08 +08:00
|
|
|
|
|
|
|
##################### Style ####################################
|
|
|
|
|
2018-01-17 00:01:44 +08:00
|
|
|
Layout/AccessModifierIndentation:
|
2016-08-23 20:01:08 +08:00
|
|
|
EnforcedStyle: indent
|
|
|
|
|
2019-12-18 18:55:12 +08:00
|
|
|
Layout/HashAlignment:
|
2016-08-23 20:01:08 +08:00
|
|
|
EnforcedHashRocketStyle: key
|
|
|
|
EnforcedColonStyle: key
|
|
|
|
EnforcedLastArgumentHashStyle: ignore_implicit
|
|
|
|
|
2019-12-18 18:55:12 +08:00
|
|
|
Layout/ParameterAlignment:
|
2016-08-23 20:01:08 +08:00
|
|
|
EnforcedStyle: with_first_parameter
|
|
|
|
|
|
|
|
Style/AndOr:
|
|
|
|
EnforcedStyle: conditionals
|
|
|
|
|
|
|
|
Style/BarePercentLiterals:
|
|
|
|
EnforcedStyle: bare_percent
|
|
|
|
|
|
|
|
Style/BlockDelimiters:
|
|
|
|
EnforcedStyle: line_count_based
|
|
|
|
|
2018-01-17 00:01:44 +08:00
|
|
|
Layout/CaseIndentation:
|
2017-04-28 17:46:06 +08:00
|
|
|
EnforcedStyle: case
|
2016-08-23 20:01:08 +08:00
|
|
|
|
|
|
|
Style/ClassAndModuleChildren:
|
|
|
|
EnforcedStyle: nested
|
|
|
|
|
|
|
|
Style/ClassCheck:
|
|
|
|
EnforcedStyle: is_a?
|
|
|
|
|
|
|
|
Style/CollectionMethods:
|
|
|
|
PreferredMethods:
|
|
|
|
collect: map
|
|
|
|
collect!: map!
|
|
|
|
detect: find
|
|
|
|
find_all: select
|
|
|
|
reduce: inject
|
|
|
|
|
|
|
|
Style/CommandLiteral:
|
|
|
|
EnforcedStyle: backticks
|
|
|
|
|
|
|
|
Style/DocumentationMethod:
|
|
|
|
RequireForNonPublicMethods: false
|
|
|
|
|
2018-01-17 00:01:44 +08:00
|
|
|
Layout/DotPosition:
|
2016-08-23 20:01:08 +08:00
|
|
|
EnforcedStyle: leading
|
|
|
|
|
|
|
|
Style/EmptyElse:
|
|
|
|
EnforcedStyle: both
|
|
|
|
|
2018-01-17 00:01:44 +08:00
|
|
|
Layout/EmptyLineBetweenDefs:
|
2016-08-23 20:01:08 +08:00
|
|
|
AllowAdjacentOneLineDefs: false
|
|
|
|
|
2018-01-17 00:01:44 +08:00
|
|
|
Layout/EmptyLinesAroundBlockBody:
|
2016-08-23 20:01:08 +08:00
|
|
|
EnforcedStyle: no_empty_lines
|
|
|
|
|
2018-01-17 00:01:44 +08:00
|
|
|
Layout/EmptyLinesAroundClassBody:
|
2016-08-23 20:01:08 +08:00
|
|
|
EnforcedStyle: no_empty_lines
|
|
|
|
|
2018-01-17 00:01:44 +08:00
|
|
|
Layout/EmptyLinesAroundModuleBody:
|
2016-08-23 20:01:08 +08:00
|
|
|
EnforcedStyle: no_empty_lines
|
|
|
|
|
2018-01-17 00:01:44 +08:00
|
|
|
Layout/ExtraSpacing:
|
2016-08-23 20:01:08 +08:00
|
|
|
AllowForAlignment: true
|
|
|
|
ForceEqualSignAlignment: false
|
|
|
|
|
2018-01-17 00:01:44 +08:00
|
|
|
Naming/FileName:
|
2016-08-23 20:01:08 +08:00
|
|
|
Enabled: false
|
|
|
|
Exclude: []
|
|
|
|
|
2019-12-23 21:34:11 +08:00
|
|
|
Layout/FirstArgumentIndentation:
|
2019-05-09 19:20:04 +08:00
|
|
|
EnforcedStyle: consistent
|
2016-08-23 20:01:08 +08:00
|
|
|
|
|
|
|
Style/For:
|
|
|
|
EnforcedStyle: each
|
|
|
|
|
|
|
|
Style/FormatString:
|
|
|
|
EnforcedStyle: format
|
|
|
|
|
|
|
|
Style/FrozenStringLiteralComment:
|
2019-06-13 18:10:44 +08:00
|
|
|
EnforcedStyle: always
|
2016-08-23 20:01:08 +08:00
|
|
|
|
|
|
|
Style/GuardClause:
|
|
|
|
Enabled: false
|
|
|
|
MinBodyLength: 1
|
|
|
|
|
|
|
|
Style/HashSyntax:
|
|
|
|
EnforcedStyle: ruby19
|
2023-07-05 18:43:23 +08:00
|
|
|
EnforcedShorthandSyntax: never
|
2016-08-23 20:01:08 +08:00
|
|
|
|
|
|
|
Style/IfUnlessModifier:
|
|
|
|
Enabled: true
|
|
|
|
|
2018-01-17 00:01:44 +08:00
|
|
|
Layout/IndentationConsistency:
|
2016-08-23 20:01:08 +08:00
|
|
|
EnforcedStyle: normal
|
|
|
|
|
2018-01-17 00:01:44 +08:00
|
|
|
Layout/IndentationWidth:
|
2016-08-23 20:01:08 +08:00
|
|
|
Width: 2
|
|
|
|
|
2019-12-18 18:55:12 +08:00
|
|
|
Layout/FirstArrayElementIndentation:
|
2016-08-23 20:01:08 +08:00
|
|
|
EnforcedStyle: special_inside_parentheses
|
|
|
|
|
2019-12-18 18:55:12 +08:00
|
|
|
Layout/FirstHashElementIndentation:
|
2016-08-23 20:01:08 +08:00
|
|
|
EnforcedStyle: special_inside_parentheses
|
|
|
|
|
|
|
|
Style/Next:
|
|
|
|
EnforcedStyle: skip_modifier_ifs
|
|
|
|
|
|
|
|
Style/NonNilCheck:
|
|
|
|
IncludeSemanticChanges: false
|
|
|
|
|
|
|
|
Style/MethodDefParentheses:
|
|
|
|
EnforcedStyle: require_parentheses
|
|
|
|
|
2018-01-17 00:01:44 +08:00
|
|
|
Naming/MethodName:
|
2016-08-23 20:01:08 +08:00
|
|
|
EnforcedStyle: snake_case
|
|
|
|
|
2018-01-17 00:01:44 +08:00
|
|
|
Layout/MultilineArrayBraceLayout:
|
2016-08-23 20:01:08 +08:00
|
|
|
EnforcedStyle: symmetrical
|
|
|
|
|
2018-01-17 00:01:44 +08:00
|
|
|
Layout/MultilineAssignmentLayout:
|
2016-08-23 20:01:08 +08:00
|
|
|
SupportedTypes:
|
|
|
|
- block
|
|
|
|
- case
|
|
|
|
- class
|
|
|
|
- if
|
|
|
|
- kwbegin
|
|
|
|
- module
|
|
|
|
EnforcedStyle: new_line
|
|
|
|
|
2018-01-17 00:01:44 +08:00
|
|
|
Layout/MultilineHashBraceLayout:
|
2016-08-23 20:01:08 +08:00
|
|
|
EnforcedStyle: symmetrical
|
|
|
|
|
2018-01-17 00:01:44 +08:00
|
|
|
Layout/MultilineMethodCallBraceLayout:
|
2016-08-23 20:01:08 +08:00
|
|
|
EnforcedStyle: symmetrical
|
|
|
|
|
2018-01-17 00:01:44 +08:00
|
|
|
Layout/MultilineMethodCallIndentation:
|
2016-08-23 20:01:08 +08:00
|
|
|
EnforcedStyle: aligned
|
|
|
|
|
2018-01-17 00:01:44 +08:00
|
|
|
Layout/MultilineMethodDefinitionBraceLayout:
|
2016-08-23 20:01:08 +08:00
|
|
|
EnforcedStyle: symmetrical
|
|
|
|
|
2018-01-17 00:01:44 +08:00
|
|
|
Layout/MultilineOperationIndentation:
|
2016-08-23 20:01:08 +08:00
|
|
|
EnforcedStyle: aligned
|
|
|
|
|
|
|
|
Style/NumericLiterals:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Style/NumericLiteralPrefix:
|
|
|
|
EnforcedOctalStyle: zero_with_o
|
|
|
|
|
|
|
|
Style/OptionHash:
|
|
|
|
SuspiciousParamNames:
|
|
|
|
- options
|
|
|
|
- opts
|
|
|
|
- args
|
|
|
|
- params
|
|
|
|
- parameters
|
|
|
|
|
|
|
|
Style/ParenthesesAroundCondition:
|
|
|
|
AllowSafeAssignment: true
|
|
|
|
|
|
|
|
Style/PercentLiteralDelimiters:
|
|
|
|
PreferredDelimiters:
|
|
|
|
"%": "()"
|
|
|
|
"%i": "()"
|
|
|
|
"%q": "()"
|
|
|
|
"%Q": "()"
|
|
|
|
"%r": "{}"
|
|
|
|
"%s": "()"
|
|
|
|
"%w": "()"
|
|
|
|
"%W": "()"
|
|
|
|
"%x": "()"
|
|
|
|
|
|
|
|
Style/PercentQLiterals:
|
|
|
|
EnforcedStyle: lower_case_q
|
|
|
|
|
2018-01-17 00:01:44 +08:00
|
|
|
Naming/PredicateName:
|
2016-08-23 20:01:08 +08:00
|
|
|
Description: Check the names of predicate methods.
|
|
|
|
StyleGuide: https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark
|
|
|
|
Enabled: true
|
|
|
|
NamePrefix:
|
|
|
|
- is_
|
|
|
|
- has_
|
|
|
|
- have_
|
2019-12-18 18:55:12 +08:00
|
|
|
ForbiddenPrefixes:
|
2016-08-23 20:01:08 +08:00
|
|
|
- is_
|
2019-12-18 18:55:12 +08:00
|
|
|
AllowedMethods:
|
2016-08-23 20:01:08 +08:00
|
|
|
- is_a?
|
|
|
|
Exclude:
|
|
|
|
- spec/**/*
|
|
|
|
|
|
|
|
Style/RaiseArgs:
|
|
|
|
Description: Checks the arguments passed to raise/fail.
|
|
|
|
EnforcedStyle: exploded
|
|
|
|
SupportedStyles:
|
|
|
|
- compact
|
|
|
|
- exploded
|
|
|
|
|
|
|
|
Style/RedundantReturn:
|
|
|
|
AllowMultipleReturnValues: true
|
|
|
|
|
|
|
|
Style/RegexpLiteral:
|
|
|
|
EnforcedStyle: slashes
|
|
|
|
AllowInnerSlashes: false
|
|
|
|
|
|
|
|
Style/Semicolon:
|
|
|
|
AllowAsExpressionSeparator: true
|
|
|
|
|
|
|
|
Style/SignalException:
|
|
|
|
Enabled: true
|
|
|
|
EnforcedStyle: only_raise
|
|
|
|
|
|
|
|
Style/SingleLineBlockParams:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Style/SingleLineMethods:
|
|
|
|
Enabled: false
|
|
|
|
|
2018-01-17 00:01:44 +08:00
|
|
|
Layout/SpaceBeforeFirstArg:
|
2016-08-23 20:01:08 +08:00
|
|
|
AllowForAlignment: true
|
|
|
|
|
|
|
|
Style/StringLiterals:
|
|
|
|
Enabled: true
|
|
|
|
EnforcedStyle: single_quotes
|
|
|
|
ConsistentQuotesInMultiline: true
|
|
|
|
|
|
|
|
Style/StringLiteralsInInterpolation:
|
|
|
|
EnforcedStyle: single_quotes
|
|
|
|
|
|
|
|
Style/StringMethods:
|
|
|
|
PreferredMethods:
|
|
|
|
intern: to_sym
|
|
|
|
|
2018-01-17 00:01:44 +08:00
|
|
|
Layout/SpaceAroundBlockParameters:
|
2016-08-23 20:01:08 +08:00
|
|
|
EnforcedStyleInsidePipes: no_space
|
|
|
|
|
2018-01-17 00:01:44 +08:00
|
|
|
Layout/SpaceAroundEqualsInParameterDefault:
|
2016-08-23 20:01:08 +08:00
|
|
|
EnforcedStyle: space
|
|
|
|
|
2018-01-17 00:01:44 +08:00
|
|
|
Layout/SpaceAroundOperators:
|
2016-08-23 20:01:08 +08:00
|
|
|
AllowForAlignment: true
|
|
|
|
|
2018-01-17 00:01:44 +08:00
|
|
|
Layout/SpaceBeforeBlockBraces:
|
2016-08-23 20:01:08 +08:00
|
|
|
EnforcedStyle: space
|
|
|
|
|
2018-01-17 00:01:44 +08:00
|
|
|
Layout/SpaceInsideBlockBraces:
|
2016-08-23 20:01:08 +08:00
|
|
|
EnforcedStyle: space
|
|
|
|
EnforcedStyleForEmptyBraces: no_space
|
|
|
|
SpaceBeforeBlockParameters: true
|
|
|
|
|
2018-01-17 00:01:44 +08:00
|
|
|
Layout/SpaceInsideHashLiteralBraces:
|
2016-08-23 20:01:08 +08:00
|
|
|
EnforcedStyle: space
|
|
|
|
EnforcedStyleForEmptyBraces: no_space
|
|
|
|
|
2018-01-17 00:01:44 +08:00
|
|
|
Layout/SpaceInsideStringInterpolation:
|
2016-08-23 20:01:08 +08:00
|
|
|
EnforcedStyle: no_space
|
|
|
|
|
|
|
|
Style/SymbolArray:
|
|
|
|
EnforcedStyle: percent
|
|
|
|
|
|
|
|
Style/SymbolProc:
|
2022-12-02 00:13:26 +08:00
|
|
|
AllowedMethods:
|
2016-08-23 20:01:08 +08:00
|
|
|
- respond_to
|
|
|
|
- define_method
|
|
|
|
|
|
|
|
Style/TernaryParentheses:
|
|
|
|
EnforcedStyle: require_no_parentheses
|
|
|
|
AllowSafeAssignment: true
|
|
|
|
|
2019-12-18 18:55:12 +08:00
|
|
|
Layout/TrailingEmptyLines:
|
2016-08-23 20:01:08 +08:00
|
|
|
EnforcedStyle: final_newline
|
|
|
|
|
|
|
|
Style/TrailingCommaInArguments:
|
|
|
|
EnforcedStyleForMultiline: no_comma
|
|
|
|
|
2018-06-20 16:51:31 +08:00
|
|
|
Style/TrailingCommaInArrayLiteral:
|
|
|
|
EnforcedStyleForMultiline: no_comma
|
|
|
|
|
|
|
|
Style/TrailingCommaInHashLiteral:
|
2016-08-23 20:01:08 +08:00
|
|
|
EnforcedStyleForMultiline: no_comma
|
|
|
|
|
2018-01-17 00:01:44 +08:00
|
|
|
Naming/VariableName:
|
2016-08-23 20:01:08 +08:00
|
|
|
EnforcedStyle: snake_case
|
|
|
|
|
2018-01-17 00:01:44 +08:00
|
|
|
Naming/VariableNumber:
|
2016-08-23 20:01:08 +08:00
|
|
|
EnforcedStyle: normalcase
|
|
|
|
|
|
|
|
Style/WordArray:
|
|
|
|
EnforcedStyle: percent
|
|
|
|
MinSize: 0
|
|
|
|
|
|
|
|
Style/InlineComment:
|
|
|
|
Enabled: false
|
|
|
|
|
2018-01-17 00:01:44 +08:00
|
|
|
Naming/AccessorMethodName:
|
2016-08-23 20:01:08 +08:00
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
Style/Alias:
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
Style/Documentation:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Style/DoubleNegation:
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
Style/EachWithObject:
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
Style/EmptyLiteral:
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
Style/ModuleFunction:
|
|
|
|
Enabled: true
|
2019-05-09 19:20:04 +08:00
|
|
|
EnforcedStyle: module_function
|
2016-08-23 20:01:08 +08:00
|
|
|
|
|
|
|
Style/OneLineConditional:
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
Style/PerlBackrefs:
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
Style/Send:
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
Style/SpecialGlobalVars:
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
Style/VariableInterpolation:
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
Style/WhenThen:
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
##################### Metrics ##################################
|
|
|
|
|
|
|
|
Metrics/AbcSize:
|
|
|
|
Enabled: false
|
|
|
|
|
2019-01-15 20:45:05 +08:00
|
|
|
Metrics/BlockLength:
|
2022-12-02 00:13:26 +08:00
|
|
|
AllowedMethods: ['describe', 'context']
|
2019-01-15 20:45:05 +08:00
|
|
|
|
2016-08-23 20:01:08 +08:00
|
|
|
Metrics/ClassLength:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Metrics/ModuleLength:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Metrics/CyclomaticComplexity:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Metrics/MethodLength:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Metrics/ParameterLists:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Metrics/PerceivedComplexity:
|
|
|
|
Enabled: false
|
|
|
|
|
2018-09-12 23:17:55 +08:00
|
|
|
##################### Layout ###################################
|
2016-08-23 20:01:08 +08:00
|
|
|
|
2018-06-20 16:51:31 +08:00
|
|
|
Layout/BlockAlignment:
|
2017-04-28 17:46:06 +08:00
|
|
|
EnforcedStyleAlignWith: either
|
2016-08-23 20:01:08 +08:00
|
|
|
|
2018-06-20 16:51:31 +08:00
|
|
|
Layout/EndAlignment:
|
2017-04-28 17:46:06 +08:00
|
|
|
EnforcedStyleAlignWith: keyword
|
2016-08-23 20:01:08 +08:00
|
|
|
|
2018-06-20 16:51:31 +08:00
|
|
|
Layout/DefEndAlignment:
|
2017-04-28 17:46:06 +08:00
|
|
|
EnforcedStyleAlignWith: start_of_line
|
2016-08-23 20:01:08 +08:00
|
|
|
|
2019-12-23 21:34:11 +08:00
|
|
|
Layout/LineLength:
|
|
|
|
Max: 120
|
|
|
|
AllowHeredoc: true
|
|
|
|
AllowURI: true
|
|
|
|
URISchemes:
|
|
|
|
- http
|
|
|
|
- https
|
|
|
|
|
2018-09-12 23:17:55 +08:00
|
|
|
##################### Lint #####################################
|
|
|
|
|
|
|
|
Lint/AssignmentInCondition:
|
|
|
|
AllowSafeAssignment: true
|
|
|
|
|
|
|
|
Lint/DuplicateMethods:
|
|
|
|
Enabled: false
|
|
|
|
|
2016-08-23 20:01:08 +08:00
|
|
|
Lint/UnusedBlockArgument:
|
|
|
|
IgnoreEmptyBlocks: true
|
|
|
|
AllowUnusedKeywordArguments: false
|
|
|
|
|
|
|
|
Lint/UnusedMethodArgument:
|
|
|
|
AllowUnusedKeywordArguments: false
|
|
|
|
IgnoreEmptyMethods: true
|
|
|
|
|
|
|
|
Lint/EachWithObjectArgument:
|
|
|
|
Enabled: true
|
|
|
|
|
2019-12-18 18:55:12 +08:00
|
|
|
Lint/SuppressedException:
|
2016-08-23 20:01:08 +08:00
|
|
|
Enabled: false
|
|
|
|
|
2018-09-12 23:17:55 +08:00
|
|
|
Lint/LiteralAsCondition:
|
2016-08-23 20:01:08 +08:00
|
|
|
Enabled: true
|
|
|
|
|
2016-08-26 17:13:40 +08:00
|
|
|
Lint/EmptyInterpolation:
|
|
|
|
Enabled: false
|
|
|
|
|
2016-08-23 20:01:08 +08:00
|
|
|
Lint/LiteralInInterpolation:
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
##################### Rails ####################################
|
|
|
|
|
|
|
|
Rails/ActionFilter:
|
|
|
|
EnforcedStyle: action
|
|
|
|
Include:
|
|
|
|
- app/controllers/**/*.rb
|
|
|
|
|
|
|
|
Rails/Date:
|
|
|
|
EnforcedStyle: flexible
|
|
|
|
|
|
|
|
Rails/Exit:
|
|
|
|
Include:
|
|
|
|
- app/**/*.rb
|
|
|
|
- config/**/*.rb
|
|
|
|
- lib/**/*.rb
|
|
|
|
Exclude:
|
|
|
|
- lib/**/*.rake
|
|
|
|
|
|
|
|
Rails/FindBy:
|
|
|
|
Include:
|
|
|
|
- app/models/**/*.rb
|
|
|
|
|
|
|
|
Rails/FindEach:
|
|
|
|
Include:
|
|
|
|
- app/models/**/*.rb
|
|
|
|
|
|
|
|
Rails/HasAndBelongsToMany:
|
|
|
|
Include:
|
|
|
|
- app/models/**/*.rb
|
|
|
|
|
|
|
|
Rails/NotNullColumn:
|
|
|
|
Include:
|
|
|
|
- db/migrate/*.rb
|
|
|
|
|
|
|
|
Rails/Output:
|
|
|
|
Include:
|
|
|
|
- app/**/*.rb
|
|
|
|
- config/**/*.rb
|
|
|
|
- db/**/*.rb
|
|
|
|
- lib/**/*.rb
|
|
|
|
|
|
|
|
Rails/ReadWriteAttribute:
|
|
|
|
Include:
|
|
|
|
- app/models/**/*.rb
|
|
|
|
|
|
|
|
Rails/RequestReferer:
|
|
|
|
EnforcedStyle: referer
|
|
|
|
|
|
|
|
Rails/SafeNavigation:
|
|
|
|
ConvertTry: false
|
|
|
|
|
|
|
|
Rails/ScopeArgs:
|
|
|
|
Include:
|
|
|
|
- app/models/**/*.rb
|
|
|
|
|
2019-09-26 14:43:44 +08:00
|
|
|
Rails/SkipsModelValidations:
|
|
|
|
Exclude:
|
|
|
|
- spec/**/*_spec.rb
|
|
|
|
- spec/factories/*.rb
|
|
|
|
|
2016-08-23 20:01:08 +08:00
|
|
|
Rails/TimeZone:
|
|
|
|
EnforcedStyle: flexible
|
|
|
|
|
|
|
|
Rails/UniqBeforePluck:
|
2017-04-28 17:46:06 +08:00
|
|
|
EnforcedStyle: conservative
|
2016-08-23 20:01:08 +08:00
|
|
|
|
|
|
|
Rails/Validation:
|
|
|
|
Include:
|
|
|
|
- app/models/**/*.rb
|
|
|
|
|
|
|
|
##################### Performance ##############################
|
|
|
|
|
|
|
|
Performance/RedundantMerge:
|
|
|
|
Enabled: true
|