-
Notifications
You must be signed in to change notification settings - Fork 92
/
.rubocop.yml
90 lines (78 loc) · 2.5 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
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2016-09-30 00:05:06 -0400 using RuboCop version 0.37.2.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.
AllCops:
TargetRubyVersion: 2.3
# Offense count: 97
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: when_needed, always
Style/FrozenStringLiteralComment:
Enabled: false
# Offense count: 3
Lint/UnderscorePrefixedVariableName:
Exclude:
- 'lib/mongoid_tags.rb'
# Offense count: 6
Metrics/AbcSize:
Max: 29.63
# Offense count: 1
# Configuration parameters: CountComments.
Metrics/ClassLength:
Max: 169
# Offense count: 100
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes.
# URISchemes: http, https
Metrics/LineLength:
Max: 124
# Offense count: 2
# Configuration parameters: CountComments.
Metrics/MethodLength:
Max: 18
# Offense count: 41
Style/Documentation:
Enabled: false
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: Include.
# Include: app/models/**/*.rb
Rails/FindBy:
Exclude:
- 'app/models/user.rb'
# Offense count: 3
# Configuration parameters: CountComments, ExcludedMethods.
Metrics/BlockLength:
Max: 53
# Offense count: 7
# Cop supports --auto-correct.
# Configuration parameters: Whitelist.
# Whitelist: find_by_sql
Rails/DynamicFindBy:
Exclude:
- 'app/controllers/api/base_controller.rb'
- 'app/controllers/sessions_controller.rb'
- 'app/models/api/github_auth.rb'
- 'app/models/api/twitter_auth.rb'
- 'app/models/user.rb'
- 'test/unit/user_test.rb'
# Offense count: 73
# Cop supports --auto-correct.
# Configuration parameters: Include.
# Include: spec/**/*, test/**/*
# See also https://github.com/bbatsov/rubocop/pull/4107
Rails/HttpPositionalArguments:
Exclude:
- 'test/functional/api/projects_controller_test.rb'
- 'test/functional/api/sessions_controller_test.rb'
- 'test/functional/api/tomatoes_controller_test.rb'
- 'test/functional/api/users_controller_test.rb'
- 'test/functional/pages_controller_test.rb'
- 'test/functional/projects_controller_test.rb'
- 'test/functional/sessions_controller_test.rb'
- 'test/functional/tags_controller_test.rb'
- 'test/functional/tomatoes_controller_test.rb'
- 'test/functional/users_controller_test.rb'