meowcop 1.8.0 → 1.9.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/README.md +29 -4
- data/config/rubocop.yml +3 -0
- data/exe/meowcop +0 -0
- data/lib/meowcop/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 156c890c33f21229f8cfd4affac0903a45b95c65
|
|
4
|
+
data.tar.gz: f413fe6c0ebb3fcadb42c49f2d4466eb42ac4f84
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 43ba12bddcb33e7e2dc034b8faa9c495b6d432cda2df09d688af95732220a7e10ef15274a173dfd4b11a0dd666cd30c9d201a23a9abc86f3685d8fb4e7501dcc
|
|
7
|
+
data.tar.gz: f88fcbe33e596a34754db21906cd1f8eafe49a92348b947fff8c7e868368adfc10393509a1453e2035c139b7fc7195961a0e599c330964826598a3971dd37ba9
|
data/README.md
CHANGED
|
@@ -2,10 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://badge.fury.io/rb/meowcop)
|
|
4
4
|
|
|
5
|
-
MeowCop is a RuboCop configuration
|
|
5
|
+
MeowCop is a gem for RuboCop configuration, it focuses **Lint**.
|
|
6
|
+
It's recommended by Actcat inc.
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## Design
|
|
10
|
+
|
|
11
|
+
RuboCop has many style cops. Style cops provide one of several settings.
|
|
12
|
+
So, sometime we get many many warnings when we introduce RuboCop. The cause is a mismatch between RuboCop's default setting and your project coding style.
|
|
6
13
|
|
|
7
14
|
In the configuration, style rules are disabled. Because the rules almost for project specific.
|
|
8
|
-
|
|
15
|
+
If you use, you can use RuboCop as a Linter without many noisy warnings.
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
If you want to use RuboCop as a style checker, we recommend [Gry](https://github.com/pocke/gry).
|
|
9
19
|
|
|
10
20
|
## Installation
|
|
11
21
|
|
|
@@ -25,12 +35,26 @@ Or install it yourself as:
|
|
|
25
35
|
|
|
26
36
|
## Configuration
|
|
27
37
|
|
|
28
|
-
|
|
38
|
+
MeowCop provides a CLI tool to initialise `.rubocop.yml`
|
|
29
39
|
|
|
30
|
-
```
|
|
40
|
+
```ruby
|
|
41
|
+
$ meowcop init
|
|
42
|
+
Meow! .rubocop.yml has been created successfully.
|
|
43
|
+
$ cat .rubocop.yml
|
|
44
|
+
# To use the MeowCop gem.
|
|
31
45
|
inherit_gem:
|
|
32
46
|
meowcop:
|
|
33
47
|
- config/rubocop.yml
|
|
48
|
+
|
|
49
|
+
# Modify the version if you don't use MRI 2.1.
|
|
50
|
+
AllCops:
|
|
51
|
+
TargetRubyVersion: 2.1
|
|
52
|
+
|
|
53
|
+
# You can customize rubocop settings.
|
|
54
|
+
# For example.
|
|
55
|
+
# Style/FrozenStringLiteralComment:
|
|
56
|
+
# Enabled: true
|
|
57
|
+
# EnforcedStyle: always
|
|
34
58
|
```
|
|
35
59
|
|
|
36
60
|
### Example
|
|
@@ -48,6 +72,7 @@ $ bundle exec rubocop
|
|
|
48
72
|
|
|
49
73
|
|
|
50
74
|
|
|
75
|
+
|
|
51
76
|
## Development
|
|
52
77
|
|
|
53
78
|
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
data/config/rubocop.yml
CHANGED
data/exe/meowcop
CHANGED
|
File without changes
|
data/lib/meowcop/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: meowcop
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.9.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Masataka Kuwabara
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-02-
|
|
11
|
+
date: 2017-02-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rubocop
|
|
@@ -92,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
92
92
|
version: '0'
|
|
93
93
|
requirements: []
|
|
94
94
|
rubyforge_project:
|
|
95
|
-
rubygems_version: 2.6.
|
|
95
|
+
rubygems_version: 2.6.10
|
|
96
96
|
signing_key:
|
|
97
97
|
specification_version: 4
|
|
98
98
|
summary: MeowCop is a RuboCop configuration recommended by Actcat inc.
|