Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'rubocop/cop/file_decompression.rb')
-rw-r--r--rubocop/cop/file_decompression.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/rubocop/cop/file_decompression.rb b/rubocop/cop/file_decompression.rb
index 44813244028..e1e645e6d62 100644
--- a/rubocop/cop/file_decompression.rb
+++ b/rubocop/cop/file_decompression.rb
@@ -3,7 +3,7 @@
module RuboCop
module Cop
# Check for symlinks when extracting files to avoid arbitrary file reading.
- class FileDecompression < RuboCop::Cop::Cop
+ class FileDecompression < RuboCop::Cop::Base
MSG = <<~EOF
While extracting files check for symlink to avoid arbitrary file reading.
https://gitlab.com/gitlab-com/gl-infra/production/-/issues/6132
@@ -29,7 +29,7 @@ module RuboCop
def on_send(node)
system?(node) do |match|
- add_offense(node, location: :expression, message: MSG) if forbidden_command?(match)
+ add_offense(node, message: MSG) if forbidden_command?(match)
end
end