forked from pangea-project/pangea-tooling
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
66 lines (54 loc) · 2.11 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
AllCops:
NewCops: enable # https://docs.rubocop.org/en/latest/versioning/
TargetRubyVersion: 2.5
# Skip all git ignored but mangle paths to apply recursively foo/ -> foo/**
Exclude:
- ci-tooling/**/* # symlinks back up
<% `git status --ignored --porcelain`.lines.grep(/^!! /).each do |path| %>
- <%= path = path.strip.sub(/^!! /, ''); path = "#{path}**" if path.end_with?('/'); path %>
<% end %>
Style/Next:
Enabled: false
Style/SpecialGlobalVars:
Enabled: false
Style/HashSyntax:
Exclude:
- Rakefile
Style/AccessorGrouping:
EnforcedStyle: separated
# The magic comment is at the top. Below the top is the bloody licenses, having
# a space in between looks like shit. The motivation of this style rule is so
# you don't glue actual code comments to the magic comment, we don't do that
# as we use a freeer license than most of Ruby code and need a licenses header
# to properly license!
# https://github.com/bbatsov/ruby-style-guide#magic-comments
Layout/EmptyLineAfterMagicComment:
Enabled: false
Metrics/AbcSize:
Exclude:
- jenkins-jobs/*
Metrics/MethodLength:
Exclude:
- jenkins-jobs/*
# Style suggestion is to use activesupport to be able to indent heredocs. I say
# fuck this suggestion. I am not going to require some stupid gem to be able to
# indent heredocs. Ruby 2.3 will solve this with <<~ heredocs.
Layout/HeredocIndentation:
Enabled: false
# We have plenty of system(*%w(....)) which is good to have because
# ['foo', 'mweo', 'asdf'] is cumbersome AF to write.
Lint/RedundantSplatExpansion:
Enabled: false
# We generally load only trusted yaml sources produced by us or adjacent KDE
# services (in fact, at the time of writing only us as foreign services
# are generally giving json over the wire)
Security/YAMLLoad:
Enabled: false
# This is not a web application. If we can't trust the data we open then we may
# as well quit our jobs and become bards traveling the lands to sing the tales
# of Brave Sir Robin.
Security/Open:
Enabled: false
Layout/LineLength:
# SPDX tags cannot be line broken, ignore them for the purpose of line length!
IgnoredPatterns: ['\A# SPDX']