rubocop-cru 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +9 -0
- data/README.md +42 -0
- data/config/cru.yml +47 -0
- metadata +104 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 63e1c792e78d10e8d6145b0bfe9243a1372482e4
|
4
|
+
data.tar.gz: 9570108efae6cf7702b55396539827600e40b700
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 0af4e4adc78cd89e8589bdcd92dabcdb6d2cf57ed91bcf166cc1f18634fe409f3ea3a37513ed1d93553191567475918e3d167ebaeb47dadc74215cf0836a1c57
|
7
|
+
data.tar.gz: 47c8dc59d6150b799be7f601d70b0cfc55ef45349916371037d4ddc4ac351cbdb12b600cc142b3ebbfd84f9ab2cf1cbbb07e1905ccfa34cab4dbef1b5f18d610
|
data/LICENSE
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Cru
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
6
|
+
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
8
|
+
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
# RuboCop Cru
|
2
|
+
|
3
|
+
RuboCop configuration shared across Cru applications.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's `Gemfile`:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'rubocop-cru'
|
11
|
+
```
|
12
|
+
|
13
|
+
## Usage
|
14
|
+
|
15
|
+
Add this line to your application's `.rubocop.yml`:
|
16
|
+
|
17
|
+
```yml
|
18
|
+
inherit_gem:
|
19
|
+
rubocop-cru:
|
20
|
+
- config/cru.yml
|
21
|
+
```
|
22
|
+
|
23
|
+
## Customization
|
24
|
+
|
25
|
+
If you'd like to customize the rubocop setting, you can override it.
|
26
|
+
|
27
|
+
For example, if you want to change `TargetRubyVersion`, you can do it like:
|
28
|
+
|
29
|
+
```yml
|
30
|
+
inherit_gem:
|
31
|
+
rubocop-cru:
|
32
|
+
- config/cru.yml
|
33
|
+
|
34
|
+
AllCops:
|
35
|
+
TargetRubyVersion: 2.3
|
36
|
+
```
|
37
|
+
|
38
|
+
This overrides `config/cru.yml` setting with `TargetRubyVersion: 2.3`.
|
39
|
+
|
40
|
+
## License
|
41
|
+
|
42
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/config/cru.yml
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
AllCops:
|
2
|
+
Include:
|
3
|
+
- Rakefile
|
4
|
+
- config.ru
|
5
|
+
Exclude:
|
6
|
+
- db/**/*
|
7
|
+
- script/**/*
|
8
|
+
- vendor/**/*
|
9
|
+
- bin/**/*
|
10
|
+
|
11
|
+
TargetRubyVersion: 2.4
|
12
|
+
UseCache: true
|
13
|
+
CacheRootDirectory: 'tmp/cache/'
|
14
|
+
DisplayCopNames: true
|
15
|
+
|
16
|
+
Rails:
|
17
|
+
Enabled: true
|
18
|
+
|
19
|
+
Documentation:
|
20
|
+
Enabled: false
|
21
|
+
|
22
|
+
MethodLength:
|
23
|
+
Severity: warning
|
24
|
+
Max: 15
|
25
|
+
|
26
|
+
Style/AndOr:
|
27
|
+
Enabled: false
|
28
|
+
|
29
|
+
Metrics/LineLength:
|
30
|
+
Max: 120
|
31
|
+
|
32
|
+
Metrics/BlockLength:
|
33
|
+
Exclude:
|
34
|
+
- spec/**/*
|
35
|
+
- config/routes.rb
|
36
|
+
|
37
|
+
GuardClause:
|
38
|
+
MinBodyLength: 3
|
39
|
+
|
40
|
+
Style/Lambda:
|
41
|
+
Exclude:
|
42
|
+
- config/**/*
|
43
|
+
|
44
|
+
Naming/FileName:
|
45
|
+
Exclude:
|
46
|
+
- Gemfile
|
47
|
+
- Guardfile
|
metadata
ADDED
@@ -0,0 +1,104 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rubocop-cru
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Brian Zoetewey
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-09-20 00:00:00.000000000 Z
|
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.49'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.49'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: minitest
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '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'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
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
|
+
description: RuboCop configuration shared across Cru applications
|
70
|
+
email:
|
71
|
+
- brian.zoetewey@cru.org
|
72
|
+
executables: []
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files: []
|
75
|
+
files:
|
76
|
+
- LICENSE
|
77
|
+
- README.md
|
78
|
+
- config/cru.yml
|
79
|
+
homepage: https://github.com/CruGlobal/rubocop-cru
|
80
|
+
licenses:
|
81
|
+
- MIT
|
82
|
+
metadata: {}
|
83
|
+
post_install_message:
|
84
|
+
rdoc_options: []
|
85
|
+
require_paths:
|
86
|
+
- lib
|
87
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - ">="
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: 2.3.0
|
92
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
requirements: []
|
98
|
+
rubyforge_project:
|
99
|
+
rubygems_version: 2.6.11
|
100
|
+
signing_key:
|
101
|
+
specification_version: 4
|
102
|
+
summary: RuboCop configuration shared across Cru applications
|
103
|
+
test_files: []
|
104
|
+
has_rdoc:
|