File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed
scripts/pull_request_blaster_outer Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env ruby
22
3- require 'bundler/setup'
4- require 'manageiq-style'
3+ require 'bundler/inline'
4+ gemfile do
5+ gem 'manageiq-style' , '>=1.5.0'
6+ gem 'multi_repo' , '>=0.3.1'
7+ gem 'colorize'
8+ end
59
6- ManageIQ ::Style ::CLI . new ( :install => true ) . run
10+ gemfile = Dir . glob ( "Gemfile" ) . first
11+ gemfile_ref = gemfile && File . read ( gemfile ) . include? ( "manageiq-style" )
12+ gemspec = Dir . glob ( "*.gemspec" ) . first
13+ gemspec_ref = gemspec && File . read ( gemspec ) . include? ( "manageiq-style" )
14+
15+ if File . exist? ( ".codeclimate.yml" ) && ( gemfile_ref || gemspec_ref )
16+ ManageIQ ::Style ::CLI . new ( :install => true , :yamllint => false , :hamllint => false ) . run
17+ else
18+ puts "!! Skipping since .codeclimate.yml was not found" . light_yellow
19+ end
You can’t perform that action at this time.
0 commit comments