Class: GitSniffer::ThirdPartyHelper

Inherits:
Object
  • Object
show all
Defined in:
lib/git_sniffer/third_party_helper.rb

Class Method Summary collapse

Class Method Details

.run_checkstyle(rule, file) ⇒ Object



5
6
7
8
# File 'lib/git_sniffer/third_party_helper.rb', line 5

def self.run_checkstyle(rule, file)
	`java -jar #{GitSniffer::HOME_DIR}/third_party_tools/checkstyle-5.6/checkstyle-5.6-all.jar \
	 -c #{GitSniffer::HOME_DIR}/third_party_tools/checkstyle-5.6/rules/#{rule}.xml #{file}`
end