File: .rubocop.yml

package info (click to toggle)
ruby-http-2 1.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 13,360 kB
  • sloc: ruby: 6,033; makefile: 4
file content (109 lines) | stat: -rw-r--r-- 1,694 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
inherit_from: .rubocop_todo.yml

plugins:
  - rubocop-performance

AllCops:
  NewCops: enable
  TargetRubyVersion: 2.7
  DisplayCopNames: true
  Exclude:
    - 'bin/**'
    - 'vendor/**/*'
    - '**/huffman_statemachine.rb'

Layout/HeredocIndentation:
  Exclude:
    - 'lib/tasks/generate_huffman_table.rb'
    - 'example/*'


Metrics/BlockLength:
  Enabled: false

Metrics/PerceivedComplexity:
  Enabled: false

Lint/EmptyWhen:
  Enabled: false

Style/StringLiterals:
  EnforcedStyle: double_quotes

Style/NumericPredicate:
  Enabled: false

Gemspec/RequiredRubyVersion:
  Enabled: false

Bundler/DuplicatedGem:
  Enabled: false

Style/OptionalBooleanParameter:
  Enabled: false

Style/ArgumentsForwarding:
  Enabled: false

Lint/MissingSuper:
  Exclude:
    - 'lib/httpx/io/unix.rb'

Style/HashTransformValues:
  Exclude:
    - 'lib/httpx/plugins/digest_authentication.rb'

Lint/ConstantDefinitionInBlock:
  Exclude:
    - 'spec/**/*'

# TODO: remove this if min supported version of ruby is 2.3
Style/HashSyntax:
  Enabled: false

Style/AndOr:
  Enabled: false

Style/SafeNavigation:
  Enabled: false

Naming/MethodParameterName:
  Enabled: false

Naming/VariableNumber:
  Exclude:
    - example/server.rb

Layout/LineLength:
  Max: 128

Style/HashEachMethods:
  Enabled: true

Style/HashTransformKeys:
  Enabled: true

Style/CommentAnnotation:
  Enabled: false

Style/SlicingWithRange:
  Enabled: false

Lint/SuppressedException:
  Exclude:
    - Rakefile

Lint/EmptyBlock:
  Exclude:
    - spec/*

Performance/CollectionLiteralInLoop:
  Exclude:
    - spec/*

Performance/MethodObjectAsBlock:
  Enabled: false

Metrics/CollectionLiteralLength:
  Exclude:
    - lib/http/2/header/huffman.rb