forked from emrojo/samples_extraction
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.rubocop.yml
60 lines (56 loc) · 1.24 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
inherit_from:
- .rubocop_todo.yml
- node_modules/@prettier/plugin-ruby/rubocop.yml
require:
- rubocop-performance
- rubocop-rails
AllCops:
NewCops: enable
inherit_mode:
merge:
- Exclude
Exclude:
- 'db/views_schema.rb'
# Blocks are used to structure tests and are part of the rspec dsl.
# The standard BlockLength limits are too stringent for this purpose.
# Block DSL is also used in routes
# We should be careful keeping rake tasks here, as large tasks are still an issue.
# Not sure if we need to split namespaces across several files though.
Metrics/BlockLength:
Exclude:
- Gemfile
AllowedMethods:
- describe
- context
- background
- scenario
- namespace
- task
- included
- shared_context
- shared_examples
- shared_examples_for
- state_machine
- configure
- draw
- feature
- subject
- let
- let!
- factory
- define
- guard
- transient
- with_nested_has_many_association
- with_association
- it
- class_eval
- has_metadata
- resources
# Rubocop is choking on this file, so we're excluding it for now.
Rails/NegateInclude:
inherit_mode:
merge:
- Exclude
Exclude:
- 'lib/changes_support/disjoint_list.rb'