-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.rubocop.yml
44 lines (40 loc) · 1.32 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
inherit_from:
- .rubocop_rspec.yml
##
# Standard based Rubocop config.
# - https://github.com/testdouble/standard
# - https://github.com/testdouble/standard#usage-via-rubocop
# - https://evilmartians.com/chronicles/rubocoping-with-legacy-bring-your-ruby-code-up-to-standard
#
require:
##
# Rubocop for RSpec files.
# https://github.com/rubocop/rubocop-rspec#usage
#
- rubocop-rspec
##
# NOTE: `rubocop-performance' is automatically bundled with Standard.
#
- rubocop-performance
##
# NOTE: Custom Standard cop that should be loaded before `config/base.yml'.
#
- standard/cop/block_single_line_braces
inherit_gem:
standard: config/base.yml
AllCops:
##
# NOTE: `TargetRubyVersion: 2.5' is the oldest supported Ruby version by Rubocop.
# As a result, Rubocop may miss incompatible code with Ruby 2.3 and Ruby 2.4, but it will be caught by specs (if they are written of course).
# https://github.com/testdouble/standard#how-do-i-specify-a-ruby-version-what-is-supported
#
# TODO: Update when support for Rubies lower than 2.5 will be dropped.
#
TargetRubyVersion: 2.5
##
# NOTE: Excludes vendor from linting. Needed by GitHub Actions.
# - https://github.com/rubocop/rubocop/issues/9832
# - https://github.com/rubocop/rubocop/issues/9832#issuecomment-873398952
#
Exclude:
- vendor/**/*