Browse Source

disable redundant return warning, update a couple others

Brent Cook 2 years ago
parent
commit
f27d41db83
1 changed files with 6 additions and 2 deletions
  1. 6
    2
      .rubocop.yml

+ 6
- 2
.rubocop.yml View File

@@ -33,13 +33,17 @@ Style/FrozenStringLiteralComment:
33 33
   Enabled: false
34 34
   Description: 'We cannot support this yet without a lot of things breaking'
35 35
 
36
+Style/RedundantReturn:
37
+  Description: 'This often looks weird when mixed with actual returns, and hurts nothing'
38
+  Enabled: false
39
+
36 40
 Style/Documentation:
37 41
   Enabled: true
38 42
   Description: 'Most Metasploit modules do not have class documentation.'
39 43
   Exclude:
40 44
     - 'modules/**/*'
41 45
 
42
-Style/IndentHeredoc:
46
+Layout/IndentHeredoc:
43 47
   Enabled: false
44 48
   Description: 'We need to leave this disabled for Ruby 2.2 compat, remove in 2018'
45 49
 
@@ -88,7 +92,7 @@ Style/NumericLiterals:
88 92
   Enabled: false
89 93
   Description: 'This often hurts readability for exploit-ish code.'
90 94
 
91
-Style/SpaceInsideBrackets:
95
+Layout/SpaceInsideBrackets:
92 96
   Enabled: false
93 97
   Description: 'Until module template are final, most modules will fail this.'
94 98
 

Loading…
Cancel
Save