exe/face-control in face_control-0.2.1 vs exe/face-control in face_control-0.3.0

- old
+ new

@@ -11,19 +11,23 @@ project = args['<project>'] repository = args['<repository>'] pull_request_id = args['<pull_request_id>'] + if args['--skip-severity'] + ignored_severities = args['--skip-severity'].split(',') + puts "Skipping RuboCop offenses with severities: #{ignored_severities.join(', ')}." + end + config = Stash::Config.new server = Stash::Server.new(config.host, config.user, config.password, Logger.new(STDOUT)) repository = server.repository(project, repository) pull_request = repository.pull_request(pull_request_id) [ - FaceControl::Inputs::RubocopJson, - FaceControl::Inputs::CoffeeLintRaw - ].each do |input_class| - input = input_class.new + FaceControl::Inputs::RubocopJson.new(ignored_severities), + FaceControl::Inputs::CoffeeLintRaw.new + ].each do |input| input.comments.each do |comment| pull_request.add_comment(comment.file, comment.line, comment.text) end end rescue Docopt::Exit => e