lint 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -0
- data/config/rubocop.yml +23 -0
- data/lib/lint/version.rb +1 -1
- data/lib/tasks/lint.rake +10 -0
- data/lint.gemspec +1 -0
- metadata +18 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1a881525900fd2a507511fdc18d53804eca6dae
|
4
|
+
data.tar.gz: 50b84a22874724233055ae3ffb08b07f5a1606d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d72c8e081afa3d8d8f4487018913d00ad8a8c4c9dbb523c02e66274609453526fbd12fa499dc9d48865e193f0d986ad26104c159a9119dc65fe717ff3cf39ce7
|
7
|
+
data.tar.gz: 910a49c1b76ebe14070493bccdddc762955aa032833ad94daf8e6c2a6fb42fd976c089f14997b78bb7f055a6826e18eb78d417de4de8f24075ea904ebbf231ce
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
data/config/rubocop.yml
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
Style/AndOr:
|
2
|
+
Enabled: false
|
3
|
+
|
4
|
+
Style/BlockComments:
|
5
|
+
Enabled: false
|
6
|
+
|
7
|
+
Style/Documentation:
|
8
|
+
Enabled: false
|
9
|
+
|
10
|
+
Style/NumericLiterals:
|
11
|
+
Enabled: false
|
12
|
+
|
13
|
+
Style/RedundantSelf:
|
14
|
+
Enabled: false
|
15
|
+
|
16
|
+
Style/RegexpLiteral:
|
17
|
+
AllowInnerSlashes: true
|
18
|
+
|
19
|
+
Lint/EndAlignment:
|
20
|
+
AlignWith: variable
|
21
|
+
|
22
|
+
Metrics/LineLength:
|
23
|
+
Max: 120
|
data/lib/lint/version.rb
CHANGED
data/lib/tasks/lint.rake
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'rubocop/rake_task'
|
2
|
+
|
1
3
|
namespace :lint do
|
2
4
|
|
3
5
|
desc "Run SCSS quality checks"
|
@@ -5,6 +7,14 @@ namespace :lint do
|
|
5
7
|
exit(1) unless system("scss-lint app/assets/stylesheets --config #{config('scss-lint.yml')}")
|
6
8
|
end
|
7
9
|
|
10
|
+
desc "Run Ruby quality checks"
|
11
|
+
RuboCop::RakeTask.new(:ruby) do |task|
|
12
|
+
task.patterns = ['{app,config,features,lib,spec}/**/*.{rb,rake}']
|
13
|
+
task.formatters = ['progress']
|
14
|
+
task.fail_on_error = true
|
15
|
+
task.options = ['--config', config('rubocop.yml')]
|
16
|
+
end
|
17
|
+
|
8
18
|
def config(file)
|
9
19
|
File.realdirpath("#{__FILE__}/../../../config/#{file}")
|
10
20
|
end
|
data/lint.gemspec
CHANGED
@@ -16,6 +16,7 @@ Gem::Specification.new do |spec|
|
|
16
16
|
spec.test_files = spec.files.grep(%r{^(spec)/})
|
17
17
|
spec.require_paths = ['lib']
|
18
18
|
|
19
|
+
spec.add_dependency 'rubocop', '~> 0.31.0'
|
19
20
|
spec.add_dependency 'scss-lint', '~> 0.38.0'
|
20
21
|
|
21
22
|
spec.add_development_dependency 'bundler', '~> 1.7'
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthias Siegel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rubocop
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.31.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.31.0
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: scss-lint
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -65,6 +79,7 @@ files:
|
|
65
79
|
- LICENSE.md
|
66
80
|
- README.md
|
67
81
|
- Rakefile
|
82
|
+
- config/rubocop.yml
|
68
83
|
- config/scss-lint.yml
|
69
84
|
- lib/lint.rb
|
70
85
|
- lib/lint/railtie.rb
|
@@ -96,3 +111,4 @@ signing_key:
|
|
96
111
|
specification_version: 4
|
97
112
|
summary: A collection of code linters.
|
98
113
|
test_files: []
|
114
|
+
has_rdoc:
|