lint84 0.1.0
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 +7 -0
- data/.gitignore +9 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +29 -0
- data/Rakefile +2 -0
- data/bin/lint84 +8 -0
- data/bin/lint84.sh +27 -0
- data/config/coffee.json +98 -0
- data/config/ruby.yml +238 -0
- data/config/scss.yml +146 -0
- data/lib/lint84.rb +5 -0
- data/lib/lint84/version.rb +3 -0
- data/lint84.gemspec +27 -0
- metadata +128 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 19d2035e3fe394347d8bf5972ac1316edf3b90b9
|
4
|
+
data.tar.gz: f0da43e42d2b92a34239bfef3c1b8d93cfa45287
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ac2d9baeb6febbe8414cf0028db4e42c7fc76a7e1ad34f2a3b6a52aee75382b17afe2bbb1f49e0f2ac788e6695833ef0dcabbb0c7d0fd6f366391fbbe45a47a4
|
7
|
+
data.tar.gz: 27d8543e80927a9f627d798292578977a9f923d1e1911b236f06024d398d08782608251c292d689381723734ed018ffc6b9f1c84cefe7657803bf0caf628185f
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Maksym Melnyk
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# Lint84
|
2
|
+
|
3
|
+
An all-in-one collection of code style checkers.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'lint84'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
## Usage
|
18
|
+
|
19
|
+
$ lint84
|
20
|
+
|
21
|
+
## Contributing
|
22
|
+
|
23
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/momelnyk/lint84.
|
24
|
+
|
25
|
+
|
26
|
+
## License
|
27
|
+
|
28
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
29
|
+
|
data/Rakefile
ADDED
data/bin/lint84
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
# Create ruby wrapper around non-ruby executable
|
4
|
+
# http://stackoverflow.com/questions/23701726/deploy-a-shell-script-with-ruby-gem-and-install-in-bin-directory
|
5
|
+
bin_dir = File.expand_path(File.dirname(__FILE__))
|
6
|
+
shell_script = File.join(bin_dir, 'lint84.sh')
|
7
|
+
|
8
|
+
exec shell_script
|
data/bin/lint84.sh
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
|
3
|
+
LINT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )"
|
4
|
+
PROJECT_DIR="$( pwd )"
|
5
|
+
|
6
|
+
# Debug
|
7
|
+
# PROJECT_DIR="../project_1"
|
8
|
+
|
9
|
+
FILES=$(git -C $PROJECT_DIR ls-files -om --exclude-standard | sed "s,^,$PROJECT_DIR/,")
|
10
|
+
RB_FILES=$(echo "${FILES}" | grep ".rb" )
|
11
|
+
SCSS_FILES=$(echo "${FILES}" | grep ".scss" )
|
12
|
+
COFFEE_FILES=$(echo "${FILES}" | grep ".coffee" )
|
13
|
+
|
14
|
+
if [ "$RB_FILES" != "" ]; then
|
15
|
+
echo ---------- RUBY ----------
|
16
|
+
rubocop -c $LINT_DIR/config/ruby.yml $RB_FILES
|
17
|
+
fi
|
18
|
+
|
19
|
+
if [ "$SCSS_FILES" != "" ]; then
|
20
|
+
echo ---------- SCSS ----------
|
21
|
+
scss-lint -c $LINT_DIR/config/scss.yml $SCSS_FILES
|
22
|
+
fi
|
23
|
+
|
24
|
+
if [ "$COFFEE_FILES" != "" ]; then
|
25
|
+
echo ---------- COFFEE ----------
|
26
|
+
coffeelint.rb -f $LINT_DIR/config/coffee.json $COFFEE_FILES
|
27
|
+
fi
|
data/config/coffee.json
ADDED
@@ -0,0 +1,98 @@
|
|
1
|
+
{
|
2
|
+
"arrow_spacing": {
|
3
|
+
"level": "error"
|
4
|
+
},
|
5
|
+
"camel_case_classes": {
|
6
|
+
"level": "error"
|
7
|
+
},
|
8
|
+
"coffeescript_error": {
|
9
|
+
"level": "error"
|
10
|
+
},
|
11
|
+
"colon_assignment_spacing": {
|
12
|
+
"level": "error",
|
13
|
+
"spacing": {
|
14
|
+
"left": 0,
|
15
|
+
"right": 1
|
16
|
+
}
|
17
|
+
},
|
18
|
+
"cyclomatic_complexity": {
|
19
|
+
"level": "ignore",
|
20
|
+
"value": 10
|
21
|
+
},
|
22
|
+
"duplicate_key": {
|
23
|
+
"level": "error"
|
24
|
+
},
|
25
|
+
"empty_constructor_needs_parens": {
|
26
|
+
"level": "ignore"
|
27
|
+
},
|
28
|
+
"indentation": {
|
29
|
+
"level": "error",
|
30
|
+
"value": 2
|
31
|
+
},
|
32
|
+
"line_endings": {
|
33
|
+
"level": "ignore",
|
34
|
+
"value": "unix"
|
35
|
+
},
|
36
|
+
"max_line_length": {
|
37
|
+
"level": "error",
|
38
|
+
"value": 80
|
39
|
+
},
|
40
|
+
"missing_fat_arrows": {
|
41
|
+
"level": "ignore"
|
42
|
+
},
|
43
|
+
"newlines_after_classes": {
|
44
|
+
"level": "error",
|
45
|
+
"value": 1
|
46
|
+
},
|
47
|
+
"no_backticks": {
|
48
|
+
"level": "ignore"
|
49
|
+
},
|
50
|
+
"no_debugger": {
|
51
|
+
"level": "error"
|
52
|
+
},
|
53
|
+
"no_empty_functions": {
|
54
|
+
"level": "error"
|
55
|
+
},
|
56
|
+
"no_empty_param_list": {
|
57
|
+
"level": "error"
|
58
|
+
},
|
59
|
+
"no_implicit_braces": {
|
60
|
+
"level": "ignore"
|
61
|
+
},
|
62
|
+
"no_implicit_parens": {
|
63
|
+
"level": "ignore"
|
64
|
+
},
|
65
|
+
"no_interpolation_in_single_quotes": {
|
66
|
+
"level": "error"
|
67
|
+
},
|
68
|
+
"no_plusplus": {
|
69
|
+
"level": "ignore"
|
70
|
+
},
|
71
|
+
"no_stand_alone_at": {
|
72
|
+
"level": "error"
|
73
|
+
},
|
74
|
+
"no_tabs": {
|
75
|
+
"level": "error"
|
76
|
+
},
|
77
|
+
"no_throwing_strings": {
|
78
|
+
"level": "error"
|
79
|
+
},
|
80
|
+
"no_trailing_semicolons": {
|
81
|
+
"level": "error"
|
82
|
+
},
|
83
|
+
"no_trailing_whitespace": {
|
84
|
+
"level": "error"
|
85
|
+
},
|
86
|
+
"no_unnecessary_double_quotes": {
|
87
|
+
"level": "ignore"
|
88
|
+
},
|
89
|
+
"no_unnecessary_fat_arrows": {
|
90
|
+
"level": "error"
|
91
|
+
},
|
92
|
+
"non_empty_constructor_needs_parens": {
|
93
|
+
"level": "ignore"
|
94
|
+
},
|
95
|
+
"space_operators": {
|
96
|
+
"level": "ignore"
|
97
|
+
}
|
98
|
+
}
|
data/config/ruby.yml
ADDED
@@ -0,0 +1,238 @@
|
|
1
|
+
Rails:
|
2
|
+
Enabled: true
|
3
|
+
AllCops:
|
4
|
+
Exclude:
|
5
|
+
- "vendor/**/*"
|
6
|
+
- "db/schema.rb"
|
7
|
+
UseCache: false
|
8
|
+
Style/CollectionMethods:
|
9
|
+
Description: Preferred collection methods.
|
10
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#map-find-select-reduce-size
|
11
|
+
Enabled: true
|
12
|
+
PreferredMethods:
|
13
|
+
collect: map
|
14
|
+
collect!: map!
|
15
|
+
find: detect
|
16
|
+
find_all: select
|
17
|
+
reduce: inject
|
18
|
+
Style/DotPosition:
|
19
|
+
Description: Checks the position of the dot in multi-line method calls.
|
20
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains
|
21
|
+
Enabled: true
|
22
|
+
EnforcedStyle: trailing
|
23
|
+
SupportedStyles:
|
24
|
+
- leading
|
25
|
+
- trailing
|
26
|
+
Style/FileName:
|
27
|
+
Description: Use snake_case for source file names.
|
28
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-files
|
29
|
+
Enabled: false
|
30
|
+
Exclude: []
|
31
|
+
Style/GuardClause:
|
32
|
+
Description: Check for conditionals that can be replaced with guard clauses
|
33
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals
|
34
|
+
Enabled: false
|
35
|
+
MinBodyLength: 1
|
36
|
+
Style/IfUnlessModifier:
|
37
|
+
Description: Favor modifier if/unless usage when you have a single-line body.
|
38
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier
|
39
|
+
Enabled: false
|
40
|
+
MaxLineLength: 80
|
41
|
+
Style/OptionHash:
|
42
|
+
Description: Don't use option hashes when you can use keyword arguments.
|
43
|
+
Enabled: false
|
44
|
+
Style/PercentLiteralDelimiters:
|
45
|
+
Description: Use `%`-literal delimiters consistently
|
46
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-literal-braces
|
47
|
+
Enabled: false
|
48
|
+
PreferredDelimiters:
|
49
|
+
"%": "()"
|
50
|
+
"%i": "()"
|
51
|
+
"%q": "()"
|
52
|
+
"%Q": "()"
|
53
|
+
"%r": "{}"
|
54
|
+
"%s": "()"
|
55
|
+
"%w": "()"
|
56
|
+
"%W": "()"
|
57
|
+
"%x": "()"
|
58
|
+
Style/PredicateName:
|
59
|
+
Description: Check the names of predicate methods.
|
60
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark
|
61
|
+
Enabled: true
|
62
|
+
NamePrefix:
|
63
|
+
- is_
|
64
|
+
- has_
|
65
|
+
- have_
|
66
|
+
NamePrefixBlacklist:
|
67
|
+
- is_
|
68
|
+
Exclude:
|
69
|
+
- spec/**/*
|
70
|
+
Style/RaiseArgs:
|
71
|
+
Description: Checks the arguments passed to raise/fail.
|
72
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#exception-class-messages
|
73
|
+
Enabled: false
|
74
|
+
EnforcedStyle: exploded
|
75
|
+
SupportedStyles:
|
76
|
+
- compact
|
77
|
+
- exploded
|
78
|
+
Style/SignalException:
|
79
|
+
Description: Checks for proper usage of fail and raise.
|
80
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#fail-method
|
81
|
+
Enabled: false
|
82
|
+
EnforcedStyle: semantic
|
83
|
+
SupportedStyles:
|
84
|
+
- only_raise
|
85
|
+
- only_fail
|
86
|
+
- semantic
|
87
|
+
Style/SingleLineBlockParams:
|
88
|
+
Description: Enforces the names of some block params.
|
89
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#reduce-blocks
|
90
|
+
Enabled: false
|
91
|
+
Methods:
|
92
|
+
- reduce:
|
93
|
+
- a
|
94
|
+
- e
|
95
|
+
- inject:
|
96
|
+
- a
|
97
|
+
- e
|
98
|
+
Style/SingleLineMethods:
|
99
|
+
Description: Avoid single-line methods.
|
100
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-single-line-methods
|
101
|
+
Enabled: false
|
102
|
+
AllowIfMethodIsEmpty: true
|
103
|
+
Style/StringLiterals:
|
104
|
+
Description: Checks if uses of quotes match the configured preference.
|
105
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-string-literals
|
106
|
+
Enabled: true
|
107
|
+
EnforcedStyle: double_quotes
|
108
|
+
SupportedStyles:
|
109
|
+
- single_quotes
|
110
|
+
- double_quotes
|
111
|
+
Style/StringLiteralsInInterpolation:
|
112
|
+
Description: Checks if uses of quotes inside expressions in interpolated strings
|
113
|
+
match the configured preference.
|
114
|
+
Enabled: true
|
115
|
+
EnforcedStyle: single_quotes
|
116
|
+
SupportedStyles:
|
117
|
+
- single_quotes
|
118
|
+
- double_quotes
|
119
|
+
Style/TrailingCommaInArguments:
|
120
|
+
Description: Checks for trailing comma in parameter lists and literals.
|
121
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas
|
122
|
+
Enabled: false
|
123
|
+
EnforcedStyleForMultiline: no_comma
|
124
|
+
SupportedStyles:
|
125
|
+
- comma
|
126
|
+
- no_comma
|
127
|
+
Metrics/AbcSize:
|
128
|
+
Description: A calculated magnitude based on number of assignments, branches, and
|
129
|
+
conditions.
|
130
|
+
Enabled: false
|
131
|
+
Max: 15
|
132
|
+
Metrics/ClassLength:
|
133
|
+
Description: Avoid classes longer than 100 lines of code.
|
134
|
+
Enabled: false
|
135
|
+
CountComments: false
|
136
|
+
Max: 100
|
137
|
+
Metrics/ModuleLength:
|
138
|
+
CountComments: false
|
139
|
+
Max: 100
|
140
|
+
Description: Avoid modules longer than 100 lines of code.
|
141
|
+
Enabled: false
|
142
|
+
Metrics/CyclomaticComplexity:
|
143
|
+
Description: A complexity metric that is strongly correlated to the number of test
|
144
|
+
cases needed to validate a method.
|
145
|
+
Enabled: false
|
146
|
+
Max: 6
|
147
|
+
Metrics/MethodLength:
|
148
|
+
Description: Avoid methods longer than 10 lines of code.
|
149
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#short-methods
|
150
|
+
Enabled: false
|
151
|
+
CountComments: false
|
152
|
+
Max: 10
|
153
|
+
Metrics/ParameterLists:
|
154
|
+
Description: Avoid parameter lists longer than three or four parameters.
|
155
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#too-many-params
|
156
|
+
Enabled: false
|
157
|
+
Max: 5
|
158
|
+
CountKeywordArgs: true
|
159
|
+
Metrics/PerceivedComplexity:
|
160
|
+
Description: A complexity metric geared towards measuring complexity for a human
|
161
|
+
reader.
|
162
|
+
Enabled: false
|
163
|
+
Max: 7
|
164
|
+
Lint/AssignmentInCondition:
|
165
|
+
Description: Don't use assignment in conditions.
|
166
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition
|
167
|
+
Enabled: false
|
168
|
+
AllowSafeAssignment: true
|
169
|
+
Style/InlineComment:
|
170
|
+
Description: Avoid inline comments.
|
171
|
+
Enabled: false
|
172
|
+
Style/AccessorMethodName:
|
173
|
+
Description: Check the naming of accessor methods for get_/set_.
|
174
|
+
Enabled: false
|
175
|
+
Style/Alias:
|
176
|
+
Description: Use alias_method instead of alias.
|
177
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#alias-method
|
178
|
+
Enabled: false
|
179
|
+
Style/Documentation:
|
180
|
+
Description: Document classes and non-namespace modules.
|
181
|
+
Enabled: false
|
182
|
+
Style/DoubleNegation:
|
183
|
+
Description: Checks for uses of double negation (!!).
|
184
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-bang-bang
|
185
|
+
Enabled: false
|
186
|
+
Style/EachWithObject:
|
187
|
+
Description: Prefer `each_with_object` over `inject` or `reduce`.
|
188
|
+
Enabled: false
|
189
|
+
Style/EmptyLiteral:
|
190
|
+
Description: Prefer literals to Array.new/Hash.new/String.new.
|
191
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#literal-array-hash
|
192
|
+
Enabled: false
|
193
|
+
Style/ModuleFunction:
|
194
|
+
Description: Checks for usage of `extend self` in modules.
|
195
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#module-function
|
196
|
+
Enabled: false
|
197
|
+
Style/OneLineConditional:
|
198
|
+
Description: Favor the ternary operator(?:) over if/then/else/end constructs.
|
199
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#ternary-operator
|
200
|
+
Enabled: false
|
201
|
+
Style/PerlBackrefs:
|
202
|
+
Description: Avoid Perl-style regex back references.
|
203
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers
|
204
|
+
Enabled: false
|
205
|
+
Style/Send:
|
206
|
+
Description: Prefer `Object#__send__` or `Object#public_send` to `send`, as `send`
|
207
|
+
may overlap with existing methods.
|
208
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#prefer-public-send
|
209
|
+
Enabled: false
|
210
|
+
Style/SpecialGlobalVars:
|
211
|
+
Description: Avoid Perl-style global variables.
|
212
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms
|
213
|
+
Enabled: false
|
214
|
+
Style/VariableInterpolation:
|
215
|
+
Description: Don't interpolate global, instance and class variables directly in
|
216
|
+
strings.
|
217
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#curlies-interpolate
|
218
|
+
Enabled: false
|
219
|
+
Style/WhenThen:
|
220
|
+
Description: Use when x then ... for one-line cases.
|
221
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#one-line-cases
|
222
|
+
Enabled: false
|
223
|
+
Lint/EachWithObjectArgument:
|
224
|
+
Description: Check for immutable argument given to each_with_object.
|
225
|
+
Enabled: true
|
226
|
+
Lint/HandleExceptions:
|
227
|
+
Description: Don't suppress exception.
|
228
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions
|
229
|
+
Enabled: false
|
230
|
+
Lint/LiteralInCondition:
|
231
|
+
Description: Checks of literals used in conditions.
|
232
|
+
Enabled: false
|
233
|
+
Lint/LiteralInInterpolation:
|
234
|
+
Description: Checks for literals used in interpolation.
|
235
|
+
Enabled: false
|
236
|
+
Rails/FindBy:
|
237
|
+
Description: 'Prefer find_by over where.first.'
|
238
|
+
Enabled: false
|
data/config/scss.yml
ADDED
@@ -0,0 +1,146 @@
|
|
1
|
+
scss_files: "**/*.scss"
|
2
|
+
plugin_directories: ['.scss-linters']
|
3
|
+
linters:
|
4
|
+
BangFormat:
|
5
|
+
enabled: true
|
6
|
+
space_before_bang: true
|
7
|
+
space_after_bang: false
|
8
|
+
BorderZero:
|
9
|
+
enabled: false
|
10
|
+
convention: zero
|
11
|
+
ColorKeyword:
|
12
|
+
enabled: true
|
13
|
+
severity: warning
|
14
|
+
ColorVariable:
|
15
|
+
enabled: true
|
16
|
+
Comment:
|
17
|
+
enabled: true
|
18
|
+
DebugStatement:
|
19
|
+
enabled: true
|
20
|
+
DeclarationOrder:
|
21
|
+
enabled: true
|
22
|
+
DuplicateProperty:
|
23
|
+
enabled: true
|
24
|
+
ElsePlacement:
|
25
|
+
enabled: true
|
26
|
+
style: same_line
|
27
|
+
EmptyLineBetweenBlocks:
|
28
|
+
enabled: true
|
29
|
+
ignore_single_line_blocks: true
|
30
|
+
EmptyRule:
|
31
|
+
enabled: true
|
32
|
+
FinalNewline:
|
33
|
+
enabled: true
|
34
|
+
present: true
|
35
|
+
HexLength:
|
36
|
+
enabled: false
|
37
|
+
style: short
|
38
|
+
HexNotation:
|
39
|
+
enabled: true
|
40
|
+
style: lowercase
|
41
|
+
HexValidation:
|
42
|
+
enabled: true
|
43
|
+
IdSelector:
|
44
|
+
enabled: true
|
45
|
+
ImportantRule:
|
46
|
+
enabled: true
|
47
|
+
ImportPath:
|
48
|
+
enabled: true
|
49
|
+
leading_underscore: false
|
50
|
+
filename_extension: false
|
51
|
+
Indentation:
|
52
|
+
enabled: true
|
53
|
+
allow_non_nested_indentation: false
|
54
|
+
character: space
|
55
|
+
width: 2
|
56
|
+
LeadingZero:
|
57
|
+
enabled: true
|
58
|
+
style: include_zero
|
59
|
+
MergeableSelector:
|
60
|
+
enabled: true
|
61
|
+
force_nesting: true
|
62
|
+
NameFormat:
|
63
|
+
enabled: true
|
64
|
+
allow_leading_underscore: true
|
65
|
+
convention: hyphenated_lowercase
|
66
|
+
NestingDepth:
|
67
|
+
enabled: true
|
68
|
+
max_depth: 4
|
69
|
+
severity: warning
|
70
|
+
PlaceholderInExtend:
|
71
|
+
enabled: false
|
72
|
+
PropertyCount:
|
73
|
+
enabled: true
|
74
|
+
include_nested: false
|
75
|
+
max_properties: 10
|
76
|
+
PropertySortOrder:
|
77
|
+
enabled: true
|
78
|
+
ignore_unspecified: false
|
79
|
+
severity: warning
|
80
|
+
separate_groups: false
|
81
|
+
PropertySpelling:
|
82
|
+
enabled: true
|
83
|
+
extra_properties: []
|
84
|
+
QualifyingElement:
|
85
|
+
enabled: true
|
86
|
+
allow_element_with_attribute: false
|
87
|
+
allow_element_with_class: false
|
88
|
+
allow_element_with_id: false
|
89
|
+
severity: warning
|
90
|
+
SelectorDepth:
|
91
|
+
enabled: true
|
92
|
+
max_depth: 2
|
93
|
+
severity: warning
|
94
|
+
SelectorFormat:
|
95
|
+
enabled: true
|
96
|
+
convention: hyphenated_lowercase
|
97
|
+
Shorthand:
|
98
|
+
enabled: true
|
99
|
+
severity: warning
|
100
|
+
SingleLinePerProperty:
|
101
|
+
enabled: true
|
102
|
+
allow_single_line_rule_sets: true
|
103
|
+
SingleLinePerSelector:
|
104
|
+
enabled: true
|
105
|
+
SpaceAfterComma:
|
106
|
+
enabled: true
|
107
|
+
SpaceAfterPropertyColon:
|
108
|
+
enabled: true
|
109
|
+
style: one_space
|
110
|
+
SpaceAfterPropertyName:
|
111
|
+
enabled: true
|
112
|
+
SpaceBeforeBrace:
|
113
|
+
enabled: true
|
114
|
+
style: space
|
115
|
+
allow_single_line_padding: false
|
116
|
+
SpaceBetweenParens:
|
117
|
+
enabled: true
|
118
|
+
spaces: 0
|
119
|
+
StringQuotes:
|
120
|
+
enabled: true
|
121
|
+
style: double_quotes
|
122
|
+
TrailingSemicolon:
|
123
|
+
enabled: true
|
124
|
+
TrailingZero:
|
125
|
+
enabled: false
|
126
|
+
UnnecessaryMantissa:
|
127
|
+
enabled: true
|
128
|
+
UnnecessaryParentReference:
|
129
|
+
enabled: true
|
130
|
+
UrlFormat:
|
131
|
+
enabled: true
|
132
|
+
UrlQuotes:
|
133
|
+
enabled: true
|
134
|
+
VariableForProperty:
|
135
|
+
enabled: false
|
136
|
+
properties: []
|
137
|
+
VendorPrefixes:
|
138
|
+
enabled: true
|
139
|
+
identifier_list: bourbon
|
140
|
+
include: []
|
141
|
+
exclude: []
|
142
|
+
ZeroUnit:
|
143
|
+
enabled: true
|
144
|
+
severity: warning
|
145
|
+
Compass::PropertyWithMixin:
|
146
|
+
enabled: false
|
data/lib/lint84.rb
ADDED
data/lint84.gemspec
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'lint84/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "lint84"
|
8
|
+
spec.version = Lint84::VERSION
|
9
|
+
spec.authors = ["Maksym Melnyk"]
|
10
|
+
spec.email = ["momelnyk@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{An all-in-one collection of code style checkers.}
|
13
|
+
spec.homepage = "https://github.com/momelnyk/lint84"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0")
|
17
|
+
# spec.bindir = "bin"
|
18
|
+
spec.executables = ["lint84"]
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.11"
|
22
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
23
|
+
|
24
|
+
spec.add_development_dependency 'rubocop', '~> 0.36.0'
|
25
|
+
spec.add_development_dependency 'scss_lint'
|
26
|
+
spec.add_development_dependency 'coffeelint'
|
27
|
+
end
|
metadata
ADDED
@@ -0,0 +1,128 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: lint84
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Maksym Melnyk
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-02-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.11'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.11'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.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.36.0
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.36.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: scss_lint
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: coffeelint
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
description:
|
84
|
+
email:
|
85
|
+
- momelnyk@gmail.com
|
86
|
+
executables:
|
87
|
+
- lint84
|
88
|
+
extensions: []
|
89
|
+
extra_rdoc_files: []
|
90
|
+
files:
|
91
|
+
- ".gitignore"
|
92
|
+
- Gemfile
|
93
|
+
- LICENSE.txt
|
94
|
+
- README.md
|
95
|
+
- Rakefile
|
96
|
+
- bin/lint84
|
97
|
+
- bin/lint84.sh
|
98
|
+
- config/coffee.json
|
99
|
+
- config/ruby.yml
|
100
|
+
- config/scss.yml
|
101
|
+
- lib/lint84.rb
|
102
|
+
- lib/lint84/version.rb
|
103
|
+
- lint84.gemspec
|
104
|
+
homepage: https://github.com/momelnyk/lint84
|
105
|
+
licenses:
|
106
|
+
- MIT
|
107
|
+
metadata: {}
|
108
|
+
post_install_message:
|
109
|
+
rdoc_options: []
|
110
|
+
require_paths:
|
111
|
+
- lib
|
112
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - ">="
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '0'
|
117
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
118
|
+
requirements:
|
119
|
+
- - ">="
|
120
|
+
- !ruby/object:Gem::Version
|
121
|
+
version: '0'
|
122
|
+
requirements: []
|
123
|
+
rubyforge_project:
|
124
|
+
rubygems_version: 2.5.1
|
125
|
+
signing_key:
|
126
|
+
specification_version: 4
|
127
|
+
summary: An all-in-one collection of code style checkers.
|
128
|
+
test_files: []
|