rubocop-kisoku 1.0.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 +7 -0
- data/rubocop.yml +105 -0
- metadata +54 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 4da8ac74bac653629a18b26561c723adc1e3b8d1f46326d60be4791838cfd2bf
|
|
4
|
+
data.tar.gz: 9223be68436893bc0272f12506acf65ddbbbfe18183fdb175dc2f3ff5f32b70c
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: f473e01567896eb82e3ddc2d1dcbaacd1802a2319cbdae84e718f4f4a88de8f12b438889a34622096e41ae70e12cc4a816399a3b46f11b315ce7fd0c00ca4bb3
|
|
7
|
+
data.tar.gz: 35ef5d9d9b0d99c6e40469d54376d69ddf7456a4b4f38ad8098f05ab35a0f6bad8f1eb653bcde30eb0360232674855555db52a675364cc3ee82b9e2a64d1810d
|
data/rubocop.yml
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# The behavior of RuboCop can be controlled via the .rubocop.yml
|
|
2
|
+
# configuration file. It makes it possible to enable/disable
|
|
3
|
+
# certain cops (checks) and to alter their behavior if they accept
|
|
4
|
+
# any parameters. The file can be placed either in your home
|
|
5
|
+
# directory or in some project directory.
|
|
6
|
+
#
|
|
7
|
+
# RuboCop will start looking for the configuration file in the directory
|
|
8
|
+
# where the inspected file is and continue its way up to the root directory.
|
|
9
|
+
#
|
|
10
|
+
# See https://github.com/rubocop-hq/rubocop/blob/master/manual/configuration.md
|
|
11
|
+
|
|
12
|
+
# This is controversial. The Ruby Style Guide - our chosen style guide - says
|
|
13
|
+
# 80. Everyone else, including Rubocop defaults, says 120. But a lot of popular,
|
|
14
|
+
# quality code adheres to 80 anyway. Take a look, for example, through the
|
|
15
|
+
# Rails codebase.
|
|
16
|
+
#
|
|
17
|
+
# 80 is better for those of us that don't use a micro-font as we can put
|
|
18
|
+
# windows of code side-by-side for comparison and not have the code wrap. 80 is
|
|
19
|
+
# preferred for the reasons given in the Ruby Style guide here
|
|
20
|
+
# (https://rubystyle.guide/#max-line-length)
|
|
21
|
+
#
|
|
22
|
+
# MOST IMPORTANTLY: The Ruby Style Guide (found at https://rubystyle.guide) is
|
|
23
|
+
# our style guide. As of May, 2023, it says 80 chars. So it's 80 chars. And
|
|
24
|
+
# even if the guide changes, it shall remain 80 chars until such time as
|
|
25
|
+
# medical science grants us all perfect vision. You may not like it but the
|
|
26
|
+
# guide's current rationale for 80 is sound.
|
|
27
|
+
#
|
|
28
|
+
# A COMPROMISE
|
|
29
|
+
# To appease those who want 120 (or more) we set the severity to "Info" so that
|
|
30
|
+
# it doesn't result in a violation. So generally, try for 80, but don't bend
|
|
31
|
+
# the code out of shape just to avoid the 'Info' message.
|
|
32
|
+
|
|
33
|
+
AllCops:
|
|
34
|
+
SuggestExtensions: false
|
|
35
|
+
Exclude:
|
|
36
|
+
- 'db/schema.rb'
|
|
37
|
+
- 'config/**/*'
|
|
38
|
+
- 'legacy/**/*'
|
|
39
|
+
- 'docs/**/*'
|
|
40
|
+
- 'bin/**/*'
|
|
41
|
+
- 'jirb'
|
|
42
|
+
- 'jgem'
|
|
43
|
+
- 'jbundle'
|
|
44
|
+
NewCops: enable
|
|
45
|
+
|
|
46
|
+
Layout/MultilineMethodCallIndentation:
|
|
47
|
+
EnforcedStyle: indented_relative_to_receiver
|
|
48
|
+
|
|
49
|
+
Layout/LineLength:
|
|
50
|
+
Max: 120
|
|
51
|
+
|
|
52
|
+
Layout/HashAlignment:
|
|
53
|
+
EnforcedHashRocketStyle: table
|
|
54
|
+
# EnforcedColonStyle: table
|
|
55
|
+
|
|
56
|
+
Metrics/BlockLength:
|
|
57
|
+
AllowedMethods: ['describe', 'context', 'do_call']
|
|
58
|
+
|
|
59
|
+
Style/StringLiterals:
|
|
60
|
+
EnforcedStyle: double_quotes
|
|
61
|
+
Enabled: true
|
|
62
|
+
|
|
63
|
+
Style/TrailingCommaInHashLiteral:
|
|
64
|
+
EnforcedStyleForMultiline: consistent_comma
|
|
65
|
+
Enabled: true
|
|
66
|
+
|
|
67
|
+
Style/TrailingCommaInArrayLiteral:
|
|
68
|
+
EnforcedStyleForMultiline: consistent_comma
|
|
69
|
+
Enabled: true
|
|
70
|
+
|
|
71
|
+
Style/TrailingCommaInArguments:
|
|
72
|
+
EnforcedStyleForMultiline: consistent_comma
|
|
73
|
+
Enabled: true
|
|
74
|
+
|
|
75
|
+
Metrics/MethodLength:
|
|
76
|
+
Description: 'Avoid methods longer than 10 lines of code.'
|
|
77
|
+
Max: 30
|
|
78
|
+
|
|
79
|
+
Metrics/ClassLength:
|
|
80
|
+
Description: 'Avoid classes longer than 100 lines of code.'
|
|
81
|
+
Enabled: true
|
|
82
|
+
Max: 300
|
|
83
|
+
|
|
84
|
+
Style/ClassAndModuleChildren:
|
|
85
|
+
EnforcedStyle: nested
|
|
86
|
+
Enabled: true
|
|
87
|
+
|
|
88
|
+
Style/AccessorGrouping:
|
|
89
|
+
EnforcedStyle: separated
|
|
90
|
+
Enabled: true
|
|
91
|
+
|
|
92
|
+
Style/EmptyMethod:
|
|
93
|
+
EnforcedStyle: expanded
|
|
94
|
+
|
|
95
|
+
Lint/MissingSuper:
|
|
96
|
+
Enabled: false
|
|
97
|
+
|
|
98
|
+
Metrics/AbcSize:
|
|
99
|
+
Max: 30
|
|
100
|
+
|
|
101
|
+
Style/HashSyntax:
|
|
102
|
+
EnforcedShorthandSyntax: never
|
|
103
|
+
|
|
104
|
+
Naming/BlockForwarding:
|
|
105
|
+
EnforcedStyle: explicit
|
metadata
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: rubocop-kisoku
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Jesse Chavez
|
|
8
|
+
bindir: bin
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: rubocop
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - ">="
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: '0'
|
|
19
|
+
type: :runtime
|
|
20
|
+
prerelease: false
|
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
22
|
+
requirements:
|
|
23
|
+
- - ">="
|
|
24
|
+
- !ruby/object:Gem::Version
|
|
25
|
+
version: '0'
|
|
26
|
+
email:
|
|
27
|
+
- jesse.chavez.r@gmail.com
|
|
28
|
+
executables: []
|
|
29
|
+
extensions: []
|
|
30
|
+
extra_rdoc_files: []
|
|
31
|
+
files:
|
|
32
|
+
- rubocop.yml
|
|
33
|
+
homepage: https://github.com/JesseChavez/rubocop-kisoku
|
|
34
|
+
licenses:
|
|
35
|
+
- MIT
|
|
36
|
+
metadata: {}
|
|
37
|
+
rdoc_options: []
|
|
38
|
+
require_paths:
|
|
39
|
+
- lib
|
|
40
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
41
|
+
requirements:
|
|
42
|
+
- - ">="
|
|
43
|
+
- !ruby/object:Gem::Version
|
|
44
|
+
version: '0'
|
|
45
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
46
|
+
requirements:
|
|
47
|
+
- - ">="
|
|
48
|
+
- !ruby/object:Gem::Version
|
|
49
|
+
version: '0'
|
|
50
|
+
requirements: []
|
|
51
|
+
rubygems_version: 3.6.9
|
|
52
|
+
specification_version: 4
|
|
53
|
+
summary: Kisoku ruby styling
|
|
54
|
+
test_files: []
|