danger-php_codesniffer 0.1.0 → 0.1.1
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/php_codesniffer/gem_version.rb +1 -1
- data/lib/php_codesniffer/plugin.rb +8 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e80595cd4ec2a89903b54212a827192ef3f231e175454201c54b93cc6fde1f8
|
4
|
+
data.tar.gz: 40d4372002c8f4f14632084f66b585a25ea68992b354c37ab23b8c00397dd7c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c708392d8277f49a4b39df00a4eb028522f4f68e724191122e6729a47b6f12c125018aaaea24b0dbdd58195cffd0f9e688ab441415677d2fd8ae85f2628c007
|
7
|
+
data.tar.gz: a7e20005456fee200f21cbe477f78d0f8f8467050ef1ea2df5a96b604f334291331da5e3fc12926c8ade329c1de2ac8bfbbf1222365c7a4131abaaeb8596ccef
|
data/Gemfile.lock
CHANGED
@@ -14,12 +14,17 @@ module Danger
|
|
14
14
|
#
|
15
15
|
class DangerPhpCodesniffer < Plugin
|
16
16
|
|
17
|
-
# An attribute
|
17
|
+
# An attribute for setting code standard
|
18
|
+
#
|
19
|
+
# @return [String]
|
20
|
+
attr_accessor :standard
|
21
|
+
|
22
|
+
# An attribute for ignoring file or directory
|
18
23
|
#
|
19
24
|
# @return [String]
|
20
25
|
attr_accessor :ignore
|
21
26
|
|
22
|
-
#
|
27
|
+
# An attribute for enabling filtering
|
23
28
|
# Only show messages within changed files.
|
24
29
|
# @return [Boolean]
|
25
30
|
attr_accessor :filtering
|
@@ -75,6 +80,7 @@ module Danger
|
|
75
80
|
def run_phpcs(bin, file)
|
76
81
|
command = "#{bin} --report=json "
|
77
82
|
command << "--basepath=. "
|
83
|
+
command << "--standard=#{standard}" if standard
|
78
84
|
command << "--ignore=#{ignore}" if ignore
|
79
85
|
result = `#{command} #{file}`
|
80
86
|
JSON.parse result
|