rubocop-shiphawk 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 4b0b60cc1ad3070b23579c3a7d2aa9ce1b6e168850dec823a441a0b28c95328c
4
+ data.tar.gz: 7c1b625d690b5f414086fc799519046506276839a0dce781f43409d6352e7655
5
+ SHA512:
6
+ metadata.gz: 9da06e16e49920e6393ce260f9061cd15ac4bfa61dd59e32bf88f3decae1ef7e5f6fe2fb83073b0132e612c2511766b91105d7a606a40824370f6207ac4f6373
7
+ data.tar.gz: b9f960783244d60184b10d5f3c7dc3cd272e3d724e0f0e8c549ac7933fe8aebc39862fa9f5b508caf4ca41282bd4551736628bcdfc1a56710c4ab805275dd1d6
data/LICENSE ADDED
@@ -0,0 +1,9 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Toshimaru Enomoto
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,68 @@
1
+ # RuboCop ShipHawk
2
+
3
+ RuboCop configuration for all ShipHawk projects.
4
+
5
+ [Official RoR Rubocop Configuration](https://github.com/ShipHawk/shiphawk-rubocop/blob/master/.rubocop.yml)
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's `Gemfile`:
10
+
11
+ ```ruby
12
+ gem "rubocop-shiphawk"
13
+ ```
14
+
15
+ ## Usage
16
+
17
+ Add this line to your application's `.rubocop.yml`:
18
+
19
+ ```yml
20
+ inherit_gem:
21
+ rubocop-shiphawk:
22
+ - config/rubocop-shiphawk.yml
23
+ ```
24
+
25
+ ## Customization
26
+
27
+ If you'd like to customize the rubocop setting, you can override it.
28
+
29
+ For example, if you want to change `TargetRubyVersion`, you can do it like:
30
+
31
+ ```yml
32
+ inherit_gem:
33
+ rubocop-shiphawk:
34
+ - config/rubocop-shiphawk.yml
35
+
36
+ AllCops:
37
+ TargetRubyVersion: 2.3
38
+ ```
39
+
40
+ This overrides `config/rubocop-shiphawk.yml` setting with `TargetRubyVersion: 2.3`.
41
+
42
+ ## License
43
+
44
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
45
+
46
+
47
+ ## How to: Add new rule
48
+ Create MR. MR must contain rule with vote statistic.
49
+
50
+ [Guidelines for creating vote](https://ourcodestyle.com/projects/shiphawk/style-guides/3/rules/645)
51
+
52
+
53
+ ## How to: Build
54
+ Upgrade version in `lib/rubocop/shiphawk/version.rb`
55
+ Then create new version of a gem:
56
+
57
+ ```
58
+ gem build rubocop-shiphawk.gemspec
59
+ ```
60
+
61
+ ## How to: Show statistic:
62
+ ```
63
+ rubocop --format simple app/controllers/
64
+ rubocop --format offenses app/controllers/
65
+ ```
66
+
67
+ ## TODO:
68
+ - Add rake tasks for statistic.
@@ -0,0 +1,70 @@
1
+ require: rubocop-performance
2
+
3
+ AllCops:
4
+ TargetRubyVersion: 2.2.3
5
+
6
+ Metrics/LineLength:
7
+ Max: 110
8
+
9
+ Style/SymbolArray:
10
+ Enabled: false
11
+ Style/Documentation:
12
+ Enabled: false
13
+ Style/ClassAndModuleChildren:
14
+ Enabled: false
15
+ Style/WordArray:
16
+ Enabled: false
17
+ Style/BlockDelimiters:
18
+ Enabled: false
19
+ Style/DoubleNegation:
20
+ Enabled: false
21
+ Style/BracesAroundHashParameters:
22
+ Enabled: false
23
+ Style/ParallelAssignment:
24
+ Enabled: false
25
+ Style/MultilineTernaryOperator:
26
+ Enabled: false
27
+ Style/TrailingCommaInArrayLiteral:
28
+ EnforcedStyleForMultiline: comma
29
+ Style/TrailingCommaInHashLiteral:
30
+ EnforcedStyleForMultiline: comma
31
+ Style/ExpandPathArguments:
32
+ Enabled: false
33
+ Style/FrozenStringLiteralComment:
34
+ Enabled: false
35
+ Style/Lambda:
36
+ Enabled: false
37
+ Style/NumericLiterals:
38
+ Enabled: false
39
+ Style/IfUnlessModifier:
40
+ Enabled: false
41
+
42
+ Metrics/ClassLength:
43
+ Enabled: false
44
+ Metrics/MethodLength:
45
+ CountComments: false
46
+ Max: 40
47
+ Metrics/AbcSize:
48
+ Enabled: false
49
+ Metrics/CyclomaticComplexity:
50
+ Enabled: false
51
+ Metrics/PerceivedComplexity:
52
+ Enabled: false
53
+ Metrics/BlockLength:
54
+ Enabled: false
55
+
56
+ Layout/AlignHash:
57
+ Enabled: false
58
+ Layout/EndAlignment:
59
+ Enabled: false
60
+ Layout/IndentFirstHashElement:
61
+ EnforcedStyle: consistent
62
+
63
+ Bundler/OrderedGems:
64
+ Enabled: false
65
+
66
+ StringLiterals:
67
+ Enabled: false
68
+
69
+ Security/YAMLLoad:
70
+ Enabled: false
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module RuboCop
4
+ module ShipHawk
5
+ VERSION = '1.4.0'.freeze
6
+ end
7
+ end
metadata ADDED
@@ -0,0 +1,74 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rubocop-shiphawk
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.4.0
5
+ platform: ruby
6
+ authors:
7
+ - ShipHawk Team
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-09-23 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rubocop
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.68.1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.68.1
27
+ - !ruby/object:Gem::Dependency
28
+ name: rubocop-performance
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 1.0.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 1.0.0
41
+ description: Custom code style checking for all ShipHawk projects
42
+ email: dev@shiphawk.com
43
+ executables: []
44
+ extensions: []
45
+ extra_rdoc_files: []
46
+ files:
47
+ - LICENSE
48
+ - README.md
49
+ - config/rubocop-shiphawk.yml
50
+ - lib/rubocop/shiphawk/version.rb
51
+ homepage: https://git.shiphawk.com/shiphawk/shiphawk-rubocop
52
+ licenses:
53
+ - MIT
54
+ metadata: {}
55
+ post_install_message:
56
+ rdoc_options: []
57
+ require_paths:
58
+ - lib
59
+ required_ruby_version: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: 2.2.3
64
+ required_rubygems_version: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ requirements: []
70
+ rubygems_version: 3.0.6
71
+ signing_key:
72
+ specification_version: 4
73
+ summary: Custom code style checking for all ShipHawk projects
74
+ test_files: []