Commit f1aebc6

mo khan <mo.khan@gmail.com>
2020-06-01 03:07:02
Fix some linter errors
1 parent 48a8ccc
Changed files (2)
lib
spandx
cli
commands
core
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
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