-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpanolint-rails-rubocop.yml
38 lines (33 loc) · 1.04 KB
/
panolint-rails-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
# These are the default code conventions for Panorama Rails projects.
#
# You can use this in your project's .rubocop.yml with the following at the top:
#
# inherit_gem:
# panolint-rails: panolint-rails-rubocop.yml
#
# This allows you to selectively override settings in projects.
inherit_gem:
panolint-ruby: panolint-ruby-rubocop.yml
require:
- rubocop-performance
- rubocop-rails
- rubocop-rspec
- rubocop-rspec_rails
# This `inherit_mode` merges this repo's "Exclude" list with the list from
# `panolint-ruby`, which this config inherits from. When a repo uses this gem,
# and inherits from this config, it then inherits the merged exclusions list.
AllCops:
inherit_mode:
merge:
- Exclude
Exclude:
- "db/schema.rb"
- "db/migrate/**/*"
NewCops: enable
# This mitigates this vulnerability:
# https://owasp.org/www-community/attacks/Reverse_Tabnabbing
# While this is resolved in modern browsers, not all users have modern browsers
Rails/LinkToBlank:
Enabled: true
Rails/I18nLocaleTexts:
Enabled: false