-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy path.rubocop.yml
42 lines (38 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
# _____ ____ ____ __ _ __
# / ___/ _____ ____ _ / __// __/____ / / (_)____ / /_
# \__ \ / ___// __ `// /_ / /_ / __ \ / / / // __ \ / __/
# ___/ // /__ / /_/ // __// __// /_/ // /___ / // / / // /_
# /____/ \___/ \__,_//_/ /_/ 1 \____//_____//_//_/ /_/ \__/
#
# The linter file that doesn't lead junior developers to bad habits.
# https://github.com/makersacademy/scaffolint
#
# Configure Rubocop to use the config file in the Scaffolint GitHub repo
inherit_from:
- https://raw.githubusercontent.com/makersacademy/scaffolint/v2.2.0/.rubocop.yml
# Rails
# =====
#
# Here are some additions to Scaffolint for Rails apps.
#
# Enable the Rails rules included in the rubocop-rails gem.
require:
- rubocop-rails
# Exclusions
# ==========
#
# Rails has powerful generators.
#
# Some auto-generated files are edited frequently. We want to lint them,
# so let's avoid adding them to this list.
# e.g. controllers, models, views
#
# Other auto-generated files are usually not edited afterwards.
# There's almost zero value in linting them, so let's exclude them.
# e.g. binstubs, config, migrations
AllCops:
Exclude:
- 'bin/*'
- 'config/**/*'
- 'db/**/*'
- 'vendor/**/*'