java-checkstyle 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ae4c1084ae89aff25bbdeb83f8f23ca5717df96a
4
- data.tar.gz: 1a4587b7b160b6c276e55a6c73e88e41c9024a6b
3
+ metadata.gz: ad85bf5e1460d22ac17dd08317e6801b92fbcaae
4
+ data.tar.gz: 6d4c62ae05eff0f2e5150f5e6e0e3efd19d91ef3
5
5
  SHA512:
6
- metadata.gz: af6fa8496cb1beff907c37d83b372019da561b5b384c6abb5d9aec2adeb5d93fa0c079e11f17f06bec047d378748b13f0ac5f64011f3b8005a74338da1c7f045
7
- data.tar.gz: b4099e356de18a377c69882e250f6d4fddfbe4139365c9bb8349e74591e1b66bd083356e325c925612145a6535a1d8d9cd6b6c2d90f5a3beb3a9aa9ee49d32f6
6
+ metadata.gz: a24b8da42d1504e3a8eafe2900abed91541e94294c711440fc82c61dd3bfb86e56e814c008d7771b27680625a44d7584d73617553bb0e9677c51cd822a7a51ec
7
+ data.tar.gz: 32eb221333fc952a32a3a64f2f281c7b93315795f6120c854e2fd8c3d18a24647a45693e6dfea44cdd2ac263d361099a1f66b28bc7a2f31085d54f8f88ee1db3
@@ -1,8 +1,8 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.9.3
4
3
  - 2.2.0
5
- - jruby-19mode
4
+ - 2.3.0
5
+ - jruby-9.1.0.0
6
6
 
7
7
  script:
8
8
  - rake
data/Gemfile CHANGED
@@ -5,6 +5,7 @@ gemspec
5
5
  gem 'crack'
6
6
 
7
7
  group :test do
8
+ gem "simplecov"
8
9
  gem "codeclimate-test-reporter", require: nil
9
10
  gem 'rubocop', require: false
10
11
  # gem 'byebug' not add as default it is not compatible with ruby 2 >= version
@@ -1,4 +1,4 @@
1
- require 'pre-commit/checks/shell'
1
+ require 'pre-commit/checks/plugin'
2
2
  require_relative '../message/extractor'
3
3
  require_relative '../message/formatter'
4
4
  require_relative '../support/path'
@@ -11,7 +11,7 @@ module PreCommit
11
11
  # It provides a java checkstyle validation using checkstyle.jar
12
12
  # for details see:
13
13
  # lib/pre-commit/support/checkstyle
14
- class Checkstyle < Shell
14
+ class Checkstyle < Plugin
15
15
  ##
16
16
  # Function called after pre-commit execution
17
17
  # this method receive the +staged_files+ from git
@@ -13,6 +13,6 @@ module PreCommit
13
13
  #
14
14
  # Main file: checks/checkstyle.rb
15
15
  module Checkstyle
16
- VERSION = '1.0.4'
16
+ VERSION = '1.0.5'.freeze
17
17
  end
18
18
  end
@@ -1,5 +1,5 @@
1
- require "codeclimate-test-reporter"
2
- CodeClimate::TestReporter.start
1
+ require "simplecov"
2
+ SimpleCov.start
3
3
 
4
4
  $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
5
5
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: java-checkstyle
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Allen Madsen
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-05-10 00:00:00.000000000 Z
13
+ date: 2017-05-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: pre-commit
@@ -121,7 +121,6 @@ files:
121
121
  - README.md
122
122
  - Rakefile
123
123
  - demo.png
124
- - foo.java
125
124
  - java-checkstyle.gemspec
126
125
  - lib/plugins/pre-commit/checks/checkstyle.rb
127
126
  - lib/plugins/pre-commit/domain/bad_file.rb
@@ -163,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
163
162
  version: '0'
164
163
  requirements: []
165
164
  rubyforge_project:
166
- rubygems_version: 2.5.2
165
+ rubygems_version: 2.4.5
167
166
  signing_key:
168
167
  specification_version: 4
169
168
  summary: Checkstyle linter plugin for pre-commit
data/foo.java DELETED
@@ -1,9 +0,0 @@
1
- class HelloWorld
2
- {
3
- public static void main(String[] args)
4
- {
5
- System.out.println("Hello World!");
6
-
7
- }
8
-
9
- }