You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spec/spec_helper.rb
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,23 @@
12
12
require'rubocop/rspec/support'
13
13
require'faker'
14
14
15
+
# Monkey patch rubocop which fails to load the default rspec config due to encoding issues - https://github.com/rapid7/metasploit-framework/pull/20196
16
+
# Caused by our global IO encoding being set to ASCII-8BIT - https://github.com/rapid7/metasploit-framework/blob/b251fc1b635dc07c66cc3848983bdcbeaa08a81f/lib/metasploit/framework/common_engine.rb#L25-L33
17
+
# Original code: https://github.com/rubocop/rubocop/blob/b6c9b0ed31daf40be5a273714095e451aee10bcd/lib/rubocop/config_loader.rb#L275
18
+
# Character which causes encoding failure: https://github.com/rubocop/rubocop/blob/b6c9b0ed31daf40be5a273714095e451aee10bcd/config/default.yml#L3298-L3305
19
+
moduleRuboCop
20
+
classConfigLoader
21
+
# Read the specified file, or exit with a friendly, concise message on
22
+
# stderr. Care is taken to use the standard OS exit code for a "file not
0 commit comments