lib/plugins/pre-commit/checks/checkstyle.rb in java-checkstyle-1.0.4 vs lib/plugins/pre-commit/checks/checkstyle.rb in java-checkstyle-1.0.5
- old
+ new
@@ -1,6 +1,6 @@
-require 'pre-commit/checks/shell'
+require 'pre-commit/checks/plugin'
require_relative '../message/extractor'
require_relative '../message/formatter'
require_relative '../support/path'
module PreCommit
@@ -9,10 +9,10 @@
# Plugin implementation for pre-commit gem
#
# It provides a java checkstyle validation using checkstyle.jar
# for details see:
# lib/pre-commit/support/checkstyle
- class Checkstyle < Shell
+ class Checkstyle < Plugin
##
# Function called after pre-commit execution
# this method receive the +staged_files+ from git
#
# @param [String] Standard git ouput with staged files