rubocop-next 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.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/rubocop.yml +95 -0
  4. metadata +115 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 4beeef72c2b0044657555d8ad15882f92992455714bbbf2e3615fddc82b1751b
4
+ data.tar.gz: db31f9dc181cf2a12fca7c991ec480d01990115945af9064625f2fd7ad6d260d
5
+ SHA512:
6
+ metadata.gz: a331920f64232df31d5e534864b3f96bcb0ec50ca6d34fb5b6e179801d5818101c472970c9eecfea3b1f792ef55980c49ae35786f5ad35febe5cf18911ef6274
7
+ data.tar.gz: f232a50c0fec9b290702fe1d08e9589991ebb411897a0597bc43f75d99f860c503d3db4738cdcdadcd67d94cc0bfa1b30ceb4ea19e528134e7353a2cd595b7a0
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Next TMS
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 all
13
+ 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 THE
21
+ SOFTWARE.
data/rubocop.yml ADDED
@@ -0,0 +1,95 @@
1
+ require:
2
+ - rubocop-rails
3
+ - rubocop-rake
4
+ - rubocop-rspec
5
+ - rubocop-graphql
6
+
7
+ inherit_gem:
8
+ rubocop-shopify: rubocop.yml
9
+
10
+ AllCops:
11
+ NewCops: disable
12
+
13
+ Layout/ArgumentAlignment:
14
+ EnforcedStyle: with_first_argument
15
+
16
+ Layout/ArrayAlignment:
17
+ EnforcedStyle: with_first_element
18
+
19
+ Layout/EndAlignment:
20
+ EnforcedStyleAlignWith: keyword
21
+
22
+ Layout/FirstArrayElementIndentation:
23
+ EnforcedStyle: align_brackets
24
+
25
+ Layout/LineEndStringConcatenationIndentation:
26
+ Enabled: true
27
+ EnforcedStyle: aligned
28
+
29
+ Layout/MultilineOperationIndentation:
30
+ EnforcedStyle: aligned
31
+ IndentationWidth:
32
+
33
+ Layout/MultilineMethodCallIndentation:
34
+ EnforcedStyle: indented_relative_to_receiver
35
+ IndentationWidth: 0
36
+
37
+ Lint/LambdaWithoutLiteralBlock:
38
+ Enabled: true
39
+
40
+ Metrics/AbcSize:
41
+ Max: 35
42
+
43
+ Metrics/ClassLength:
44
+ Max: 150
45
+
46
+ Metrics/MethodLength:
47
+ Max: 30
48
+
49
+ Metrics/ModuleLength:
50
+ Max: 150
51
+
52
+ Style/Documentation:
53
+ Enabled: false
54
+
55
+ Style/GuardClause:
56
+ Enabled: false
57
+
58
+ Style/ModuleFunction:
59
+ EnforcedStyle: extend_self
60
+
61
+ Style/ClassAndModuleChildren:
62
+ Enabled: false
63
+
64
+ Style/StringConcatenation:
65
+ Enabled: true
66
+ Mode: aggressive
67
+
68
+ Style/StringLiterals:
69
+ EnforcedStyle: single_quotes
70
+
71
+ Style/SymbolArray:
72
+ EnforcedStyle: percent
73
+
74
+ Style/TrailingCommaInHashLiteral:
75
+ EnforcedStyleForMultiline: no_comma
76
+
77
+
78
+ # ------ GraphQL -----
79
+
80
+ # Added default description on fields on app/graphl/types/base_field.rb
81
+ GraphQL/FieldDescription:
82
+ Enabled: false
83
+
84
+ # Added default description on arguments on app/graphl/types/base_argument.rb
85
+ GraphQL/ArgumentDescription:
86
+ Enabled: false
87
+
88
+ # Not very useful. It collects all attributes that has the same prefix e.g
89
+ # Shipment has broker_carrier, broker_customer and it would suggest to create a
90
+ # Broker Type, and add #carrier and #customer fields on it
91
+ GraphQL/ExtractType:
92
+ Enabled: false
93
+
94
+ GraphQL/ExtractInputType:
95
+ Enabled: false
metadata ADDED
@@ -0,0 +1,115 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rubocop-next
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Third Party Transportation Systems LLC
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-08-19 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.56.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.56.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: rubocop-rails
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 2.20.2
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 2.20.2
41
+ - !ruby/object:Gem::Dependency
42
+ name: rubocop-rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 0.6.0
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 0.6.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: rubocop-rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 2.23.2
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 2.23.2
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubocop-shopify
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 2.14.0
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 2.14.0
83
+ description: Rubocop configuration
84
+ email: hello@next-tms.com
85
+ executables: []
86
+ extensions: []
87
+ extra_rdoc_files: []
88
+ files:
89
+ - LICENSE
90
+ - rubocop.yml
91
+ homepage: https://github.com/next-tms/interstellar
92
+ licenses: []
93
+ metadata:
94
+ allowed_push_host: https://rubygems.org
95
+ source_code_uri: https://github.com/next-tms/rubocop-next/tree/v1.0.0
96
+ post_install_message:
97
+ rdoc_options: []
98
+ require_paths:
99
+ - lib
100
+ required_ruby_version: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: 3.2.0
105
+ required_rubygems_version: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ requirements: []
111
+ rubygems_version: 3.4.10
112
+ signing_key:
113
+ specification_version: 4
114
+ summary: Rubocop configuration
115
+ test_files: []