rubocop-gem_dev 0.5.0 → 0.8.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 +4 -4
- data/config/rubocop.yml +28 -1
- data/lib/rubocop/gem_dev/version.rb +1 -1
- data/rubocop-gem_dev.gemspec +3 -3
- metadata +7 -10
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6288ce6a62368de0c9c4a4d975d4690846f3225e8d164025a707eed9c2963357
|
|
4
|
+
data.tar.gz: 348913cf8f84f05e91b176fbfbc30414420e6ccf7156619ded3ccddb11e26c7d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cd2616e8bfc246544a0dc4c76e88da5532a5989840d621436a32d0d471278c312f702b2819fd56839356f620d2d7571d531e59ade19ec073c748bacfa3e2d44c
|
|
7
|
+
data.tar.gz: 21a3cec608c5b1d818f01067affb80b8013682364f35db4abbb257f71f809d0f9f9b8a386883b21abea6c1c2055b19115e74a6536f7d6c376878c455e58feb9c
|
data/config/rubocop.yml
CHANGED
|
@@ -11,26 +11,53 @@ AllCops:
|
|
|
11
11
|
Bundler/GemVersion:
|
|
12
12
|
Enabled: false
|
|
13
13
|
|
|
14
|
+
# `::File` is usually too verbose, enable this when we need
|
|
15
|
+
Lint/ConstantResolution:
|
|
16
|
+
Enabled: false
|
|
17
|
+
|
|
14
18
|
# ABC size 20 is pretty well-done actually.
|
|
15
19
|
Metrics/AbcSize:
|
|
16
20
|
Max: 20
|
|
17
21
|
|
|
22
|
+
# The number of keyword arguments rarely counts
|
|
23
|
+
Metrics/ParameterLists:
|
|
24
|
+
CountKeywordArgs: false
|
|
25
|
+
|
|
18
26
|
# We usually have LICENSE file that describes copyright information.
|
|
19
27
|
Style/Copyright:
|
|
20
28
|
Enabled: false
|
|
21
29
|
|
|
30
|
+
# This is too convenient
|
|
31
|
+
Style/DisableCopsWithinSourceCodeDirective:
|
|
32
|
+
Enabled: false
|
|
33
|
+
|
|
34
|
+
# Test files don't need to have documentation
|
|
35
|
+
Style/Documentation:
|
|
36
|
+
Exclude:
|
|
37
|
+
- 'test/**/*'
|
|
38
|
+
- 'spec/**/*'
|
|
39
|
+
|
|
22
40
|
# Double negation is a famous Ruby idiom,
|
|
23
41
|
# why not using it with confidence?
|
|
24
42
|
Style/DoubleNegation:
|
|
25
43
|
Enabled: false
|
|
26
44
|
|
|
45
|
+
# `Hash#fetch` and `Hash#[]` are completely different
|
|
46
|
+
# IMO, this should not belong to `Style` anyway
|
|
47
|
+
Style/HashLookupMethod:
|
|
48
|
+
Enabled: false
|
|
49
|
+
|
|
27
50
|
# It's absolutely fine to use inline comments
|
|
28
51
|
Style/InlineComment:
|
|
29
52
|
Enabled: false
|
|
30
53
|
|
|
31
54
|
# These methods are often used without parentheses
|
|
55
|
+
# Also assertions and expectations can be written without parentheses
|
|
32
56
|
Style/MethodCallWithArgsParentheses:
|
|
33
|
-
AllowedMethods: ['require', 'require_relative', 'include', 'extend', 'puts', 'p', 'warn', 'raise', 'send', 'public_send', 'alias_method']
|
|
57
|
+
AllowedMethods: ['require', 'require_relative', 'include', 'extend', 'puts', 'p', 'pp', 'warn', 'raise', 'send', 'public_send', 'alias_method']
|
|
58
|
+
Exclude:
|
|
59
|
+
- 'test/**/*'
|
|
60
|
+
- 'spec/**/*'
|
|
34
61
|
|
|
35
62
|
# Changing require order affects code execution
|
|
36
63
|
# This should not be a style cop
|
data/rubocop-gem_dev.gemspec
CHANGED
|
@@ -10,13 +10,13 @@ Gem::Specification.new do |spec|
|
|
|
10
10
|
|
|
11
11
|
spec.summary = "RuboCop configuration for gem development"
|
|
12
12
|
spec.description = "RuboCop configuration for gem development"
|
|
13
|
-
spec.homepage = "https://github.com/okuramasafumi/rubocop-
|
|
13
|
+
spec.homepage = "https://github.com/okuramasafumi/rubocop-gem_dev"
|
|
14
14
|
spec.license = "MIT"
|
|
15
15
|
spec.required_ruby_version = ">= 2.6.0"
|
|
16
16
|
|
|
17
17
|
spec.metadata["homepage_uri"] = spec.homepage
|
|
18
|
-
spec.metadata["source_code_uri"] = "https://github.com/okuramasafumi/rubocop-
|
|
19
|
-
spec.metadata["changelog_uri"] = "https://github.com/okuramasafumi/rubocop-
|
|
18
|
+
spec.metadata["source_code_uri"] = "https://github.com/okuramasafumi/rubocop-gem_dev"
|
|
19
|
+
spec.metadata["changelog_uri"] = "https://github.com/okuramasafumi/rubocop-gem_dev/blob/main/CHANGELOG.md"
|
|
20
20
|
|
|
21
21
|
# Specify which files should be added to the gem when it is released.
|
|
22
22
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rubocop-gem_dev
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.8.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OKURA Masafumi
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies: []
|
|
13
12
|
description: RuboCop configuration for gem development
|
|
14
13
|
email:
|
|
@@ -29,14 +28,13 @@ files:
|
|
|
29
28
|
- lib/rubocop/gem_dev/version.rb
|
|
30
29
|
- rubocop-gem_dev.gemspec
|
|
31
30
|
- sig/rubocop/gem_dev.rbs
|
|
32
|
-
homepage: https://github.com/okuramasafumi/rubocop-
|
|
31
|
+
homepage: https://github.com/okuramasafumi/rubocop-gem_dev
|
|
33
32
|
licenses:
|
|
34
33
|
- MIT
|
|
35
34
|
metadata:
|
|
36
|
-
homepage_uri: https://github.com/okuramasafumi/rubocop-
|
|
37
|
-
source_code_uri: https://github.com/okuramasafumi/rubocop-
|
|
38
|
-
changelog_uri: https://github.com/okuramasafumi/rubocop-
|
|
39
|
-
post_install_message:
|
|
35
|
+
homepage_uri: https://github.com/okuramasafumi/rubocop-gem_dev
|
|
36
|
+
source_code_uri: https://github.com/okuramasafumi/rubocop-gem_dev
|
|
37
|
+
changelog_uri: https://github.com/okuramasafumi/rubocop-gem_dev/blob/main/CHANGELOG.md
|
|
40
38
|
rdoc_options: []
|
|
41
39
|
require_paths:
|
|
42
40
|
- lib
|
|
@@ -51,8 +49,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
51
49
|
- !ruby/object:Gem::Version
|
|
52
50
|
version: '0'
|
|
53
51
|
requirements: []
|
|
54
|
-
rubygems_version: 3.
|
|
55
|
-
signing_key:
|
|
52
|
+
rubygems_version: 3.6.7
|
|
56
53
|
specification_version: 4
|
|
57
54
|
summary: RuboCop configuration for gem development
|
|
58
55
|
test_files: []
|