dm_linters 0.0.4 → 0.0.5

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: 06efefe35c65b0dba1fbf0794a01ebc9d2538dee
4
- data.tar.gz: b1e62d90e06651bf75a8a0f14069c967d2feffca
3
+ metadata.gz: 16020220d0c57e715934c017c101d39cb4a7e973
4
+ data.tar.gz: ce4b3e6a7e5f9b3b43f42797d1956143534c9993
5
5
  SHA512:
6
- metadata.gz: bb8b79ccdb389ff686296ad708a5bbc048038398973a76020b830d3bf3e289ff6d02054bb2129cf5753e70e9958d68c86d0054ed75a3e84a858f7cbb583de352
7
- data.tar.gz: ff1fc51d11e079e14d1effcda4ff73c99fab634223aa9903a4dfaf4934569f4362efaa56630d507858a7e95513440cdd1d1e263d8543001c1c29629c63c3f992
6
+ metadata.gz: dd59593d217427ae51d5e7f0a7a24ef8512f6909027b84c13f74aa1cd3363f40cd1864087f093ad609b2f7b1c4c8cbc0265fa855645009b9b054bdce529ddbae
7
+ data.tar.gz: 2642c3a25a30d741b262254ea4e2fc2da025bdb8bc3010db235a089eb6d237bb4a22621f56e514aea82d1567d6ef26a9f8a7a6491844c75badf186845db26ae7
data/README.md CHANGED
@@ -31,6 +31,19 @@ And then execute by bundler:
31
31
  $ bundle exec rubocop
32
32
  ```
33
33
 
34
+ ### Side-CI
35
+
36
+ Add these line to your `sideci.yml `:
37
+ (cf.) https://docs.sideci.com/tools/rubocop.html#configuration-via-sideci.yml
38
+
39
+ ```yml
40
+ linter:
41
+ rubocop:
42
+ gems:
43
+ - dm_linters
44
+ options:
45
+ config: './.rubocop.yml'
46
+ ```
34
47
 
35
48
  ## Contributing
36
49
 
data/config/.rubocop.yml CHANGED
@@ -5,6 +5,7 @@ AllCops:
5
5
  Exclude:
6
6
  - 'db/schema.rb'
7
7
  - 'db/migrate/**/*'
8
+ - 'node_modules/**/*'
8
9
 
9
10
  Rails:
10
11
  Enabled: true
@@ -64,20 +65,31 @@ Metrics/ParameterLists:
64
65
  Metrics/PerceivedComplexity:
65
66
  Max: 15
66
67
 
67
- #################### Style ###########################
68
-
69
- # 日本人向けプロダクトで日本語コメント禁止は厳しすぎるので。
70
- # また、sdocでYARD形式のコメントを書くため記号を許容したい。
71
- Style/AsciiComments:
72
- Enabled: false
68
+ #################### Layout ###########################
73
69
 
74
70
  # Caseに対してWhenをインデントしないこと。
75
- Style/CaseIndentation:
71
+ Layout/CaseIndentation:
76
72
  IndentOneStep: false
77
73
 
78
74
  # CommentIndentationはシャープのインデント揃えをチェックするが、
79
75
  # 処理をコメントアウトした場合には処理自体のインデントを揃えた方が綺麗な場合があるためOFF。
80
- Style/CommentIndentation:
76
+ Layout/CommentIndentation:
77
+ Enabled: false
78
+
79
+ # メソッドチェーンを書く際、ドットは次の行の先頭に書くこと。
80
+ # irbやpryで実行しづらいデメリットはあるが、この方が可読性が高くコメントアウトもしやすいため。
81
+ Layout/DotPosition:
82
+ EnforcedStyle: leading
83
+
84
+ # 演算子の前後には半角スペースを入れること。
85
+ Layout/SpaceAroundOperators:
86
+ AllowForAlignment: true
87
+
88
+ #################### Style ###########################
89
+
90
+ # 日本人向けプロダクトで日本語コメント禁止は厳しすぎるので。
91
+ # また、sdocでYARD形式のコメントを書くため記号を許容したい。
92
+ Style/AsciiComments:
81
93
  Enabled: false
82
94
 
83
95
  # if文の中で代入する書き方と、if文の戻り値で代入する書き方のどちらも許容する。
@@ -90,11 +102,6 @@ Style/ConditionalAssignment:
90
102
  Style/Documentation:
91
103
  Enabled: true
92
104
 
93
- # メソッドチェーンを書く際、ドットは次の行の先頭に書くこと。
94
- # irbやpryで実行しづらいデメリットはあるが、この方が可読性が高くコメントアウトもしやすいため。
95
- Style/DotPosition:
96
- EnforcedStyle: leading
97
-
98
105
  # 文字列のフォーマットは、format/sprintf/percentで行うこと。
99
106
  Style/FormatString:
100
107
  SupportedStyles:
@@ -105,7 +112,3 @@ Style/FormatString:
105
112
  # ハッシュのキー指定方法はruby1.9の文法を利用し、ハッシュ内で統一すること。
106
113
  Style/HashSyntax:
107
114
  EnforcedStyle: ruby19_no_mixed_keys
108
-
109
- # 演算子の前後には半角スペースを入れること。
110
- Style/SpaceAroundOperators:
111
- AllowForAlignment: true
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DmLinters
4
- VERSION = '0.0.4'.freeze
4
+ VERSION = '0.0.5'.freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dm_linters
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shinse
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-19 00:00:00.000000000 Z
11
+ date: 2018-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop