face_control 0.8.3 → 0.8.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.vexor.yml +0 -1
- data/README.md +10 -6
- data/face_control.gemspec +1 -1
- data/lib/face_control/checkers/rubocop.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f9e7ca404976809bcae27a991c816d13dc9aa99
|
4
|
+
data.tar.gz: 9331fd455ba8e164ba80e48be06626474dacf3bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7254bcdd2024704eb2718c1a714328c7746de59eaf8f56406fe17a46ab737350a3208af98c494d1e92409d6bba17cd0c0644b894cd075cf8244d25145e82ddcf
|
7
|
+
data.tar.gz: 1243c714fea6a8ea463b40d0ee17d2c51896588c50e51e345e1da0d67a58716af78a0f0df0e3f2d53ee41172219137b9e96cebe654bfe939f6bb0a18e7b08feb
|
data/README.md
CHANGED
@@ -6,9 +6,11 @@
|
|
6
6
|
|
7
7
|
# Face Control
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Run static analysis of pull requests in [Bitbucket Server][] (formerly Stash)
|
10
|
+
and comment on problems in added lines.
|
11
|
+
|
12
|
+
Currently supports [RuboCop][] and [CoffeeLint][] and also checks for
|
13
|
+
TODOs and FIXMEs.
|
12
14
|
|
13
15
|
Inspired by [Hound][].
|
14
16
|
|
@@ -16,6 +18,8 @@ Inspired by [Hound][].
|
|
16
18
|
|
17
19
|
gem install face_control
|
18
20
|
|
21
|
+
You also need to have CoffeeLint installed and available in PATH.
|
22
|
+
|
19
23
|
## Usage
|
20
24
|
|
21
25
|
face-control <project> <repository> <pull_request_id>
|
@@ -61,7 +65,7 @@ You can also pass multiple severity levels as a comma-separated list:
|
|
61
65
|
face-control -S convention,refactor <project> <repository> <pull_request_id>
|
62
66
|
|
63
67
|
`face-control` uses the same configuration file (`~/.stashconfig.yml`)
|
64
|
-
as the official [
|
68
|
+
as the official [Bitbucket Server Command Line Tools][]
|
65
69
|
to connect to your Stash instance.
|
66
70
|
|
67
71
|
## Etymology
|
@@ -69,8 +73,8 @@ to connect to your Stash instance.
|
|
69
73
|
[Face control][] in Wikipedia
|
70
74
|
|
71
75
|
[Hound]: https://houndci.com
|
72
|
-
[
|
73
|
-
[
|
76
|
+
[Bitbucket Server]: https://www.atlassian.com/software/bitbucket/server
|
77
|
+
[Bitbucket Server Command Line Tools]: https://bitbucket.org/atlassian/bitbucket-server-cli
|
74
78
|
[RuboCop]: http://batsov.com/rubocop/
|
75
79
|
[CoffeeLint]: http://www.coffeelint.org
|
76
80
|
[Jenkins]: http://jenkins-ci.org
|
data/face_control.gemspec
CHANGED
@@ -61,8 +61,8 @@ module FaceControl
|
|
61
61
|
|
62
62
|
def style_guide_url(offense)
|
63
63
|
cop_name = offense['cop_name']
|
64
|
-
|
65
|
-
|
64
|
+
config = ::RuboCop::ConfigLoader.default_configuration
|
65
|
+
::RuboCop::Cop::MessageAnnotator.new(config, config.for_cop(cop_name), {}).urls.first
|
66
66
|
end
|
67
67
|
|
68
68
|
def can_be_autocorrected?(offense)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: face_control
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ilya Vassilevsky
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: docopt
|