sanelint 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -26
- data/config/default.yml +18 -1
- data/lib/sanelint/version.rb +1 -1
- data/sanelint.gemspec +2 -2
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5223dccaccadbe878df6044b06052268b6b23180
|
4
|
+
data.tar.gz: da3a491aa265a2c13c66d3c5fb3eb1bd12cbc5b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46e3a7795c5b1300de788ef1e4918f5fad0c5dbbeabe71592f402b0dd9a08375f76e71761a646fa2caa8fcecf0270e99b4e3cdcc0e674ed8502ab4374961314b
|
7
|
+
data.tar.gz: 53ed296993e55357b96cdb36f88673e42448680a3f82acb339bf9f7de238a9456ebab4f2a107386fadf9575d691399a11bf5df03aacb7b7d28199b08937c69e3
|
data/README.md
CHANGED
@@ -7,6 +7,8 @@ This gem encapsulate rubocop config for [Monterail](monterail.com).
|
|
7
7
|
Add this line to your application's Gemfile:
|
8
8
|
|
9
9
|
```ruby
|
10
|
+
# You don't need to install Rubocop or Rubocop-Rspec - they are added as this gem dependency to
|
11
|
+
# prevent config from being incompatibile with installed Rubocop version.
|
10
12
|
gem 'sanelint'
|
11
13
|
```
|
12
14
|
|
@@ -14,37 +16,15 @@ And then execute:
|
|
14
16
|
|
15
17
|
$ bundle
|
16
18
|
|
17
|
-
|
18
|
-
|
19
|
-
$ gem install sanelint
|
20
|
-
|
21
|
-
## Usage
|
22
|
-
|
23
|
-
You need to tell RuboCop to load the Sanelint config. There are three ways to do this:
|
24
|
-
|
25
|
-
### RuboCop configuration file
|
26
|
-
|
27
|
-
Put this into your `.rubocop.yml`:
|
19
|
+
After that you need to add `sanelint` as plugin for Rubocop in your `.rubocop.yml`:
|
28
20
|
|
29
21
|
```yaml
|
30
|
-
require:
|
22
|
+
require: sanelint
|
31
23
|
```
|
32
24
|
|
33
|
-
|
34
|
-
|
35
|
-
### Command line
|
25
|
+
or create a new one:
|
36
26
|
|
37
|
-
|
38
|
-
rubocop --require rubocop-cask
|
39
|
-
```
|
40
|
-
|
41
|
-
### Rake task
|
42
|
-
|
43
|
-
```ruby
|
44
|
-
RuboCop::RakeTask.new do |task|
|
45
|
-
task.requires << 'rubocop-cask'
|
46
|
-
end
|
47
|
-
```
|
27
|
+
$ echo "require: sanelint" > .rubocop.yml
|
48
28
|
|
49
29
|
## Development
|
50
30
|
|
data/config/default.yml
CHANGED
@@ -60,6 +60,23 @@ Style/ParallelAssignment:
|
|
60
60
|
Style/Lambda:
|
61
61
|
Enabled: false
|
62
62
|
|
63
|
+
#not appliable for rails<5
|
64
|
+
Rails/HttpPositionalArguments:
|
65
|
+
Enabled: false
|
66
|
+
|
67
|
+
#not appliable for ruby<2.4
|
68
|
+
Lint/UnifiedInteger:
|
69
|
+
Enabled: false
|
70
|
+
|
71
|
+
Rails/SkipsModelValidations:
|
72
|
+
Enabled: false
|
73
|
+
|
74
|
+
Style/SafeNavigation:
|
75
|
+
Enabled: false
|
76
|
+
|
77
|
+
Bundler/OrderedGems:
|
78
|
+
Enabled: false
|
79
|
+
|
63
80
|
|
64
81
|
Metrics/LineLength:
|
65
82
|
Max: 100
|
@@ -72,7 +89,7 @@ Metrics/ModuleLength:
|
|
72
89
|
|
73
90
|
|
74
91
|
Lint/EndAlignment:
|
75
|
-
|
92
|
+
EnforcedStyleAlignWith: variable
|
76
93
|
|
77
94
|
Lint/AssignmentInCondition:
|
78
95
|
Enabled: false
|
data/lib/sanelint/version.rb
CHANGED
data/sanelint.gemspec
CHANGED
@@ -18,8 +18,8 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_runtime_dependency "rubocop", "~> 0.
|
22
|
-
spec.add_runtime_dependency "rubocop-rspec", "~> 1.
|
21
|
+
spec.add_runtime_dependency "rubocop", "~> 0.47.0"
|
22
|
+
spec.add_runtime_dependency "rubocop-rspec", "~> 1.13.0"
|
23
23
|
|
24
24
|
spec.add_development_dependency "bundler", "~> 1.10"
|
25
25
|
spec.add_development_dependency "rake", "~> 10.0"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sanelint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michał Simka
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.47.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.47.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rubocop-rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: 1.13.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.
|
40
|
+
version: 1.13.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,3 +108,4 @@ signing_key:
|
|
108
108
|
specification_version: 4
|
109
109
|
summary: Gem to encapsulate Monterail's company-wide rubocop setup.
|
110
110
|
test_files: []
|
111
|
+
has_rdoc:
|