meowcop 1.8.0 → 1.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0c87fb206843ff45e5ece8c7e50a523e31de6b92
4
- data.tar.gz: 7de2c9994b98244fc6f344a91c19f13759993518
3
+ metadata.gz: 156c890c33f21229f8cfd4affac0903a45b95c65
4
+ data.tar.gz: f413fe6c0ebb3fcadb42c49f2d4466eb42ac4f84
5
5
  SHA512:
6
- metadata.gz: 00f895bf2b089b8b7b4891d4b28fbc24c3bb4a28f22fb9b21153ebd52709f006e75db0673d5f8b931bfb60d6cf3e4b8d725160a233dabfaba712efb68173e597
7
- data.tar.gz: a018de299c0beed4f4633c08323a97883aaa851f434cb341ed3f92db9c2020daae28922243d2be0c88d6e2413b150c75819a00d86b2fa18771a01d09894784a9
6
+ metadata.gz: 43ba12bddcb33e7e2dc034b8faa9c495b6d432cda2df09d688af95732220a7e10ef15274a173dfd4b11a0dd666cd30c9d201a23a9abc86f3685d8fb4e7501dcc
7
+ data.tar.gz: f88fcbe33e596a34754db21906cd1f8eafe49a92348b947fff8c7e868368adfc10393509a1453e2035c139b7fc7195961a0e599c330964826598a3971dd37ba9
data/README.md CHANGED
@@ -2,10 +2,20 @@
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/meowcop.svg)](https://badge.fury.io/rb/meowcop)
4
4
 
5
- MeowCop is a RuboCop configuration recommended by Actcat inc.
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
- However, lint rules are enabled.
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
- Add the following directive to your `.rubocop.yml`
38
+ MeowCop provides a CLI tool to initialise `.rubocop.yml`
29
39
 
30
- ```yaml
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
@@ -4,6 +4,9 @@ AllCops:
4
4
  - 'vendor/**/*'
5
5
  # db/schema.rb is generated automatically.
6
6
  - 'db/schema.rb'
7
+ DisplayCopName: true
8
+ DisplayStyleGuide: true
9
+
7
10
  Bundler/OrderedGems:
8
11
  Enabled: false
9
12
 
data/exe/meowcop CHANGED
File without changes
@@ -1,3 +1,3 @@
1
1
  module Meowcop
2
- VERSION = "1.8.0"
2
+ VERSION = "1.9.0"
3
3
  end
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.8.0
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-05 00:00:00.000000000 Z
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.8
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.