rubocop-codetakt 0.1.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +18 -0
  3. data/README.md +1 -1
  4. data/config/default.yml +24 -2
  5. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6551955408e5f893c615e196353022a59e863848
4
- data.tar.gz: e05c51a0a0003cc44b365a54cfd533242c96ae88
3
+ metadata.gz: a8a103b44ad31df14cbd3df9a4dd871112b87ae9
4
+ data.tar.gz: 0aada3c9ce3bcb94ff6f084eecc9991f8076bdf1
5
5
  SHA512:
6
- metadata.gz: 10893490186499d10ff1b15e111e6adb62ba9f98ee6965d5eaa38b1b377702a47fced048edcc13559e849c303a9f01a707e43441abd9b774dbb940bc96beaba6
7
- data.tar.gz: 2cc99688326e1368cce90fb496405db25c6665eaa9f49abb619f19804f164e00d2e74673ad66dd7c547834e02cbb594a40cd68278ca6271bef1f505a1f853d47
6
+ metadata.gz: a2fb3a7aede164e7f3a986c622bad9c9677e28e69b4ec22c7a83d5646d6f2e93ee914da54f7b442311f601d2608cf9c38ac0669d6e8ace67bf95b20e65e5ea1e
7
+ data.tar.gz: 1138cb73ec4a9c4b2a4d77d7ffd99245b9e0dfab696fc7410e2b6dcdde9f5f9803ec6bf189b692596a8cbc8d70aff9dfbc8d27b250e0aedc6d4b7019bebef002
data/CHANGELOG.md ADDED
@@ -0,0 +1,18 @@
1
+ # rubocop-codetakt
2
+
3
+ ## v0.2.0 (2017-03-21)
4
+
5
+ [full changelog](https://github.com/codetakt/rubocop-codetakt/compare/v0.1.0...v0.2.0)
6
+
7
+ * Enabled:
8
+ * `DisplayCopNames`
9
+
10
+ * Disabled:
11
+ * `Style/DoubleNegation`
12
+
13
+ * Loosened:
14
+ * `Metrics/AbcSize`
15
+ * `Metrics/CyclomaticComplexity`
16
+ * `Metrics/LineLength`
17
+ * `Metrics/MethodLength`
18
+ * `Metrics/PerceivedComplexity`
data/README.md CHANGED
@@ -9,7 +9,7 @@ Put this configurations and RuboCop to your `Gemfile`.
9
9
  In general:
10
10
 
11
11
  ```ruby
12
- gem 'rubocop'
12
+ gem 'rubocop-codetakt'
13
13
  ```
14
14
 
15
15
  Rails product:
data/config/default.yml CHANGED
@@ -1,10 +1,29 @@
1
+ AllCops:
2
+ DisplayCopNames: true
3
+
4
+ Metrics/AbcSize:
5
+ Max: 30
6
+
7
+ Metrics/CyclomaticComplexity:
8
+ Max: 10
9
+
10
+ # https://github.com/onk/onkcop/blob/f3283b5/config/rubocop.yml#L283-L289
11
+ # > * 警告 120文字
12
+ # > * 禁止 160文字
13
+ # > のイメージ
1
14
  Metrics/LineLength:
2
- Max: 128
15
+ Max: 160
16
+
17
+ Metrics/MethodLength:
18
+ Max: 20
19
+
20
+ Metrics/PerceivedComplexity:
21
+ Max: 10
3
22
 
4
23
  Style/AsciiComments:
5
24
  Enabled: false
6
25
 
7
- # https://github.com/onk/onkcop/blob/666cb654562ef80afc475b54ca9625152cb3c94a/config/rubocop.yml#L39
26
+ # https://github.com/onk/onkcop/blob/f3283b5/config/rubocop.yml#L39-L42
8
27
  # > scope が違うとか親 module の存在確認が必要とかデメリットはあるが、
9
28
  # > namespace 付きのクラスはかなり頻繁に作るので簡単に書きたい。
10
29
  Style/ClassAndModuleChildren:
@@ -13,6 +32,9 @@ Style/ClassAndModuleChildren:
13
32
  Style/Documentation:
14
33
  Enabled: false
15
34
 
35
+ Style/DoubleNegation:
36
+ Enabled: false
37
+
16
38
  Style/EmptyMethod:
17
39
  Enabled: false
18
40
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-codetakt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - codeTakt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-20 00:00:00.000000000 Z
11
+ date: 2017-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -58,6 +58,7 @@ executables: []
58
58
  extensions: []
59
59
  extra_rdoc_files: []
60
60
  files:
61
+ - CHANGELOG.md
61
62
  - LICENSE
62
63
  - README.md
63
64
  - config/default.yml