dm_linters 0.0.1 → 0.0.2

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: a5b3d164bfc2fed1afdf8416ac803fb349f0d728
4
- data.tar.gz: 5c851980285f0610fa857c163dfa2359f4eaf4f6
3
+ metadata.gz: fae6ab8a14284e43019b93022b578dabacf3a6d7
4
+ data.tar.gz: d2ff4c7354c19284cc5cb2340715c6d0935057db
5
5
  SHA512:
6
- metadata.gz: bcad0ad5c66cc3006032ff57843b0bc7f998acfa32855308aa44c1c4408c6bd19ff65022fc62231c548e2c26cd5c1bfdea3671c00c7cc7ae55740902b27bbc34
7
- data.tar.gz: 1354084f2ca402dce448188f59fc2ba3a45de182672886e317235189c4a0be76f71ca67ab8dba20169e6d7c989bf112167fa218044a0658418b43cacf996d70f
6
+ metadata.gz: fe796ef3940424277904b472f52c51dab6dd8523007f820d35acc61ca3d5465f9fe9d6821f148f8b12e3cbad040f7913d1445a26df76eb402cfb555205d1806b
7
+ data.tar.gz: e7c886034137772dcdb6282b9e1a26f479109cd435bfa19d25e9206d37bebbd2aae86e115109b53c306cca23d4de857b2e5d8d46b06af62915c7e11f0aa269c1
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in dm_linters.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 DIAMOND MEDIA Co.,Ltd.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,41 @@
1
+ ## Installation
2
+
3
+ Add this line to your application's Gemfile:
4
+
5
+ ```ruby
6
+ gem 'dm_linters'
7
+ ```
8
+
9
+ And then execute installation by bundler:
10
+
11
+ ```
12
+ $ bundle install
13
+ ```
14
+
15
+
16
+ ## Usage
17
+
18
+ ### Rubocop
19
+
20
+ Add these lines to your `.rubocop.yml`:
21
+
22
+ ```yml
23
+ inherit_gem:
24
+ dm_linters:
25
+ - 'config/.rubocop.yml'
26
+ ```
27
+
28
+ And then execute by bundler:
29
+
30
+ ```
31
+ $ bundle exec rubocop
32
+ ```
33
+
34
+
35
+ ## Contributing
36
+
37
+ Bug reports and pull requests are welcome on GitHub at https://github.com/dm-production/dm_linters.
38
+
39
+ ## License
40
+
41
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,3 @@
1
+ require 'bundler/gem_tasks'
2
+
3
+ task default: :spec
@@ -0,0 +1,88 @@
1
+ AllCops:
2
+ # 継承先のプロジェクトでRuby/Railsのバージョンを設定してください。
3
+ # TargetRubyVersion: x.x
4
+ # TargetRailsVersion: x.x
5
+ Exclude:
6
+ - './db/schema.rb'
7
+ - './db/migrate/**/*'
8
+
9
+ Rails:
10
+ Enabled: true
11
+
12
+ # 以下のメソッドはパフォーマンスや可読性の観点からブロック行数が長くても良しと判断し、
13
+ # メソッド名で除外設定をしている。
14
+ # RailsのRouterよりnamespace/resource/resources
15
+ # FactoryGirlのdefine/factory
16
+ # Rspecのdescribe/it/feature/context/shared_context
17
+ Metrics/BlockLength:
18
+ CountComments: false
19
+ ExcludedMethods:
20
+ - namespace
21
+ - resource
22
+ - resources
23
+ - task
24
+ - define
25
+ - factory
26
+ - describe
27
+ - it
28
+ - feature
29
+ - context
30
+ - shared_context
31
+
32
+ Metrics/BlockNesting:
33
+ CountBlocks: false
34
+
35
+ Metrics/ClassLength:
36
+ CountComments: false
37
+
38
+ Metrics/MethodLength:
39
+ CountComments: false
40
+
41
+ Metrics/ModuleLength:
42
+ CountComments: false
43
+
44
+ Metrics/ParameterLists:
45
+ CountKeywordArgs: true
46
+
47
+ # 日本人向けプロダクトで日本語コメント禁止は厳しすぎるので。
48
+ # また、sdocでYARD形式のコメントを書くため記号を許容したい。
49
+ Style/AsciiComments:
50
+ Enabled: false
51
+
52
+ # Caseに対してWhenをインデントしないこと。
53
+ Style/CaseIndentation:
54
+ IndentOneStep: false
55
+
56
+ # CommentIndentationはシャープのインデント揃えをチェックするが、
57
+ # 処理をコメントアウトした場合には処理自体のインデントを揃えた方が綺麗な場合があるためOFF。
58
+ Style/CommentIndentation:
59
+ Enabled: false
60
+
61
+ Style/ConditionalAssignment:
62
+ Enabled: false
63
+
64
+ # 自作クラスには出来るだけコメントを書いて欲しい。
65
+ # Railsのように規約によってある程度クラスの意味はわかる場合、
66
+ # 親クラスに :nodoc: all とコメントを入れる事でこの警告は消せます。
67
+ Style/Documentation:
68
+ Enabled: true
69
+
70
+ # メソッドチェーンを書く際、ドットは次の行の先頭に書くこと。
71
+ # irbやpryで実行しづらいデメリットはあるが、この方が可読性が高くコメントアウトもしやすいため。
72
+ Style/DotPosition:
73
+ EnforcedStyle: leading
74
+
75
+ # 文字列のフォーマットは、format/sprintf/percentで行うこと。
76
+ Style/FormatString:
77
+ SupportedStyles:
78
+ - format
79
+ - sprintf
80
+ - percent
81
+
82
+ # ハッシュのキー指定方法はruby1.9の文法を利用し、ハッシュ内で統一すること。
83
+ Style/HashSyntax:
84
+ EnforcedStyle: ruby19_no_mixed_keys
85
+
86
+ # 演算子の前後には半角スペースを入れること。
87
+ Style/SpaceAroundOperators:
88
+ AllowForAlignment: true
@@ -0,0 +1,22 @@
1
+ # coding: utf-8
2
+
3
+ lib = File.expand_path('../lib', __FILE__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require 'dm_linters/version'
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = 'dm_linters'
9
+ spec.version = DmLinters::VERSION
10
+ spec.authors = ['Shinse']
11
+ spec.email = ['s.tanaka@diamondmedia.co.jp']
12
+
13
+ spec.summary = 'linter for Diamond Media products.'
14
+ spec.description = 'linter files & libraries for DIAMOND MEDIA Co.,Ltd.'
15
+ spec.homepage = 'https://github.com/dm-production/dm_linters'
16
+ spec.license = 'MIT'
17
+
18
+ spec.files = `git ls-files`.split("\n")
19
+ spec.require_paths = ['lib']
20
+
21
+ spec.add_dependency 'rubocop'
22
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module DmLinters
4
+ VERSION = '0.0.2'.freeze
5
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dm_linters
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shinse
@@ -30,7 +30,15 @@ email:
30
30
  executables: []
31
31
  extensions: []
32
32
  extra_rdoc_files: []
33
- files: []
33
+ files:
34
+ - ".gitignore"
35
+ - Gemfile
36
+ - LICENSE.txt
37
+ - README.md
38
+ - Rakefile
39
+ - config/.rubocop.yml
40
+ - dm_linters.gemspec
41
+ - lib/dm_linters/version.rb
34
42
  homepage: https://github.com/dm-production/dm_linters
35
43
  licenses:
36
44
  - MIT