launchcop 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +22 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +27 -0
- data/Rakefile +2 -0
- data/bin/launchcop +9 -0
- data/config/rubocop.yml +259 -0
- data/launchcop.gemspec +25 -0
- data/lib/launchcop/version.rb +3 -0
- data/lib/launchcop.rb +5 -0
- metadata +97 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 8d3dabdf8472f5eb053e745c23e5ec9223b09b89
|
4
|
+
data.tar.gz: 326865fe0654e2224883bf2e30a262ca3d0f10b5
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 2442a81150531d6932b27933578b278040e38971f0b3879a470184a518165638ac85712c2e4b8ca36facb5bcf48917f8c31c8305c52791f4369eee6836e21a4b
|
7
|
+
data.tar.gz: 67502c37eabd2953f6997cbe682d87bdb28ba6c8292ef6beeabdea655008d3126d6e17cb42ba2f955361b1d6987162a4bc35b80ef5a77c7810cfd6edae302d15
|
data/.gitignore
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
.bundle
|
4
|
+
.config
|
5
|
+
.yardoc
|
6
|
+
Gemfile.lock
|
7
|
+
InstalledFiles
|
8
|
+
_yardoc
|
9
|
+
coverage
|
10
|
+
doc/
|
11
|
+
lib/bundler/man
|
12
|
+
pkg
|
13
|
+
rdoc
|
14
|
+
spec/reports
|
15
|
+
test/tmp
|
16
|
+
test/version_tmp
|
17
|
+
tmp
|
18
|
+
*.bundle
|
19
|
+
*.so
|
20
|
+
*.o
|
21
|
+
*.a
|
22
|
+
mkmf.log
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2014 Eric Kelly
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# LaunchCop
|
2
|
+
|
3
|
+
LaunchCop is built on top of [RuboCop](https://github.com/bbatsov/rubocop). When
|
4
|
+
you run `launchcop`, it actually just runs RuboCop, but with our configuration.
|
5
|
+
|
6
|
+
## Installation
|
7
|
+
|
8
|
+
`gem install launchcop`
|
9
|
+
|
10
|
+
## Usage
|
11
|
+
|
12
|
+
Run `launchcop` exactly the same as you would run Rubocop. The only difference
|
13
|
+
is that it's going to use our default configuration.
|
14
|
+
|
15
|
+
## Contributing
|
16
|
+
|
17
|
+
1. Fork it ( https://github.com/LaunchAcademy/LaunchCop/fork )
|
18
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
19
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
20
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
21
|
+
5. Create a new Pull Request
|
22
|
+
|
23
|
+
## Props
|
24
|
+
|
25
|
+
Props to [thoughtbot](http://thoughtbot.com/) and their style guide. The `rubocop.yml` file in this
|
26
|
+
repository was actually copied from their
|
27
|
+
[Hound](https://github.com/thoughtbot/hound) project.
|
data/Rakefile
ADDED
data/bin/launchcop
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'launchcop'
|
4
|
+
|
5
|
+
gem_root = File.expand_path('../..', __FILE__)
|
6
|
+
rubocop_config = File.join(gem_root, 'config', 'rubocop.yml')
|
7
|
+
rubocop_exec_path = Gem.bin_path("rubocop", "rubocop")
|
8
|
+
|
9
|
+
system(rubocop_exec_path, '-c', rubocop_config, *ARGV)
|
data/config/rubocop.yml
ADDED
@@ -0,0 +1,259 @@
|
|
1
|
+
AllCops:
|
2
|
+
Exclude:
|
3
|
+
- db/schema.rb
|
4
|
+
|
5
|
+
AccessorMethodName:
|
6
|
+
Enabled: false
|
7
|
+
|
8
|
+
ActionFilter:
|
9
|
+
Enabled: false
|
10
|
+
|
11
|
+
Alias:
|
12
|
+
Enabled: false
|
13
|
+
|
14
|
+
ArrayJoin:
|
15
|
+
Enabled: false
|
16
|
+
|
17
|
+
AsciiComments:
|
18
|
+
Enabled: false
|
19
|
+
|
20
|
+
AsciiIdentifiers:
|
21
|
+
Enabled: false
|
22
|
+
|
23
|
+
Attr:
|
24
|
+
Enabled: false
|
25
|
+
|
26
|
+
BlockNesting:
|
27
|
+
Enabled: false
|
28
|
+
|
29
|
+
CaseEquality:
|
30
|
+
Enabled: false
|
31
|
+
|
32
|
+
CharacterLiteral:
|
33
|
+
Enabled: false
|
34
|
+
|
35
|
+
ClassAndModuleChildren:
|
36
|
+
Enabled: false
|
37
|
+
|
38
|
+
ClassLength:
|
39
|
+
Enabled: false
|
40
|
+
|
41
|
+
ClassVars:
|
42
|
+
Enabled: false
|
43
|
+
|
44
|
+
CollectionMethods:
|
45
|
+
PreferredMethods:
|
46
|
+
find: detect
|
47
|
+
reduce: inject
|
48
|
+
collect: map
|
49
|
+
find_all: select
|
50
|
+
|
51
|
+
ColonMethodCall:
|
52
|
+
Enabled: false
|
53
|
+
|
54
|
+
CommentAnnotation:
|
55
|
+
Enabled: false
|
56
|
+
|
57
|
+
CyclomaticComplexity:
|
58
|
+
Enabled: false
|
59
|
+
|
60
|
+
Delegate:
|
61
|
+
Enabled: false
|
62
|
+
|
63
|
+
DeprecatedHashMethods:
|
64
|
+
Enabled: false
|
65
|
+
|
66
|
+
Documentation:
|
67
|
+
Enabled: false
|
68
|
+
|
69
|
+
DotPosition:
|
70
|
+
EnforcedStyle: trailing
|
71
|
+
|
72
|
+
DoubleNegation:
|
73
|
+
Enabled: false
|
74
|
+
|
75
|
+
EachWithObject:
|
76
|
+
Enabled: false
|
77
|
+
|
78
|
+
EmptyLiteral:
|
79
|
+
Enabled: false
|
80
|
+
|
81
|
+
Encoding:
|
82
|
+
Enabled: false
|
83
|
+
|
84
|
+
EvenOdd:
|
85
|
+
Enabled: false
|
86
|
+
|
87
|
+
FileName:
|
88
|
+
Enabled: false
|
89
|
+
|
90
|
+
FlipFlop:
|
91
|
+
Enabled: false
|
92
|
+
|
93
|
+
FormatString:
|
94
|
+
Enabled: false
|
95
|
+
|
96
|
+
GlobalVars:
|
97
|
+
Enabled: false
|
98
|
+
|
99
|
+
GuardClause:
|
100
|
+
Enabled: false
|
101
|
+
|
102
|
+
IfUnlessModifier:
|
103
|
+
Enabled: false
|
104
|
+
|
105
|
+
IfWithSemicolon:
|
106
|
+
Enabled: false
|
107
|
+
|
108
|
+
InlineComment:
|
109
|
+
Enabled: false
|
110
|
+
|
111
|
+
Lambda:
|
112
|
+
Enabled: false
|
113
|
+
|
114
|
+
LambdaCall:
|
115
|
+
Enabled: false
|
116
|
+
|
117
|
+
LineEndConcatenation:
|
118
|
+
Enabled: false
|
119
|
+
|
120
|
+
LineLength:
|
121
|
+
Max: 80
|
122
|
+
|
123
|
+
MethodLength:
|
124
|
+
Enabled: false
|
125
|
+
|
126
|
+
ModuleFunction:
|
127
|
+
Enabled: false
|
128
|
+
|
129
|
+
NegatedIf:
|
130
|
+
Enabled: false
|
131
|
+
|
132
|
+
NegatedWhile:
|
133
|
+
Enabled: false
|
134
|
+
|
135
|
+
Next:
|
136
|
+
Enabled: false
|
137
|
+
|
138
|
+
NilComparison:
|
139
|
+
Enabled: false
|
140
|
+
|
141
|
+
Not:
|
142
|
+
Enabled: false
|
143
|
+
|
144
|
+
NumericLiterals:
|
145
|
+
Enabled: false
|
146
|
+
|
147
|
+
OneLineConditional:
|
148
|
+
Enabled: false
|
149
|
+
|
150
|
+
OpMethod:
|
151
|
+
Enabled: false
|
152
|
+
|
153
|
+
ParameterLists:
|
154
|
+
Enabled: false
|
155
|
+
|
156
|
+
PercentLiteralDelimiters:
|
157
|
+
Enabled: false
|
158
|
+
|
159
|
+
PerlBackrefs:
|
160
|
+
Enabled: false
|
161
|
+
|
162
|
+
PredicateName:
|
163
|
+
NamePrefixBlacklist:
|
164
|
+
- is_
|
165
|
+
|
166
|
+
Proc:
|
167
|
+
Enabled: false
|
168
|
+
|
169
|
+
RaiseArgs:
|
170
|
+
Enabled: false
|
171
|
+
|
172
|
+
RegexpLiteral:
|
173
|
+
Enabled: false
|
174
|
+
|
175
|
+
SelfAssignment:
|
176
|
+
Enabled: false
|
177
|
+
|
178
|
+
SingleLineBlockParams:
|
179
|
+
Enabled: false
|
180
|
+
|
181
|
+
SingleLineMethods:
|
182
|
+
Enabled: false
|
183
|
+
|
184
|
+
SignalException:
|
185
|
+
Enabled: false
|
186
|
+
|
187
|
+
SpecialGlobalVars:
|
188
|
+
Enabled: false
|
189
|
+
|
190
|
+
StringLiterals:
|
191
|
+
EnforcedStyle: double_quotes
|
192
|
+
|
193
|
+
VariableInterpolation:
|
194
|
+
Enabled: false
|
195
|
+
|
196
|
+
TrailingComma:
|
197
|
+
Enabled: false
|
198
|
+
|
199
|
+
TrivialAccessors:
|
200
|
+
Enabled: false
|
201
|
+
|
202
|
+
VariableInterpolation:
|
203
|
+
Enabled: false
|
204
|
+
|
205
|
+
WhenThen:
|
206
|
+
Enabled: false
|
207
|
+
|
208
|
+
WhileUntilModifier:
|
209
|
+
Enabled: false
|
210
|
+
|
211
|
+
WordArray:
|
212
|
+
Enabled: false
|
213
|
+
|
214
|
+
# Lint
|
215
|
+
|
216
|
+
AmbiguousOperator:
|
217
|
+
Enabled: false
|
218
|
+
|
219
|
+
AmbiguousRegexpLiteral:
|
220
|
+
Enabled: false
|
221
|
+
|
222
|
+
AssignmentInCondition:
|
223
|
+
Enabled: false
|
224
|
+
|
225
|
+
ConditionPosition:
|
226
|
+
Enabled: false
|
227
|
+
|
228
|
+
DeprecatedClassMethods:
|
229
|
+
Enabled: false
|
230
|
+
|
231
|
+
ElseLayout:
|
232
|
+
Enabled: false
|
233
|
+
|
234
|
+
HandleExceptions:
|
235
|
+
Enabled: false
|
236
|
+
|
237
|
+
InvalidCharacterLiteral:
|
238
|
+
Enabled: false
|
239
|
+
|
240
|
+
LiteralInCondition:
|
241
|
+
Enabled: false
|
242
|
+
|
243
|
+
LiteralInInterpolation:
|
244
|
+
Enabled: false
|
245
|
+
|
246
|
+
Loop:
|
247
|
+
Enabled: false
|
248
|
+
|
249
|
+
ParenthesesAsGroupedExpression:
|
250
|
+
Enabled: false
|
251
|
+
|
252
|
+
RequireParentheses:
|
253
|
+
Enabled: false
|
254
|
+
|
255
|
+
UnderscorePrefixedVariableName:
|
256
|
+
Enabled: false
|
257
|
+
|
258
|
+
Void:
|
259
|
+
Enabled: false
|
data/launchcop.gemspec
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'launchcop/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "launchcop"
|
8
|
+
spec.version = Launchcop::VERSION
|
9
|
+
spec.authors = ["Eric Kelly"]
|
10
|
+
spec.email = ["heroiceric@gmail.com"]
|
11
|
+
spec.summary = %q{Rubcop with custom config.}
|
12
|
+
spec.description = %q{Rubcop configured to easily follow our style guide.}
|
13
|
+
spec.homepage = ""
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0")
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.6"
|
22
|
+
spec.add_development_dependency "rake"
|
23
|
+
|
24
|
+
spec.add_dependency("rubocop")
|
25
|
+
end
|
data/lib/launchcop.rb
ADDED
metadata
ADDED
@@ -0,0 +1,97 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: launchcop
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Eric Kelly
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-09-08 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.6'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.6'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rubocop
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
description: Rubcop configured to easily follow our style guide.
|
56
|
+
email:
|
57
|
+
- heroiceric@gmail.com
|
58
|
+
executables:
|
59
|
+
- launchcop
|
60
|
+
extensions: []
|
61
|
+
extra_rdoc_files: []
|
62
|
+
files:
|
63
|
+
- ".gitignore"
|
64
|
+
- Gemfile
|
65
|
+
- LICENSE.txt
|
66
|
+
- README.md
|
67
|
+
- Rakefile
|
68
|
+
- bin/launchcop
|
69
|
+
- config/rubocop.yml
|
70
|
+
- launchcop.gemspec
|
71
|
+
- lib/launchcop.rb
|
72
|
+
- lib/launchcop/version.rb
|
73
|
+
homepage: ''
|
74
|
+
licenses:
|
75
|
+
- MIT
|
76
|
+
metadata: {}
|
77
|
+
post_install_message:
|
78
|
+
rdoc_options: []
|
79
|
+
require_paths:
|
80
|
+
- lib
|
81
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
82
|
+
requirements:
|
83
|
+
- - ">="
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - ">="
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '0'
|
91
|
+
requirements: []
|
92
|
+
rubyforge_project:
|
93
|
+
rubygems_version: 2.2.2
|
94
|
+
signing_key:
|
95
|
+
specification_version: 4
|
96
|
+
summary: Rubcop with custom config.
|
97
|
+
test_files: []
|