1 # This file (.rubocop.yml) encodes consciously chosen deviation from Rubocop's
2 # default configuration. The jury is still out regarding other checks, which are
3 # disabled or tweaked in .rubocop_todo.yml.
5 inherit_from: .rubocop_todo.yml
9 # Let's ignore this script until we start using it and maintaining
10 # the corresponding doc-source-relationships.yml
11 - 'bin/doc-impacted-by'
12 TargetRubyVersion: 2.7
15 EnforcedHashRocketStyle: table
16 EnforcedColonStyle: table
18 Lint/SuppressedException:
36 Metrics/CyclomaticComplexity:
42 Metrics/ParameterLists:
43 CountKeywordArgs: false
45 Metrics/PerceivedComplexity:
48 Naming/BlockParameterName:
50 - expected_patterns_MiB
52 - size_in_MiB_of_destination_disk
57 - \A(After|Before)Feature\z
58 # Case matters: bit vs. byte
60 # Stay close to Dogtail's API
61 - \A(doubleClick|roleName)\z
62 # Stay close to OpenCV's API
65 Naming/MethodParameterName:
74 Style/AccessModifierDeclarations:
80 Style/AutoResourceCleanup:
83 Style/ClassAndModuleChildren:
84 EnforcedStyle: compact
88 - 'features/support/helpers/dogtail.rb'
89 - 'features/support/helpers/remote_shell.rb'
91 Style/CollectionMethods:
94 Style/ConstantVisibility:
97 Style/FrozenStringLiteralComment:
107 Style/HashEachMethods:
110 Style/HashTransformKeys:
113 Style/HashTransformValues:
117 EnforcedStyle: ruby19_no_mixed_keys
119 Style/IfUnlessModifier:
122 Style/MethodCallWithArgsParentheses:
142 - remove_entry_secure
158 Style/MethodCalledOnDoEndBlock:
161 Style/NumericLiterals:
173 Style/SingleLineBlockParams:
180 EnforcedStyle: brackets
182 Style/TrailingCommaInArguments:
183 EnforcedStyleForMultiline: no_comma
185 Style/TrailingCommaInArrayLiteral:
186 EnforcedStyleForMultiline: consistent_comma
188 Style/TrailingCommaInHashLiteral:
189 EnforcedStyleForMultiline: consistent_comma
192 EnforcedStyle: brackets