This repository was archived by the owner on Mar 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
63 lines (53 loc) · 1.84 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
AllCops:
RunRailsCops: true
Exclude:
# Rubocop's default
- 'vendor/**/*'
# To ensure smooth `rake rails:update`, we exclude some of the Rails' generated files
# please add new Rails' generated files to this list after running `rake rails:update` (if any)
# please add your exclude specific for this project after this section
- 'bin/**/*'
- 'config/boot.rb'
- 'config/application.rb'
- 'config/environment.rb'
- 'config/environments/development.rb'
- 'config/environments/production.rb'
- 'config/environments/test.rb'
- 'config/initializers/assets.rb'
- 'config/initializers/backtrace_silencers.rb'
- 'config/initializers/cookies_serializer.rb'
- 'config/initializers/filter_parameter_logging.rb'
- 'config/initializers/inflections.rb'
- 'config/initializers/mime_types.rb'
- 'config/initializers/session_store.rb'
- 'config/initializers/wrap_parameters.rb'
- 'db/schema.rb'
- 'script/**/*'
# Common generated files (projects independent)
- 'config/unicorn.rb'
- 'config/initializers/devise.rb'
# Add your exclude files specific to this project here
- 'config/initializers/maps.rb'
Style/AlignParameters:
Enabled: true
EnforcedStyle: with_fixed_indentation
Style/Documentation:
Enabled: false
# If the project still supporting ruby 1.8, uncomment the following lines to force Rubocop
# to use old hash_rockets syntax, if left commented, Rubocop will force the newer ruby19 syntax
# Style/HashSyntax:
# EnforcedStyle: hash_rockets
Style/SingleSpaceBeforeFirstArg:
Enabled: false
##################### Metrics ##################################
Metrics/LineLength:
Max: 120
AllowURI: true
Metrics/MethodLength:
CountComments: false
Exclude:
- 'db/migrate/*'
# Project specific settings
Style/BlockComments:
Exclude:
- 'spec/spec_helper.rb'