File: .rubocop.yml

package info (click to toggle)
ruby-git 4.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,564 kB
  • sloc: ruby: 9,983; sh: 519; perl: 64; makefile: 6
file content (51 lines) | stat: -rw-r--r-- 1,163 bytes parent folder | download
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
inherit_from: .rubocop_todo.yml

inherit_gem:
  main_branch_shared_rubocop_config: config/rubocop.yml

# Don't care about complexity offenses in the TestUnit tests This exclusions
# will be removed when we switch to RSpec.
Metrics/CyclomaticComplexity:
  Exclude:
    - "tests/test_helper.rb"
    - "tests/units/**/*"

Metrics/ClassLength:
  Exclude:
    - "tests/test_helper.rb"
    - "tests/units/**/*"

Metrics/AbcSize:
  Exclude:
    - "tests/test_helper.rb"
    - "tests/units/**/*"

# Don't care so much about length of methods in tests
Metrics/MethodLength:
  Exclude:
    - "tests/test_helper.rb"
    - "tests/units/**/*"

# Allow test data to have long lines
Layout/LineLength:
  Exclude:
    - "tests/test_helper.rb"
    - "tests/units/**/*"
    - "*.gemspec"

# Testing and gemspec DSL results in large blocks
Metrics/BlockLength:
  Exclude:
    - "tests/test_helper.rb"
    - "tests/units/**/*"
    - "*.gemspec"

# Don't force every test class to be described
Style/Documentation:
  Exclude:
    - "tests/units/**/*"

AllCops:
  # Pin this project to Ruby 3.1 in case the shared config above is upgraded to 3.2
  # or later.
  TargetRubyVersion: 3.2