rubocop-ronin 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +22 -0
  3. data/rubocop.yml +95 -0
  4. metadata +81 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 2dc568c156ab9f55cdbdc560d1d447e6e1efca70defd062ba6486a01e26d32f9
4
+ data.tar.gz: 48901968949cb79498eb59453972abd233e38f88c750d9c223cc55c91fe969ec
5
+ SHA512:
6
+ metadata.gz: 38c0e0e1fb363bde44185329a2662629fd8cf170466c152455e0ff7e70c56ba5f9baa3fdef54712ba7318c5ade4b4e11f9aa60aa2d851a8c1bb59871fd3d080a
7
+ data.tar.gz: d8e4ea7135a713dff05fd513751574d09ba57214017b70cfb367adc92c289479a75671e8a793609d89c10a6bec9fb1f451b975d2d535d038898e5c1a804f94e5
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ (The MIT License)
2
+
3
+ Copyright (c) 2023 Hal Brodigan
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ 'Software'), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/rubocop.yml ADDED
@@ -0,0 +1,95 @@
1
+ #
2
+ # Ronin rubocop configuration.
3
+ #
4
+
5
+ inherit_mode:
6
+ merge:
7
+ - Exclude
8
+ - Include
9
+
10
+ #
11
+ # Common Ronin style rules:
12
+ #
13
+ Layout/FirstArrayElementIndentation: { Exclude: ['spec/**/*'] }
14
+ Layout/LineLength: { Enabled: false }
15
+ Layout/SpaceAroundEqualsInParameterDefault: { EnforcedStyle: 'no_space' }
16
+ Lint/ConstantDefinitionInBlock: { Exclude: ['spec/**/*'] }
17
+ Metrics: { Enabled: false }
18
+ Style/SymbolArray: { EnforcedStyle: 'brackets' }
19
+ Style/IfInsideElse: { Enabled: false } # Offense count: 1
20
+ Style/PercentLiteralDelimiters:
21
+ Enabled: true
22
+ PreferredDelimiters:
23
+ default: '{}'
24
+ '%i': '[]'
25
+ '%I': '[]'
26
+ '%w': '[]'
27
+ '%W': '[]'
28
+ Style/UnlessElse: { Enabled: false }
29
+ Bundler/OrderedGems: { Enabled: false }
30
+ Style/Next: { Enabled: false }
31
+ Style/HashSyntax: { Enabled: false }
32
+ Naming/PredicateName: { Enabled: false }
33
+ Naming/BlockForwarding: { Enabled: false }
34
+ Naming/RescuedExceptionsVariableName: { Enabled: false }
35
+ Lint/ReturnInVoidContext: { Enabled: false }
36
+ Lint/NoReturnInBeginEndBlocks: { Enabled: false }
37
+ Gemspec/DeprecatedAttributeAssignment: { Enabled: false }
38
+ Layout/EmptyLinesAroundClassBody: { Enabled: false }
39
+ Layout/EmptyLineAfterMagicComment: { Enabled: false }
40
+ Layout/FirstArgumentIndentation: { Enabled: false }
41
+ Layout/BeginEndAlignment: { Enabled: false }
42
+ Layout/RescueEnsureAlignment: { Enabled: false }
43
+ Layout/HashAlignment: { Enabled: false }
44
+ Layout/SpaceAfterComma: { Enabled: false }
45
+ Layout/SpaceInsideParens: { Enabled: false }
46
+ Layout/SpaceInsideHashLiteralBraces: { Enabled: false }
47
+ Style/MultilineBlockChain: { Enabled: false }
48
+ Style/NumericLiterals: { Enabled: false }
49
+ Style/RedundantInterpolation: { Enabled: false }
50
+ Style/FormatString: { Enabled: false }
51
+ Style/RedundantSelf: { Enabled: false }
52
+ Style/FetchEnvVar: { Enabled: false }
53
+ Style/BlockDelimiters: { Enabled: false }
54
+ Style/ClassCheck: { Enabled: false }
55
+ Style/FrozenStringLiteralComment: { Exclude: ['spec/**/*'] }
56
+ Style/GuardClause: { Enabled: false }
57
+ Style/IfUnlessModifier: { Enabled: false }
58
+ Style/SpecialGlobalVars: { Enabled: false }
59
+ Style/GlobalStdStream: { Exclude: ['spec/**/*'] }
60
+ Lint/ElseLayout: { Enabled: false }
61
+ Layout/ExtraSpacing:
62
+ AllowForAlignment: true
63
+ AllowBeforeTrailingComments: true
64
+ ForceEqualSignAlignment: true
65
+ Lint/EmptyClass: { Exclude: ['spec/**/*'] }
66
+ Lint/SuppressedException: { AllowComments: true }
67
+ Lint/UnusedMethodArgument: { Enabled: false }
68
+ Lint/UnusedBlockArgument: { Enabled: false }
69
+ Style/AccessorGrouping: { Enabled: false }
70
+ Style/KeywordParametersOrder: { Enabled: false }
71
+ Style/Lambda: { EnforcedStyle: 'literal' }
72
+ Style/MutableConstant: { Enabled: false }
73
+ Style/RedundantReturn: { Enabled: false }
74
+ Style/SafeNavigation: { Enabled: false }
75
+ Style/WordArray: { Enabled: false }
76
+ Layout/ParameterAlignment: { Enabled: false }
77
+ Layout/BlockAlignment: { Enabled: false }
78
+ Style/EmptyMethod: { Exclude: ['spec/**/*'] }
79
+ Style/NumericPredicate: { Enabled: false }
80
+ Style/OptionalArguments: { Enabled: false }
81
+ Style/ParenthesesAroundCondition: { Enabled: false }
82
+ Style/PreferredHashMethods: { EnforcedStyle: 'verbose' }
83
+ Style/QuotedSymbols: { EnforcedStyle: 'double_quotes' }
84
+ Style/RedundantRegexpEscape: { Enabled: false }
85
+ Style/RescueStandardError: { Enabled: false }
86
+ Style/SoleNestedConditional: { Enabled: false }
87
+ Layout/AssignmentIndentation: { Enabled: false }
88
+ Style/StringLiterals: { Enabled: false }
89
+ Layout/SpaceBeforeComma: { Enabled: false }
90
+
91
+ # rubocop cannot tell that rubygems_mfa_required is enabled in gemspec.yml
92
+ Gemspec/RequireMFA: { Enabled: false }
93
+
94
+ # make an exception for our gemspec code
95
+ Gemspec/DuplicatedAssignment: { Exclude: ['ronin*.gemspec'] }
metadata ADDED
@@ -0,0 +1,81 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rubocop-ronin
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Postmodern
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-02-25 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: '1.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.0'
41
+ description: |
42
+ rubocop-ronin is a set of common rubocop rules for the ronin-rb project.
43
+ This is necessary because rubocop's default configuration clashes with
44
+ ronin-rb's coding style, or sometimes even differs from the defacto Ruby
45
+ coding style.
46
+ email: postmodern.mod3@gmail.com
47
+ executables: []
48
+ extensions: []
49
+ extra_rdoc_files:
50
+ - LICENSE.txt
51
+ files:
52
+ - LICENSE.txt
53
+ - rubocop.yml
54
+ homepage: https://ronin-rb.dev/
55
+ licenses:
56
+ - MIT
57
+ metadata:
58
+ source_code_uri: https://github.com/ronin-rb/rubocop-ronin
59
+ bug_tracker_uri: https://github.com/ronin-rb/rubocop-ronin/issues
60
+ changelog_uri: https://github.com/ronin-rb/rubocop-ronin/blob/main/ChangeLog.md
61
+ rubygems_mfa_required: 'true'
62
+ post_install_message:
63
+ rdoc_options: []
64
+ require_paths:
65
+ - lib
66
+ required_ruby_version: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: '0'
71
+ required_rubygems_version: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ requirements: []
77
+ rubygems_version: 3.3.26
78
+ signing_key:
79
+ specification_version: 4
80
+ summary: rubocop configuration for the ronin-rb project
81
+ test_files: []