summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-05-31 21:07:02 -0600
committermo khan <mo.khan@gmail.com>2020-05-31 21:07:02 -0600
commitf1aebc6bb691ed39e3aac8c5beb78154cebc27a4 (patch)
tree21d47accfda7284533abd589644a3b554a6394ed /lib
parent48a8cccfdc97bf9d75a4b5b67a4255c4cde06737 (diff)
Fix some linter errors
Diffstat (limited to 'lib')
-rw-r--r--lib/spandx/cli/commands/scan.rb2
-rw-r--r--lib/spandx/core/printer.rb10
2 files changed, 4 insertions, 8 deletions
diff --git a/lib/spandx/cli/commands/scan.rb b/lib/spandx/cli/commands/scan.rb
index fa5978c..5a62d5e 100644
--- a/lib/spandx/cli/commands/scan.rb
+++ b/lib/spandx/cli/commands/scan.rb
@@ -15,12 +15,10 @@ module Spandx
def execute(output: $stdout)
printer = ::Spandx::Core::Printer.for(@options[:format])
-
printer.print_header(output)
each_file do |file|
spinner.spin(file)
each_dependency_from(file) do |dependency|
- spinner.spin(file)
printer.print_line(dependency, output)
end
end
diff --git a/lib/spandx/core/printer.rb b/lib/spandx/core/printer.rb
index 7cf89df..e5b15d9 100644
--- a/lib/spandx/core/printer.rb
+++ b/lib/spandx/core/printer.rb
@@ -7,15 +7,13 @@ module Spandx
raise ::Spandx::Error, :match?
end
- def print_header(io)
- end
+ def print_header(io); end
def print_line(dependency, io)
io.puts(dependency.to_s)
end
- def print_footer(io)
- end
+ def print_footer(io); end
class << self
include Registerable
@@ -51,11 +49,11 @@ module Spandx
format.to_sym == :table
end
- def print_header(io)
+ def print_header(_io)
@dependencies = SortedSet.new
end
- def print_line(dependency, io)
+ def print_line(dependency, _io)
@dependencies << dependency
end