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: 3.1
15 EnforcedHashRocketStyle: table
16 EnforcedColonStyle: table
21 Lint/SuppressedException:
39 Metrics/CyclomaticComplexity:
45 Metrics/ParameterLists:
46 CountKeywordArgs: false
48 Metrics/PerceivedComplexity:
51 Naming/BlockParameterName:
53 - expected_patterns_MiB
55 - size_in_MiB_of_destination_disk
60 - \A(After|Before)Feature\z
61 # Case matters: bit vs. byte
63 # Stay close to Dogtail's API
64 - \A(doubleClick|roleName)\z
65 # Stay close to OpenCV's API
67 # Stay close to Dogtail's API
74 Naming/MethodParameterName:
83 Style/AccessModifierDeclarations:
89 Style/AutoResourceCleanup:
92 Style/ClassAndModuleChildren:
93 EnforcedStyle: compact
97 - 'features/support/helpers/dogtail.rb'
98 - 'features/support/helpers/remote_shell.rb'
100 Style/CollectionMethods:
103 Style/ConstantVisibility:
106 Style/FrozenStringLiteralComment:
116 Style/HashEachMethods:
119 Style/HashTransformKeys:
122 Style/HashTransformValues:
126 EnforcedStyle: ruby19_no_mixed_keys
128 Style/IfUnlessModifier:
131 Style/MethodCallWithArgsParentheses:
151 - remove_entry_secure
167 Style/MethodCalledOnDoEndBlock:
170 Style/NumericLiterals:
182 Style/SingleLineBlockParams:
189 EnforcedStyle: brackets
191 Style/TrailingCommaInArguments:
192 EnforcedStyleForMultiline: no_comma
194 Style/TrailingCommaInArrayLiteral:
195 EnforcedStyleForMultiline: consistent_comma
197 Style/TrailingCommaInHashLiteral:
198 EnforcedStyleForMultiline: consistent_comma
201 EnforcedStyle: brackets