rubocop -A
This commit is contained in:
parent
561a403b4e
commit
83b6b8f61a
7 changed files with 30 additions and 13 deletions
|
@ -1,4 +1,6 @@
|
|||
#!/usr/bin/env ruby
|
||||
# frozen_string_literal: true
|
||||
|
||||
require 'format-staged'
|
||||
require 'optparse'
|
||||
|
||||
|
@ -46,7 +48,7 @@ end
|
|||
parser.parse!
|
||||
parameters[:patterns] = ARGV
|
||||
|
||||
if !parameters[:formatter] or parameters[:patterns].empty?
|
||||
if !parameters[:formatter] || parameters[:patterns].empty?
|
||||
puts 'Missing formatter or file patterns!'
|
||||
|
||||
puts parser
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue