-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy path.rubocop.yml
61 lines (50 loc) · 1.56 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
AllCops:
NewCops: enable
SuggestExtensions: false
TargetRubyVersion: 3.1
inherit_gem:
rubocop-ronin: rubocop.yml
#
# ronin-exploits specific exceptions
#
# Exploit#initialize exists for documentation purposes
Lint/UselessMethodDefinition:
Exclude:
- 'lib/ronin/exploits/exploit.rb'
# make an exception for the Vulnerable, NotVulnerable, and Unknown methods.
Naming/MethodName:
AllowedPatterns:
- Vulnerable
- NotVulnerable
- Unknown
# robucop mistakes :x86_64 for a "symbol number"
Naming/VariableNumber:
AllowedIdentifiers:
- x86_64
# we actually want to use OpenStruct for Ronin::Exploits::Target
Style/OpenStructUse:
Exclude:
- 'lib/ronin/exploits/target.rb'
- 'spec/target_spec.rb'
# aligning rows of columns vertically actually helps with readability
Layout/SpaceInsideArrayPercentLiteral:
Exclude:
- 'spec/loot/file_spec.rb'
# aligning rows of columns vertically actually helps with readability
Layout/SpaceInsidePercentLiteralDelimiters:
Exclude:
- 'spec/loot/file_spec.rb'
# I cannot think of good format string annotation names for the format-string
Style/FormatStringToken:
Exclude:
- 'lib/ronin/exploits/mixins/format_string.rb'
# `bp:` and `ip:` are OK keyword argument names
Naming/MethodParameterName:
Exclude:
- 'lib/ronin/exploits/mixins/stack_overflow.rb'
# `if !value.nil? ... else ...` and `if !value.empty?` ... else ...` are
# acceptable. Otherwise prefer `unless ... else ...`.
Style/NegatedIfElseCondition:
Exclude:
- 'lib/ronin/exploits/sqli.rb'
- 'lib/ronin/exploits/mixins/html.rb'