ramsey_cop 0.7.3 → 0.8.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 +4 -4
- data/Gemfile.lock +5 -5
- data/ISSUE_TEMPLATE.md +11 -0
- data/PULL_REQUEST_TEMPLATE.md +18 -0
- data/README.md +4 -1
- data/default.yml +5 -4
- data/lib/ramsey_cop/version.rb +1 -1
- data/ramsey_cop.gemspec +1 -1
- metadata +6 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fb9a090f59306b223fa87873b27340b2f4c2c58b
|
|
4
|
+
data.tar.gz: 4e7f8a4abdc9d076eb5fcae4fc6240c6121a8be1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0f5f69ad1af45422645a55671700ee572a3bb992dd67f7cc156e8ccd000c08a952209247e803752a3de661cde99e288e1c4b1de542cb2a5ca167e2bc50e7d991
|
|
7
|
+
data.tar.gz: 79441880c95e923a7a4c34b257de8e81bd2ccf9bc4e4f4870bb30ee632145c6a682c7c469539bb03613c062b41e7265a05babdd351a0f9df9648b7dc7757e734
|
data/Gemfile.lock
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
ramsey_cop (0.
|
|
5
|
-
rubocop (~> 0.
|
|
4
|
+
ramsey_cop (0.8.0)
|
|
5
|
+
rubocop (~> 0.54.0)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
8
8
|
remote: https://rubygems.org/
|
|
@@ -10,7 +10,7 @@ GEM
|
|
|
10
10
|
ast (2.4.0)
|
|
11
11
|
diff-lcs (1.3)
|
|
12
12
|
parallel (1.12.1)
|
|
13
|
-
parser (2.5.0.
|
|
13
|
+
parser (2.5.0.5)
|
|
14
14
|
ast (~> 2.4.0)
|
|
15
15
|
powerpack (0.1.1)
|
|
16
16
|
rainbow (3.0.0)
|
|
@@ -28,9 +28,9 @@ GEM
|
|
|
28
28
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
29
29
|
rspec-support (~> 3.6.0)
|
|
30
30
|
rspec-support (3.6.0)
|
|
31
|
-
rubocop (0.
|
|
31
|
+
rubocop (0.54.0)
|
|
32
32
|
parallel (~> 1.10)
|
|
33
|
-
parser (>= 2.
|
|
33
|
+
parser (>= 2.5)
|
|
34
34
|
powerpack (~> 0.1)
|
|
35
35
|
rainbow (>= 2.2.2, < 4.0)
|
|
36
36
|
ruby-progressbar (~> 1.7)
|
data/ISSUE_TEMPLATE.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
## Description of Proposed Changes
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Related Issue (if applicable)
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
## Your Testing Procedure
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## Types of Changes
|
|
11
|
+
(e.g. bug fix, new feature, breaking change, etc.)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## Check All that Apply
|
|
15
|
+
- [ ] These changes require an update to the documentation.
|
|
16
|
+
- [ ] Updates to the documentation have been made.
|
|
17
|
+
- [ ] The [CONTRIBUTING](CONTRIBUTING.md) document was read and followed.
|
|
18
|
+
- [ ] All new and existing tests pass.
|
data/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# RamseyCop
|
|
2
2
|
|
|
3
|
+
[](https://badge.fury.io/rb/ramsey_cop)
|
|
4
|
+
|
|
3
5
|
Inspired by https://blog.percy.io/share-rubocop-rules-across-all-of-your-repos-f3281fbd71f8
|
|
4
6
|
|
|
5
7
|
Ramsey shared style configs.
|
|
@@ -30,7 +32,7 @@ $ rails generate ramsey_cop
|
|
|
30
32
|
```
|
|
31
33
|
|
|
32
34
|
If you're not in a Rails app, you will need to create a `.rubocop.yml` with the following directives:
|
|
33
|
-
|
|
35
|
+
- Note: This will work locally, but will not work with CodeClimate. If you are using CodeClimate, see the documentation linked at the bottom of this page.
|
|
34
36
|
```yaml
|
|
35
37
|
inherit_gem:
|
|
36
38
|
ramsey_cop:
|
|
@@ -49,3 +51,4 @@ You do not need to include rubocop directly in your application's dependencies.
|
|
|
49
51
|
|
|
50
52
|
* [Introducing RamseyCop to an existing repository](/documentation/existing-repositories.md)
|
|
51
53
|
* [RamseyCop linting in Vim with ALE](/documentation/vim-tips.md)
|
|
54
|
+
* [Integrating RamseyCop with CodeClimate](/documentation/codeclimate-setup.md)
|
data/default.yml
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
AllCops:
|
|
2
|
+
Exclude:
|
|
3
|
+
- "db/schema.rb"
|
|
4
|
+
|
|
1
5
|
Documentation:
|
|
2
6
|
Enabled: false
|
|
3
7
|
|
|
@@ -13,6 +17,7 @@ Metrics/BlockLength:
|
|
|
13
17
|
Exclude:
|
|
14
18
|
- spec/**/*
|
|
15
19
|
- test/**/*
|
|
20
|
+
- "*.gemspec"
|
|
16
21
|
|
|
17
22
|
Metrics/BlockNesting:
|
|
18
23
|
Exclude:
|
|
@@ -62,10 +67,6 @@ Style/PercentLiteralDelimiters:
|
|
|
62
67
|
'%W': ()
|
|
63
68
|
'%x': ()
|
|
64
69
|
|
|
65
|
-
Style/RegexpLiteral:
|
|
66
|
-
EnforcedStyle: mixed
|
|
67
|
-
AllowInnerSlashes: true
|
|
68
|
-
|
|
69
70
|
Style/StringLiterals:
|
|
70
71
|
EnforcedStyle: double_quotes
|
|
71
72
|
Enabled: true
|
data/lib/ramsey_cop/version.rb
CHANGED
data/ramsey_cop.gemspec
CHANGED
|
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
|
19
19
|
spec.executables = spec.files.grep(/^exe\//) { |f| File.basename(f) }
|
|
20
20
|
spec.require_paths = ["lib"]
|
|
21
21
|
|
|
22
|
-
spec.add_dependency "rubocop", "~> 0.
|
|
22
|
+
spec.add_dependency "rubocop", "~> 0.54.0"
|
|
23
23
|
spec.add_development_dependency "bundler", "~> 1.14"
|
|
24
24
|
spec.add_development_dependency "rake", "~> 10.0"
|
|
25
25
|
spec.add_development_dependency "rspec", "~> 3.0"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ramsey_cop
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.8.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Rick Peyton
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: exe
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2018-
|
|
12
|
+
date: 2018-04-03 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rubocop
|
|
@@ -17,14 +17,14 @@ dependencies:
|
|
|
17
17
|
requirements:
|
|
18
18
|
- - "~>"
|
|
19
19
|
- !ruby/object:Gem::Version
|
|
20
|
-
version: 0.
|
|
20
|
+
version: 0.54.0
|
|
21
21
|
type: :runtime
|
|
22
22
|
prerelease: false
|
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
|
24
24
|
requirements:
|
|
25
25
|
- - "~>"
|
|
26
26
|
- !ruby/object:Gem::Version
|
|
27
|
-
version: 0.
|
|
27
|
+
version: 0.54.0
|
|
28
28
|
- !ruby/object:Gem::Dependency
|
|
29
29
|
name: bundler
|
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -85,7 +85,9 @@ files:
|
|
|
85
85
|
- Dockerfile
|
|
86
86
|
- Gemfile
|
|
87
87
|
- Gemfile.lock
|
|
88
|
+
- ISSUE_TEMPLATE.md
|
|
88
89
|
- LICENSE.txt
|
|
90
|
+
- PULL_REQUEST_TEMPLATE.md
|
|
89
91
|
- README.md
|
|
90
92
|
- Rakefile
|
|
91
93
|
- bin/console
|