Skip to content

Commit 49e4856

Browse files
author
Tod Beardsley
committed
Ignore PercentLiteralDelimiters and WordArray
Per a discussion in IRC, these rules in particular don't appear to be valuable for Metasploit at this stage.
1 parent 1e47383 commit 49e4856

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.rubocop.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,18 @@ Style/MethodLength:
4141
Style/NumericLiterals:
4242
Enabled: false
4343
Description: 'This often hurts readability for exploit-ish code.'
44+
45+
Style/PercentLiteralDelimiters:
46+
Enabled: false
47+
Description: >-
48+
Metasploit devs tend to prefer [] over %w() for
49+
nearly all cases, since we often deal with funny
50+
looking arrays of nonwords. Consistency here is
51+
preferred over element type safety.
52+
53+
Style/WordArray:
54+
Enabled: false
55+
Description: >-
56+
Metasploit devs have grown comforatble with curly
57+
braces over parens for %w. Disabling this check
58+
prefers consistency.

0 commit comments

Comments
 (0)