danger-php_codesniffer 0.1.2 → 0.1.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 +4 -4
- data/.travis.yml +4 -3
- data/Gemfile.lock +1 -1
- data/Rakefile +0 -6
- data/lib/php_codesniffer/gem_version.rb +1 -1
- metadata +2 -3
- data/.rubocop.yml +0 -152
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 101c0b07ba7569699cf30572eec0b1ee2fc4eb503e89ff2633f335033bc360bf
|
|
4
|
+
data.tar.gz: 581009845ba504f0c0aaed6cce0622a4a2904b77c57cff05c634316c6d0e40ca
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4d6534ea147cdef626d5d882f54cfecbbc7baf111168f45965f7a3e773ebbdffe28ca661863efef65cfb21382eed0d1c3eac7e28996fd9d405e88650688f46d7
|
|
7
|
+
data.tar.gz: e724027628c001370647742fc78ebece6ea05eb8f2a74a521f6e2eb22d46f9043c66bff2d00741649fd367a1b1b9f67d5fa5a2a11455632394f62686342a6f11
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
data/Rakefile
CHANGED
|
@@ -8,15 +8,9 @@ task default: :specs
|
|
|
8
8
|
|
|
9
9
|
task :spec do
|
|
10
10
|
Rake::Task['specs'].invoke
|
|
11
|
-
Rake::Task['rubocop'].invoke
|
|
12
11
|
Rake::Task['spec_docs'].invoke
|
|
13
12
|
end
|
|
14
13
|
|
|
15
|
-
desc 'Run RuboCop on the lib/specs directory'
|
|
16
|
-
RuboCop::RakeTask.new(:rubocop) do |task|
|
|
17
|
-
task.patterns = ['lib/**/*.rb', 'spec/**/*.rb']
|
|
18
|
-
end
|
|
19
|
-
|
|
20
14
|
desc 'Ensure that the plugin passes `danger plugins lint`'
|
|
21
15
|
task :spec_docs do
|
|
22
16
|
sh 'bundle exec danger plugins lint'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: danger-php_codesniffer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ymhuang0808
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-01-
|
|
11
|
+
date: 2019-01-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: danger-plugin-api
|
|
@@ -158,7 +158,6 @@ extensions: []
|
|
|
158
158
|
extra_rdoc_files: []
|
|
159
159
|
files:
|
|
160
160
|
- ".gitignore"
|
|
161
|
-
- ".rubocop.yml"
|
|
162
161
|
- ".travis.yml"
|
|
163
162
|
- Gemfile
|
|
164
163
|
- Gemfile.lock
|
data/.rubocop.yml
DELETED
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
# Defaults can be found here: https://github.com/bbatsov/rubocop/blob/master/config/default.yml
|
|
2
|
-
|
|
3
|
-
# If you don't like these settings, just delete this file :)
|
|
4
|
-
|
|
5
|
-
AllCops:
|
|
6
|
-
TargetRubyVersion: 2.0
|
|
7
|
-
|
|
8
|
-
Style/StringLiterals:
|
|
9
|
-
EnforcedStyle: double_quotes
|
|
10
|
-
Enabled: true
|
|
11
|
-
|
|
12
|
-
# kind_of? is a good way to check a type
|
|
13
|
-
Style/ClassCheck:
|
|
14
|
-
EnforcedStyle: kind_of?
|
|
15
|
-
|
|
16
|
-
# It's better to be more explicit about the type
|
|
17
|
-
Style/BracesAroundHashParameters:
|
|
18
|
-
Enabled: false
|
|
19
|
-
|
|
20
|
-
# specs sometimes have useless assignments, which is fine
|
|
21
|
-
Lint/UselessAssignment:
|
|
22
|
-
Exclude:
|
|
23
|
-
- '**/spec/**/*'
|
|
24
|
-
|
|
25
|
-
# We could potentially enable the 2 below:
|
|
26
|
-
Layout/IndentHash:
|
|
27
|
-
Enabled: false
|
|
28
|
-
|
|
29
|
-
Layout/AlignHash:
|
|
30
|
-
Enabled: false
|
|
31
|
-
|
|
32
|
-
# HoundCI doesn't like this rule
|
|
33
|
-
Layout/DotPosition:
|
|
34
|
-
Enabled: false
|
|
35
|
-
|
|
36
|
-
# We allow !! as it's an easy way to convert ot boolean
|
|
37
|
-
Style/DoubleNegation:
|
|
38
|
-
Enabled: false
|
|
39
|
-
|
|
40
|
-
# Cop supports --auto-correct.
|
|
41
|
-
Lint/UnusedBlockArgument:
|
|
42
|
-
Enabled: false
|
|
43
|
-
|
|
44
|
-
# We want to allow class Fastlane::Class
|
|
45
|
-
Style/ClassAndModuleChildren:
|
|
46
|
-
Enabled: false
|
|
47
|
-
|
|
48
|
-
Metrics/AbcSize:
|
|
49
|
-
Max: 60
|
|
50
|
-
|
|
51
|
-
# The %w might be confusing for new users
|
|
52
|
-
Style/WordArray:
|
|
53
|
-
MinSize: 19
|
|
54
|
-
|
|
55
|
-
# raise and fail are both okay
|
|
56
|
-
Style/SignalException:
|
|
57
|
-
Enabled: false
|
|
58
|
-
|
|
59
|
-
# Better too much 'return' than one missing
|
|
60
|
-
Style/RedundantReturn:
|
|
61
|
-
Enabled: false
|
|
62
|
-
|
|
63
|
-
# Having if in the same line might not always be good
|
|
64
|
-
Style/IfUnlessModifier:
|
|
65
|
-
Enabled: false
|
|
66
|
-
|
|
67
|
-
# and and or is okay
|
|
68
|
-
Style/AndOr:
|
|
69
|
-
Enabled: false
|
|
70
|
-
|
|
71
|
-
# Configuration parameters: CountComments.
|
|
72
|
-
Metrics/ClassLength:
|
|
73
|
-
Max: 350
|
|
74
|
-
|
|
75
|
-
Metrics/CyclomaticComplexity:
|
|
76
|
-
Max: 17
|
|
77
|
-
|
|
78
|
-
# Configuration parameters: AllowURI, URISchemes.
|
|
79
|
-
Metrics/LineLength:
|
|
80
|
-
Max: 370
|
|
81
|
-
|
|
82
|
-
# Configuration parameters: CountKeywordArgs.
|
|
83
|
-
Metrics/ParameterLists:
|
|
84
|
-
Max: 10
|
|
85
|
-
|
|
86
|
-
Metrics/PerceivedComplexity:
|
|
87
|
-
Max: 18
|
|
88
|
-
|
|
89
|
-
# Sometimes it's easier to read without guards
|
|
90
|
-
Style/GuardClause:
|
|
91
|
-
Enabled: false
|
|
92
|
-
|
|
93
|
-
# something = if something_else
|
|
94
|
-
# that's confusing
|
|
95
|
-
Style/ConditionalAssignment:
|
|
96
|
-
Enabled: false
|
|
97
|
-
|
|
98
|
-
# Better to have too much self than missing a self
|
|
99
|
-
Style/RedundantSelf:
|
|
100
|
-
Enabled: false
|
|
101
|
-
|
|
102
|
-
Metrics/MethodLength:
|
|
103
|
-
Max: 60
|
|
104
|
-
|
|
105
|
-
# We're not there yet
|
|
106
|
-
Style/Documentation:
|
|
107
|
-
Enabled: false
|
|
108
|
-
|
|
109
|
-
# Adds complexity
|
|
110
|
-
Style/IfInsideElse:
|
|
111
|
-
Enabled: false
|
|
112
|
-
|
|
113
|
-
# danger specific
|
|
114
|
-
|
|
115
|
-
Style/BlockComments:
|
|
116
|
-
Enabled: false
|
|
117
|
-
|
|
118
|
-
Layout/MultilineMethodCallIndentation:
|
|
119
|
-
EnforcedStyle: indented
|
|
120
|
-
|
|
121
|
-
# FIXME: 25
|
|
122
|
-
Metrics/BlockLength:
|
|
123
|
-
Max: 345
|
|
124
|
-
Exclude:
|
|
125
|
-
- "**/*_spec.rb"
|
|
126
|
-
|
|
127
|
-
Style/MixinGrouping:
|
|
128
|
-
Enabled: false
|
|
129
|
-
|
|
130
|
-
Style/FileName:
|
|
131
|
-
Enabled: false
|
|
132
|
-
|
|
133
|
-
Layout/IndentHeredoc:
|
|
134
|
-
Enabled: false
|
|
135
|
-
|
|
136
|
-
Style/SpecialGlobalVars:
|
|
137
|
-
Enabled: false
|
|
138
|
-
|
|
139
|
-
PercentLiteralDelimiters:
|
|
140
|
-
PreferredDelimiters:
|
|
141
|
-
"%": ()
|
|
142
|
-
"%i": ()
|
|
143
|
-
"%q": ()
|
|
144
|
-
"%Q": ()
|
|
145
|
-
"%r": "{}"
|
|
146
|
-
"%s": ()
|
|
147
|
-
"%w": ()
|
|
148
|
-
"%W": ()
|
|
149
|
-
"%x": ()
|
|
150
|
-
|
|
151
|
-
Security/YAMLLoad:
|
|
152
|
-
Enabled: false
|