rubocop-codetakt 0.2.3 → 0.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 25eea8df877cff791994f9ddff81dca63699b1d8
4
- data.tar.gz: 87ac172bf011c75f35e2d672b9a7f10c1339b69d
3
+ metadata.gz: 2e0856db740e13915d1e02f165c225160e5fc017
4
+ data.tar.gz: 1eeed782cac1c7a503a5a212e92d619eb67c1660
5
5
  SHA512:
6
- metadata.gz: 8ab74e50923889eb28bd67da63c586e9d8693db8cae85927a5edb8bdded8fd4e09e663c301796775f9eb3a44b09da98e249fa256c3a2e4dfcfe8e6d4275e2ac7
7
- data.tar.gz: db0a1335f95d573470ee44e38f692710b212d6b01c8224f8cfbe0562d105f0636a4fa5bf9d1069815654aa1fddd4b17e2967aaa7cbb6e8a67862f7eb33014b52
6
+ metadata.gz: 72cd07be5fbdbaf853d43a1b79e33622eba49c6f64829c235545c4948e7f09d52ada406199028ffecbfc5e50440f2960f372d481fc2a2a6539c45f763f0ddb8e
7
+ data.tar.gz: 820098188f14927d336f16d7f98d55dd355b50786e547e752d03125c5d838545ffa0828d0cee243af2494d60118b85de38d1d645e0e82324a281646206aaaca7
data/CHANGELOG.md CHANGED
@@ -1,9 +1,10 @@
1
1
  # rubocop-codetakt
2
2
 
3
- ## Unreleased
3
+ ## v0.3.0 (2017-04-03)
4
4
 
5
- [full changelog](https://github.com/codetakt/rubocop-codetakt/compare/v0.2.3...HEAD)
5
+ [full changelog](https://github.com/codetakt/rubocop-codetakt/compare/v0.2.3...v0.3.0)
6
6
 
7
+ * Use the onkcop v0.48.0.0.
7
8
  * Update the Changelog.
8
9
 
9
10
  ## v0.2.3 (2017-03-27)
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # What is this?
2
2
 
3
3
  Common RuboCop configurations for the codeTakt's project.
4
+ Based the [onkcop][1].
4
5
 
5
6
  ## Usage
6
7
 
@@ -20,16 +21,18 @@ group :development do
20
21
  end
21
22
  ```
22
23
 
23
- And then create `.rubocop.yml`.
24
+ And then create `.rubocop.yml`:
24
25
 
25
26
  ```yaml
26
27
  inherit_gem:
27
28
  rubocop-codetakt:
28
- - config/default.yml
29
+ - config/rubocop.yml
29
30
  - config/rails.yml # optional.
30
- - config/rails4.yml # optional.
31
+ - config/rspec.yml # optional.
31
32
  ```
32
33
 
33
34
  ## License
34
35
 
35
36
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
37
+
38
+ [1]: https://github.com/onk/onkcop
data/config/rails.yml CHANGED
@@ -1,7 +1,6 @@
1
- AllCops:
2
- Exclude:
3
- - 'vendor/**/*'
4
- - 'db/schema.rb'
1
+ inherit_gem:
2
+ onkcop:
3
+ - config/rails.yml
5
4
 
6
- Rails:
7
- Enabled: true
5
+ Style/IndentationConsistency:
6
+ EnforcedStyle: normal
data/config/rspec.yml ADDED
@@ -0,0 +1,3 @@
1
+ inherit_gem:
2
+ onkcop:
3
+ - config/rspec.yml
@@ -0,0 +1,38 @@
1
+ inherit_gem:
2
+ onkcop:
3
+ - config/rubocop.yml
4
+
5
+ Metrics/AbcSize:
6
+ Max: 30
7
+
8
+ Metrics/CyclomaticComplexity:
9
+ Max: 10
10
+
11
+ Metrics/MethodLength:
12
+ Max: 20
13
+
14
+ Metrics/PerceivedComplexity:
15
+ Max: 10
16
+
17
+ Style/DotPosition:
18
+ EnforcedStyle: leading
19
+
20
+ Style/MultilineMethodCallIndentation:
21
+ EnforcedStyle: indented
22
+ IndentationWidth: 2
23
+
24
+ Style/StringLiterals:
25
+ EnforcedStyle: single_quotes
26
+
27
+ Style/StringLiteralsInInterpolation:
28
+ EnforcedStyle: single_quotes
29
+
30
+ Style/SymbolArray:
31
+ Enabled: true
32
+
33
+ Style/TrailingCommaInLiteral:
34
+ Enabled: true
35
+ EnforcedStyleForMultiline: no_comma
36
+
37
+ Style/WordArray:
38
+ Enabled: true
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-codetakt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.3.0
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-26 00:00:00.000000000 Z
11
+ date: 2017-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rubocop
14
+ name: onkcop
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: '0.48'
19
+ version: 0.48.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: '0.48'
26
+ version: 0.48.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -61,9 +61,9 @@ files:
61
61
  - CHANGELOG.md
62
62
  - LICENSE
63
63
  - README.md
64
- - config/default.yml
65
64
  - config/rails.yml
66
- - config/rails4.yml
65
+ - config/rspec.yml
66
+ - config/rubocop.yml
67
67
  homepage: https://github.com/codetakt/rubocop-codetakt/
68
68
  licenses:
69
69
  - MIT
data/config/default.yml DELETED
@@ -1,48 +0,0 @@
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
- # > のイメージ
14
- Metrics/LineLength:
15
- Max: 160
16
-
17
- Metrics/MethodLength:
18
- Max: 20
19
-
20
- Metrics/PerceivedComplexity:
21
- Max: 10
22
-
23
- Style/AsciiComments:
24
- Enabled: false
25
-
26
- # https://github.com/onk/onkcop/blob/f3283b5/config/rubocop.yml#L39-L42
27
- # > scope が違うとか親 module の存在確認が必要とかデメリットはあるが、
28
- # > namespace 付きのクラスはかなり頻繁に作るので簡単に書きたい。
29
- Style/ClassAndModuleChildren:
30
- Enabled: false
31
-
32
- Style/Documentation:
33
- Enabled: false
34
-
35
- Style/DoubleNegation:
36
- Enabled: false
37
-
38
- Style/EmptyMethod:
39
- Enabled: false
40
-
41
- Style/FrozenStringLiteralComment:
42
- Enabled: false
43
-
44
- Style/Lambda:
45
- EnforcedStyle: literal
46
-
47
- Style/MultilineMethodCallIndentation:
48
- EnforcedStyle: indented
data/config/rails4.yml DELETED
@@ -1,6 +0,0 @@
1
- # Prevent the False positives in Rails 4.2.
2
- #
3
- # See: http://tech.sideci.com/entry/2016/10/20/110000 and
4
- # https://github.com/bbatsov/rubocop/issues/3629#issuecomment-254059840
5
- Rails/HttpPositionalArguments:
6
- Enabled: false