-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
67 lines (49 loc) · 1.21 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
require:
- rubocop-minitest
- rubocop-rails
inherit_gem:
rubocop-shopify: rubocop.yml
Style/FrozenStringLiteralComment:
Enabled: true
# SafeAutoCorrect: false
Minitest/AssertPredicate:
Enabled: false
# 1. Hace más largo el assert porque transforma `assert caso.valid?` en
# `assert_predicate caso, :valid?`
# 2. EMHO no facilita legibilidad
# 3. No es homogéneo, no transforma `assert_not caso.valid?`
# La ventaja de assert_predicate es que presenta mejor
# mensaje de error cuando la aserción falla.
Minitest/MultipleAssertions:
Enabled: false
Rails/ApplicationRecord:
Enabled: false
Rails/LexicallyScopedActionFilter:
Enabled: false
Rails/SquishedSQLHeredocs:
Enabled: false
Rails/OutputSafety:
Exclude:
- lib/msip/engine.rb
- app/helpers/msip/*
Rails/Exit:
Exclude:
- lib/generators/msip/*
Rails/Output:
Exclude:
- lib/generators/msip/*
# En generadores Rails.root es nil
Rails/FilePath:
Exclude:
- lib/msip/engine.rb
Lint/RedundantStringCoercion:
Exclude:
- lib/msip/engine.rb
Rails/RenderInline:
Enabled: false
Naming/AsciiIdentifiers:
Enabled: false
Metrics/ParameterLists:
Enabled: false
AllCops:
NewCops: enable