|
1 | | -require: ["rubocop-rspec", "rubocop-rails", "rubocop-performance"] |
| 1 | +require: |
| 2 | + - standard |
2 | 3 |
|
3 | | -AllCops: {TargetRubyVersion: 2.5, Exclude: ["spec/dummy/**/*", "sandbox/**/*", "vendor/**/*"]} |
| 4 | +inherit_gem: |
| 5 | + standard: config/base.yml |
4 | 6 |
|
5 | | -Layout/ArgumentAlignment: {EnforcedStyle: with_fixed_indentation} |
6 | | -Layout/DotPosition: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#layoutdotposition"} |
7 | | -Layout/EmptyLinesAroundAttributeAccessor: {Enabled: true} |
8 | | -Layout/FirstArgumentIndentation: {EnforcedStyle: "consistent"} |
9 | | -Layout/FirstArrayElementIndentation: {EnforcedStyle: "consistent"} |
10 | | -Layout/LineLength: {Enabled: true, Max: 120} |
11 | | -Layout/MultilineOperationIndentation: {Enabled: false} |
12 | | -Layout/SpaceAroundMethodCallOperator: {Enabled: true} |
13 | | -Layout/SpaceBeforeBlockBraces: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#layoutspacebeforeblockbraces"} |
14 | | -Layout/SpaceInsideParens: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#layoutspaceinsideparens"} |
15 | | -Lint/AmbiguousRegexpLiteral: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#lintambiguousregexpliteral"} |
16 | | -Lint/AssignmentInCondition: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#lintassignmentincondition"} |
17 | | -Lint/DeprecatedOpenSSLConstant: {Enabled: true} |
18 | | -Lint/MixedRegexpCaptureTypes: {Enabled: true} |
19 | | -Lint/RaiseException: {Enabled: true} |
20 | | -Lint/StructNewOverride: {Enabled: true} |
21 | | -Metrics/AbcSize: {Enabled: false} |
22 | | -Metrics/BlockLength: {Enabled: false} |
23 | | -Metrics/BlockNesting: {Enabled: false} |
24 | | -Metrics/ClassLength: {Enabled: false} |
25 | | -Metrics/CyclomaticComplexity: {Enabled: false} |
26 | | -Metrics/MethodLength: {Enabled: false} |
27 | | -Metrics/ModuleLength: {Enabled: false} |
28 | | -Metrics/ParameterLists: {Enabled: false} |
29 | | -Metrics/PerceivedComplexity: {Enabled: false} |
30 | | -Performance/AncestorsInclude: {Enabled: true} |
31 | | -Performance/BigDecimalWithNumericArgument: {Enabled: true} |
32 | | -Performance/RedundantSortBlock: {Enabled: true} |
33 | | -Performance/RedundantStringChars: {Enabled: true} |
34 | | -Performance/ReverseFirst: {Enabled: true} |
35 | | -Performance/SortReverse: {Enabled: true} |
36 | | -Performance/Squeeze: {Enabled: true} |
37 | | -Performance/StringInclude: {Enabled: true} |
38 | | -RSpec/DescribeClass: {Exclude: ["spec/features/**/*"]} # Feature specs are not describing any class or module. |
39 | | -RSpec/ExampleLength: {Enabled: false} |
40 | | -Style/AccessorGrouping: {Enabled: true} |
41 | | -Style/Alias: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylealias"} |
42 | | -Style/AsciiComments: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#styleasciicomments"} |
43 | | -Style/BeginBlock: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylebeginblock"} |
44 | | -Style/BisectedAttrAccessor: {Enabled: true} |
45 | | -Style/BlockDelimiters: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#styleblockdelimiters"} |
46 | | -Style/CommentAnnotation: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylecommentannotation"} |
47 | | -Style/Documentation: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#styledocumentation"} |
48 | | -Style/DoubleNegation: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#styledoublenegation"} |
49 | | -Style/EndBlock: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#styleendblock"} |
50 | | -Style/ExponentialNotation: {Enabled: true} |
51 | | -Style/FormatString: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#styleformatstring"} |
52 | | -Style/FrozenStringLiteralComment: {Exclude: ["spec/**/*", "db/migrate/**/*", "bin/**/*"]} |
53 | | -Style/HashEachMethods: {Enabled: true} |
54 | | -Style/HashTransformKeys: {Enabled: true} |
55 | | -Style/HashTransformValues: {Enabled: true} |
56 | | -Style/IfUnlessModifier: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#styleifunlessmodifier"} |
57 | | -Style/Lambda: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylelambda"} |
58 | | -Style/ModuleFunction: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylemodulefunction"} |
59 | | -Style/MultilineBlockChain: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylemultilineblockchain"} |
60 | | -Style/NegatedIf: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylenegatedif"} |
61 | | -Style/NegatedWhile: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylenegatedwhile"} |
62 | | -Style/NumericPredicate: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylenumericpredicate"} |
63 | | -Style/ParallelAssignment: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#styleparallelassignment"} |
64 | | -Style/PercentLiteralDelimiters: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylepercentliteraldelimiters"} |
65 | | -Style/PerlBackrefs: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#styleperlbackrefs"} |
66 | | -Style/RedundantAssignment: {Enabled: true} |
67 | | -Style/RedundantFetchBlock: {Enabled: true} |
68 | | -Style/RedundantRegexpCharacterClass: {Enabled: true} |
69 | | -Style/RedundantRegexpEscape: {Enabled: true} |
70 | | -Style/Semicolon: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylesemicolon"} |
71 | | -Style/SignalException: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylesignalexception"} |
72 | | -Style/SingleLineBlockParams: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylesinglelineblockparams"} |
73 | | -Style/SingleLineMethods: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylesinglelinemethods"} |
74 | | -Style/SlicingWithRange: {Enabled: true} |
75 | | -Style/SpecialGlobalVars: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylespecialglobalvars"} |
76 | | -Style/StringLiterals: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylestringliterals"} |
77 | | -Style/SymbolArray: {Enabled: false, StyleGuide: "http://relaxed.ruby.style/#stylesymbolarray"} |
78 | | -Style/TrailingCommaInArguments: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#styletrailingcommainarguments"} |
79 | | -Style/TrailingCommaInArrayLiteral: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#styletrailingcommainarrayliteral"} |
80 | | -Style/TrailingCommaInHashLiteral: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#styletrailingcommainhashliteral"} |
81 | | -Style/WhileUntilModifier: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylewhileuntilmodifier"} |
82 | | -Style/WordArray: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylewordarray"} |
| 7 | +AllCops: |
| 8 | + TargetRubyVersion: 3.0 |
0 commit comments