lint 0.2.0 → 0.3.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: f1a881525900fd2a507511fdc18d53804eca6dae
4
- data.tar.gz: 50b84a22874724233055ae3ffb08b07f5a1606d7
3
+ metadata.gz: a06de28e1c75795f5013cc6e8ae38ed4a87c5a33
4
+ data.tar.gz: e7e63528420e0217879718d5f439d8af33be363f
5
5
  SHA512:
6
- metadata.gz: d72c8e081afa3d8d8f4487018913d00ad8a8c4c9dbb523c02e66274609453526fbd12fa499dc9d48865e193f0d986ad26104c159a9119dc65fe717ff3cf39ce7
7
- data.tar.gz: 910a49c1b76ebe14070493bccdddc762955aa032833ad94daf8e6c2a6fb42fd976c089f14997b78bb7f055a6826e18eb78d417de4de8f24075ea904ebbf231ce
6
+ metadata.gz: e3a74a54c362b7a3a8d7866c122c6f0578ed6b9b64a776d436c25c302d0dcdd1f40bc032ceb7899a28671b4ed15e04ac6255bd3031b45ed185e2f77283069c8d
7
+ data.tar.gz: 5dd3a7129c143d76928640e3c08220b2c8836a79f42a3dd76bff04804329aa9f5bb83635488e89fcc12b9658ea15225858dd7c2ea477d60735359fb593f4dd4c
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Master
4
4
 
5
+ ## 0.3.0
6
+
7
+ * coffeelint gem integrated
8
+
5
9
  ## 0.2.0
6
10
 
7
11
  * rubocop gem integrated
data/README.md CHANGED
@@ -6,6 +6,8 @@ Made primarily for internal use.
6
6
 
7
7
  Currently only works with Rails because it uses Railties.
8
8
 
9
+ [![Gem Version](https://badge.fury.io/rb/lint.svg)](http://badge.fury.io/rb/lint)
10
+
9
11
  ## Installation
10
12
 
11
13
  Add this line to your application's Gemfile (in the development/test group):
@@ -24,6 +26,7 @@ Or install it manually as:
24
26
 
25
27
  After adding the gem, the following Rake tasks become available:
26
28
 
29
+ rake lint:coffeescript
27
30
  rake lint:ruby
28
31
  rake lint:scss
29
32
 
@@ -0,0 +1,120 @@
1
+ {
2
+ "arrow_spacing": {
3
+ "level": "error"
4
+ },
5
+ "braces_spacing": {
6
+ "spaces": 1,
7
+ "empty_object_spaces": 0,
8
+ "level": "error"
9
+ },
10
+ "camel_case_classes": {
11
+ "level": "error"
12
+ },
13
+ "coffeescript_error": {
14
+ "level": "error"
15
+ },
16
+ "colon_assignment_spacing": {
17
+ "level": "ignore",
18
+ "spacing": {
19
+ "left": 0,
20
+ "right": 0
21
+ }
22
+ },
23
+ "cyclomatic_complexity": {
24
+ "value": 10,
25
+ "level": "ignore"
26
+ },
27
+ "duplicate_key": {
28
+ "level": "error"
29
+ },
30
+ "empty_constructor_needs_parens": {
31
+ "level": "ignore"
32
+ },
33
+ "ensure_comprehensions": {
34
+ "level": "warn"
35
+ },
36
+ "indentation": {
37
+ "value": 2,
38
+ "level": "error"
39
+ },
40
+ "line_endings": {
41
+ "level": "error",
42
+ "value": "unix"
43
+ },
44
+ "max_line_length": {
45
+ "value": 155,
46
+ "level": "error",
47
+ "limitComments": true
48
+ },
49
+ "missing_fat_arrows": {
50
+ "level": "ignore"
51
+ },
52
+ "newlines_after_classes": {
53
+ "value": 3,
54
+ "level": "ignore"
55
+ },
56
+ "no_backticks": {
57
+ "level": "error"
58
+ },
59
+ "no_debugger": {
60
+ "level": "error"
61
+ },
62
+ "no_empty_functions": {
63
+ "level": "ignore"
64
+ },
65
+ "no_empty_param_list": {
66
+ "level": "error"
67
+ },
68
+ "no_implicit_braces": {
69
+ "level": "ignore",
70
+ "strict": true
71
+ },
72
+ "no_implicit_parens": {
73
+ "strict": true,
74
+ "level": "ignore"
75
+ },
76
+ "no_interpolation_in_single_quotes": {
77
+ "level": "error"
78
+ },
79
+ "no_plusplus": {
80
+ "level": "ignore"
81
+ },
82
+ "no_stand_alone_at": {
83
+ "level": "error"
84
+ },
85
+ "no_tabs": {
86
+ "level": "error"
87
+ },
88
+ "no_throwing_strings": {
89
+ "level": "error"
90
+ },
91
+ "no_trailing_semicolons": {
92
+ "level": "error"
93
+ },
94
+ "no_trailing_whitespace": {
95
+ "level": "error",
96
+ "allowed_in_comments": false,
97
+ "allowed_in_empty_lines": true
98
+ },
99
+ "no_unnecessary_double_quotes": {
100
+ "level": "ignore"
101
+ },
102
+ "no_unnecessary_fat_arrows": {
103
+ "level": "error"
104
+ },
105
+ "non_empty_constructor_needs_parens": {
106
+ "level": "ignore"
107
+ },
108
+ "prefer_english_operator": {
109
+ "level": "ignore"
110
+ },
111
+ "space_operators": {
112
+ "level": "error"
113
+ },
114
+ "spacing_after_comma": {
115
+ "level": "error"
116
+ },
117
+ "transform_messes_up_line_numbers": {
118
+ "level": "error"
119
+ }
120
+ }
data/lib/lint/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lint
2
- VERSION = '0.2.0'
2
+ VERSION = '0.3.0'
3
3
  end
data/lib/tasks/lint.rake CHANGED
@@ -1,3 +1,4 @@
1
+ require 'coffeelint'
1
2
  require 'rubocop/rake_task'
2
3
 
3
4
  namespace :lint do
@@ -15,6 +16,11 @@ namespace :lint do
15
16
  task.options = ['--config', config('rubocop.yml')]
16
17
  end
17
18
 
19
+ desc 'Run Coffeelint quality checks'
20
+ task :coffeescript do
21
+ exit(1) unless Coffeelint.run_test_suite('app/assets/javascripts', config_file: config('coffeelint.json'))
22
+ end
23
+
18
24
  def config(file)
19
25
  File.realdirpath("#{__FILE__}/../../../config/#{file}")
20
26
  end
data/lint.gemspec CHANGED
@@ -16,8 +16,9 @@ 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'
20
- spec.add_dependency 'scss-lint', '~> 0.38.0'
19
+ spec.add_dependency 'coffeelint', '~> 1.9'
20
+ spec.add_dependency 'rubocop', '~> 0.31'
21
+ spec.add_dependency 'scss-lint', '~> 0.38'
21
22
 
22
23
  spec.add_development_dependency 'bundler', '~> 1.7'
23
24
  spec.add_development_dependency 'rake', '~> 10.0'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthias Siegel
@@ -10,34 +10,48 @@ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2015-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: coffeelint
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.9'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.9'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: rubocop
15
29
  requirement: !ruby/object:Gem::Requirement
16
30
  requirements:
17
31
  - - "~>"
18
32
  - !ruby/object:Gem::Version
19
- version: 0.31.0
33
+ version: '0.31'
20
34
  type: :runtime
21
35
  prerelease: false
22
36
  version_requirements: !ruby/object:Gem::Requirement
23
37
  requirements:
24
38
  - - "~>"
25
39
  - !ruby/object:Gem::Version
26
- version: 0.31.0
40
+ version: '0.31'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: scss-lint
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
45
  - - "~>"
32
46
  - !ruby/object:Gem::Version
33
- version: 0.38.0
47
+ version: '0.38'
34
48
  type: :runtime
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
52
  - - "~>"
39
53
  - !ruby/object:Gem::Version
40
- version: 0.38.0
54
+ version: '0.38'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: bundler
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -79,6 +93,7 @@ files:
79
93
  - LICENSE.md
80
94
  - README.md
81
95
  - Rakefile
96
+ - config/coffeelint.json
82
97
  - config/rubocop.yml
83
98
  - config/scss-lint.yml
84
99
  - lib/lint.rb