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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e0f9a485c9a5a85d24cfbdf96577ff34ffd04cb5
4
- data.tar.gz: f9eb7833a4ef72d50fa556e0f94544ca99425589
3
+ metadata.gz: f1a881525900fd2a507511fdc18d53804eca6dae
4
+ data.tar.gz: 50b84a22874724233055ae3ffb08b07f5a1606d7
5
5
  SHA512:
6
- metadata.gz: 298eb7d46a9ac5e59cc472df30b4e6a8833d982edbc50208a3a386ed2ede768c727fddf4b22156998ba79bc282a6b666183723d5cf4a934f82e824debbb2b257
7
- data.tar.gz: a956ec462980dff2185a7651c02c0a4b401d9d1452e40074f252afbd1fb9fa164131953d4967ef4b0a7d94ee8061da91a6f5f3e8efe373fe1a979db93a3dab3f
6
+ metadata.gz: d72c8e081afa3d8d8f4487018913d00ad8a8c4c9dbb523c02e66274609453526fbd12fa499dc9d48865e193f0d986ad26104c159a9119dc65fe717ff3cf39ce7
7
+ data.tar.gz: 910a49c1b76ebe14070493bccdddc762955aa032833ad94daf8e6c2a6fb42fd976c089f14997b78bb7f055a6826e18eb78d417de4de8f24075ea904ebbf231ce
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Master
4
4
 
5
+ ## 0.2.0
6
+
7
+ * rubocop gem integrated
8
+
5
9
  ## 0.1.0
6
10
 
7
11
  * scss-lint gem integrated
data/README.md CHANGED
@@ -24,6 +24,7 @@ Or install it manually as:
24
24
 
25
25
  After adding the gem, the following Rake tasks become available:
26
26
 
27
+ rake lint:ruby
27
28
  rake lint:scss
28
29
 
29
30
  ## Contributing
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Lint
2
- VERSION = '0.1.0'
2
+ VERSION = '0.2.0'
3
3
  end
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.1.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-07 00:00:00.000000000 Z
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: