gazelle_styleguide 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/gazelle_styleguide/cli.rb +5 -2
- data/lib/gazelle_styleguide/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OGE1MjVmMTlhYjA1ZTdjZjc2ZjE3NWY1MmRkMDUzNDM3NmY2MTBiOA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YjRlNGY4MTI4YzgwZDVhNzU5ZDY4N2VjOTVhZWU4NWM5YzkzMTcwYg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
M2Y1M2M0MzE5OTZmZDUwZTMyNzMzMTAyMTQ1NjRjYzYyNDBiNWIzM2MyZGJl
|
10
|
+
MjkwODczYjJiYzQ4ZWU5NDllNDExNTI2ODA5YzJlNmM3NjRmMGU3OWVmNzVk
|
11
|
+
ZWNmOGNlMGRiMThkODA0NTk5OWMxNjg4NjE4YTcwOWQ2MTFiNmU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YTYwYTRkYzE0YmNjNTlkNjJhNzI3NzRkZDhkNDA5YmQ1YTQxOTBkNjcwYWVm
|
14
|
+
OTM5MzIxOTZlYjVlNWYzNWQ1YzM2YTA1NmYxZDhjMTY3MjQ0MDRlNTRkYzhh
|
15
|
+
ZGRhNjhiOTI0NGMyYzcwMjY0NWQ4N2U5NGNhOTgzMDViOTc4NTk=
|
@@ -6,7 +6,9 @@ require 'fileutils'
|
|
6
6
|
module GazelleStyleguide
|
7
7
|
# Command line tool for managing linter running and pre-commits
|
8
8
|
class CLI < Thor
|
9
|
-
|
9
|
+
GENERIC_CHECKS = 'jshint, merge_conflict, json, yaml, coffeelint, scss_lint'
|
10
|
+
JAVA_CHECKS = 'checkstyle'
|
11
|
+
RUBY_CHECKS = 'rubocop, rspec_focus'
|
10
12
|
|
11
13
|
desc 'init', 'Sets up pre-commit hooks to check style.'
|
12
14
|
def init
|
@@ -34,7 +36,8 @@ module GazelleStyleguide
|
|
34
36
|
end
|
35
37
|
|
36
38
|
def setup_git_config
|
37
|
-
|
39
|
+
checks = GENERIC_CHECKS + (ruby? ? RUBY_CHECKS : JAVA_CHECKS)
|
40
|
+
repo.config['pre-commit.checks'] = checks
|
38
41
|
repo.config['pre-commit.jshint.config'] = GazelleStyleguide.config_for('jshintrc.json')
|
39
42
|
repo.config['pre-commit.rubocop.config'] = GazelleStyleguide.config_for('rubocop.yml')
|
40
43
|
repo.config['pre-commit.coffeelint.config'] = GazelleStyleguide.config_for('coffeelint.json')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gazelle_styleguide
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Allen Madsen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pre-commit
|