Commit 9b9d147

mo khan <mo.khan@gmail.com>
2020-02-02 23:02:44
Fix linter errors tag: v0.4.0
1 parent c5ce687
Changed files (3)
lib
spandx
spec
lib/spandx/cli.rb
@@ -19,9 +19,9 @@ module Spandx
 
     desc 'build', 'Build a package index'
     method_option :help, aliases: '-h', type: :boolean,
-      desc: 'Display usage information'
+                         desc: 'Display usage information'
     method_option :directory, aliases: '-d', type: :string,
-      desc: "Directory to build index in"
+                              desc: 'Directory to build index in'
     def build(*)
       if options[:help]
         invoke :help, ['build']
@@ -33,7 +33,7 @@ module Spandx
 
     desc 'scan LOCKFILE', 'Scan a lockfile and list dependencies/licenses'
     method_option :help, aliases: '-h', type: :boolean,
-      desc: 'Display usage information'
+                         desc: 'Display usage information'
     def scan(lockfile = nil)
       if options[:help]
         invoke :help, ['scan']
spec/integration/build_spec.rb
@@ -4,14 +4,14 @@ RSpec.describe '`spandx build` command', type: :cli do
   it 'executes `spandx help build` command successfully' do
     output = `spandx help build`
     expected_output = <<~OUT
-Usage:
-  spandx build
+      Usage:
+        spandx build
 
-Options:
-  -h, [--help], [--no-help]    # Display usage information
-  -d, [--directory=DIRECTORY]  # Directory to build index in
+      Options:
+        -h, [--help], [--no-help]    # Display usage information
+        -d, [--directory=DIRECTORY]  # Directory to build index in
 
-Build a package index
+      Build a package index
     OUT
 
     expect(output).to eq(expected_output)
spec/integration/scan_spec.rb
@@ -4,13 +4,13 @@ RSpec.describe '`spandx scan` command', type: :cli do
   it 'executes `spandx help scan` command successfully' do
     output = `spandx help scan`
     expected_output = <<~OUT
-Usage:
-  spandx scan LOCKFILE
+      Usage:
+        spandx scan LOCKFILE
 
-Options:
-  -h, [--help], [--no-help]  # Display usage information
+      Options:
+        -h, [--help], [--no-help]  # Display usage information
 
-Scan a lockfile and list dependencies/licenses
+      Scan a lockfile and list dependencies/licenses
     OUT
 
     expect(output).to eq(expected_output)