-
Notifications
You must be signed in to change notification settings - Fork 6
/
.rubocop.yml
92 lines (75 loc) · 2.15 KB
/
.rubocop.yml
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
inherit_from: .rubocop_todo.yml
require:
- rubocop-performance
- rubocop-rails
- rubocop-sequel
- rubocop-factory_bot
- rubocop-graphql
inherit_gem:
prettier: rubocop.yml
AllCops:
NewCops: enable
TargetRubyVersion: 3.3
ParserEngine: parser_prism
Exclude:
- bin/bundle
- bin/rails
- bin/rake
- bin/setup
- bin/spring
- bin/update
- bin/yarn
- db/schema.rb
- public/uploads/**/*.rb
- script/rails
- tmp/**/*
- vendor/bundle/**/*
Sequel:
Enabled: false
Include:
- lib/intercode/import/**/*.rb
Style/BeginBlock:
Description: 'Avoid the use of BEGIN blocks.'
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-BEGIN-blocks'
Enabled: false
Style/ClassAndModuleChildren:
Description: 'Checks style of children classes and modules.'
Enabled: false
Style/CommentAnnotation:
Description: 'Checks formatting of annotation comments.'
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#annotate-keywords'
Enabled: false
Style/Documentation:
Description: 'Document classes and non-namespace modules.'
Enabled: false
Style/DoubleNegation:
Description: 'Checks for uses of double negation (!!).'
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-bang-bang'
Enabled: false
Metrics/AbcSize:
Max: 30 # default is 17
Exclude:
- db/migrate/**/*.rb
Metrics/MethodLength:
CountAsOne: ['array', 'heredoc']
Max: 20 # default is 10
Exclude:
- db/migrate/**/*.rb
# rubocop-rails isn't correctly determining the database from database.yml, tell it it's postgres
Rails/BulkChangeTable:
Database: postgresql
# rubocop-rails isn't correctly determining the database from database.yml, tell it it's postgres
Rails/NotNullColumn:
Database: postgresql
GraphQL/ObjectDescription:
Exclude:
- app/graphql/sources/**/*.rb
# prettier and rubocop are fighting about this one, let prettier win
Style/StringLiteralsInInterpolation:
Enabled: false
# prettier and rubocop are fighting about this one, let prettier win
Style/BlockDelimiters:
Enabled: false
# Not sure why Prettier isn't disabling this but apparently we have to
Style/StringLiterals:
Enabled: false