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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0866df31cfd12c56023686b8a47d558c40f09bb9
4
- data.tar.gz: eb123109eb9ef5745e26e518b4c0ba2c96a6af60
3
+ metadata.gz: 4f9e7ca404976809bcae27a991c816d13dc9aa99
4
+ data.tar.gz: 9331fd455ba8e164ba80e48be06626474dacf3bb
5
5
  SHA512:
6
- metadata.gz: f9b0053d8bf6d26a05c683b375c488bac18bebf31c901097dda691be5960f9588c8b16bc78176a91fafb7699ace29ab7c995b05d90a54b09998563a05719df50
7
- data.tar.gz: 7b4d49bc82f187b8bd2d9a36690fc91b9b0965999b572a95ac39975ca7ffa4d814ee2c760cec5c02204ed77775c724366d503fc153c75665bb0a966b1becc9ce
6
+ metadata.gz: 7254bcdd2024704eb2718c1a714328c7746de59eaf8f56406fe17a46ab737350a3208af98c494d1e92409d6bba17cd0c0644b894cd075cf8244d25145e82ddcf
7
+ data.tar.gz: 1243c714fea6a8ea463b40d0ee17d2c51896588c50e51e345e1da0d67a58716af78a0f0df0e3f2d53ee41172219137b9e96cebe654bfe939f6bb0a18e7b08feb
data/.vexor.yml CHANGED
@@ -1,5 +1,4 @@
1
1
  rvm:
2
- - 1.9
3
2
  - 2.0
4
3
  - 2.1
5
4
  - 2.2
data/README.md CHANGED
@@ -6,9 +6,11 @@
6
6
 
7
7
  # Face Control
8
8
 
9
- Comment on added lines of pull requests in [Atlassian Stash][].
10
- Take comments from static checkers reports.
11
- (Currently supports [RuboCop][] and [CoffeeLint][].)
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 [Atlassian Stash Command Line Tools][]
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
- [Atlassian Stash]: https://www.atlassian.com/software/stash
73
- [Atlassian Stash Command Line Tools]: https://bitbucket.org/atlassian/stash-command-line-tools
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'face_control'
3
- spec.version = '0.8.3'
3
+ spec.version = '0.8.4'
4
4
  spec.authors = ['Ilya Vassilevsky']
5
5
  spec.email = ['vassilevsky@gmail.com']
6
6
 
@@ -61,8 +61,8 @@ module FaceControl
61
61
 
62
62
  def style_guide_url(offense)
63
63
  cop_name = offense['cop_name']
64
- cop_config = ::RuboCop::ConfigLoader.default_configuration[cop_name] || {}
65
- cop_config['StyleGuide']
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.3
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: 2016-06-09 00:00:00.000000000 Z
11
+ date: 2017-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: docopt