File: .rubocop.yml

package info (click to toggle)
ruby-rmagick 6.0.1-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 8,232 kB
  • sloc: cpp: 19,563; ruby: 17,147; sh: 88; javascript: 36; makefile: 13
file content (67 lines) | stat: -rw-r--r-- 1,420 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
inherit_from:
  - .rubocop_todo.yml

require:
  - rubocop-rspec
  - rubocop-performance

AllCops:
  DefaultFormatter: fuubar
  EnabledByDefault: true
  TargetRubyVersion: 3.0
  Exclude:
    - 'vendor/bundle/**/*'
    - '**/*\.spec'

################################################################################
#
# Rules that depart from rubocop defaults
#
################################################################################

Layout/MultilineAssignmentLayout:
  EnforcedStyle: same_line

RSpec/FilePath:
  CustomTransform: { Magick: rmagick }

Style/FormatString:
  EnforcedStyle: sprintf

Style/GuardClause:
  MinBodyLength: 3

# we may not need this after finishing RSpec conversion
# seems like `rubocop-rspec` already excludes the `spec/` directory
Style/MethodCalledOnDoEndBlock:
  Exclude: [spec/**/*.rb]

Style/NumericLiterals:
  MinDigits: 6

Style/TopLevelMethodDefinition:
  Exclude: [doc/**/*.rb, examples/**/*.rb, spec/**/*.rb]

RSpec/BeNil:
  EnforcedStyle: be

RSpec/ClassCheck:
  EnforcedStyle: be_kind_of

################################################################################
#
# Rules we don't want to enable
#
################################################################################

RSpec/AlignLeftLetBrace:
  Enabled: false

RSpec/AlignRightLetBrace:
  Enabled: false

Style/Copyright:
  Enabled: false

Style/DisableCopsWithinSourceCodeDirective:
  Enabled: false