switchcop 0.2.3 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9109474880cd374da1cad892aaaa35614b362b8292f8444cd7628a1605f735a0
4
- data.tar.gz: e90926eca02a75cad0fd26dfb433b63c6c8c2c3cb0198e54af08cc6ebbc13105
3
+ metadata.gz: 4789d7785d9790a1b6f19c9538c6899faf8691f2a0a274208898c2372f7cd650
4
+ data.tar.gz: 5305c3f4c24e9228e1a3ccdc3d4265d31da46f3df1ec43f14fd674c46c60a933
5
5
  SHA512:
6
- metadata.gz: 0fb279737c2dd0108d7422da04d28a11b2676b396a70873a8782485a266913bf9d64a14c4231c0459aba91ea9d70eedcadae4bed569a943c516bb16eba3ae9f8
7
- data.tar.gz: 31f03ba0f01c76d4324f205c918dc990c6523260b7f9a99c6a4d9d94a2acbe0dfe38a93bff2278ed66c9d6ed7754db6111e287a572ffecd345ec6918fc45eda2
6
+ metadata.gz: afadc60fdbf347011d02e639dba89ac7a4e3eb99165fcef22a41db8e2ad3f65cddab0c9a93b5f85fb606ae6f34f60e4ed5c64506722c957630aae0fb0f10788d
7
+ data.tar.gz: 9990637eb69fca971c6c9c432b4b6ce55f1941b80c17a303fdde0727b1fdd93821c4a14ee0c975057290f6cad496cf2c22492659e4967e94358c990e26428636
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "lint_roller"
4
+
5
+ module Switchcop
6
+ # Loads Switch Dreams' RuboCop configuration when switchcop is used as a
7
+ # plugin (`plugins: [switchcop]`). The `inherit_gem` entry point keeps
8
+ # working independently of this class.
9
+ class Plugin < LintRoller::Plugin
10
+ def about
11
+ LintRoller::About.new(
12
+ name: "switchcop",
13
+ version: Switchcop::VERSION,
14
+ homepage: "https://github.com/SwitchDreams/switchcop",
15
+ description: "Switch Dreams' style guide for Ruby, as a RuboCop plugin.",
16
+ )
17
+ end
18
+
19
+ def supported?(context)
20
+ context.engine == :rubocop
21
+ end
22
+
23
+ def rules(context)
24
+ LintRoller::Rules.new(
25
+ type: :path,
26
+ config_format: :rubocop,
27
+ value: File.expand_path("../../rubocop.yml", __dir__),
28
+ )
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Switchcop
4
+ VERSION = "1.0.0"
5
+ end
data/lib/switchcop.rb ADDED
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "switchcop/version"
4
+ require_relative "switchcop/plugin"
5
+
6
+ module Switchcop
7
+ end
data/rubocop.yml CHANGED
@@ -66,6 +66,9 @@ Rails/ThreeStateBooleanColumn:
66
66
  Rails/FindEach:
67
67
  Enabled: false
68
68
 
69
+ Rails/StrongParametersExpect:
70
+ Enabled: false
71
+
69
72
  # FactoryBot
70
73
 
71
74
  FactoryBot/AssociationStyle:
metadata CHANGED
@@ -1,112 +1,126 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: switchcop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Switch Dreams
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-06-30 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: lint_roller
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - "~>"
17
+ - !ruby/object:Gem::Version
18
+ version: '1.1'
19
+ type: :runtime
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - "~>"
24
+ - !ruby/object:Gem::Version
25
+ version: '1.1'
12
26
  - !ruby/object:Gem::Dependency
13
27
  name: rubocop
14
28
  requirement: !ruby/object:Gem::Requirement
15
29
  requirements:
16
30
  - - "~>"
17
31
  - !ruby/object:Gem::Version
18
- version: '1.75'
32
+ version: '1.92'
19
33
  type: :runtime
20
34
  prerelease: false
21
35
  version_requirements: !ruby/object:Gem::Requirement
22
36
  requirements:
23
37
  - - "~>"
24
38
  - !ruby/object:Gem::Version
25
- version: '1.75'
39
+ version: '1.92'
26
40
  - !ruby/object:Gem::Dependency
27
41
  name: rubocop-factory_bot
28
42
  requirement: !ruby/object:Gem::Requirement
29
43
  requirements:
30
44
  - - "~>"
31
45
  - !ruby/object:Gem::Version
32
- version: '2.27'
46
+ version: '2.28'
33
47
  type: :runtime
34
48
  prerelease: false
35
49
  version_requirements: !ruby/object:Gem::Requirement
36
50
  requirements:
37
51
  - - "~>"
38
52
  - !ruby/object:Gem::Version
39
- version: '2.27'
53
+ version: '2.28'
40
54
  - !ruby/object:Gem::Dependency
41
55
  name: rubocop-performance
42
56
  requirement: !ruby/object:Gem::Requirement
43
57
  requirements:
44
58
  - - "~>"
45
59
  - !ruby/object:Gem::Version
46
- version: '1.25'
60
+ version: '1.27'
47
61
  type: :runtime
48
62
  prerelease: false
49
63
  version_requirements: !ruby/object:Gem::Requirement
50
64
  requirements:
51
65
  - - "~>"
52
66
  - !ruby/object:Gem::Version
53
- version: '1.25'
67
+ version: '1.27'
54
68
  - !ruby/object:Gem::Dependency
55
69
  name: rubocop-rails
56
70
  requirement: !ruby/object:Gem::Requirement
57
71
  requirements:
58
72
  - - "~>"
59
73
  - !ruby/object:Gem::Version
60
- version: '2.31'
74
+ version: '2.38'
61
75
  type: :runtime
62
76
  prerelease: false
63
77
  version_requirements: !ruby/object:Gem::Requirement
64
78
  requirements:
65
79
  - - "~>"
66
80
  - !ruby/object:Gem::Version
67
- version: '2.31'
81
+ version: '2.38'
68
82
  - !ruby/object:Gem::Dependency
69
83
  name: rubocop-rspec
70
84
  requirement: !ruby/object:Gem::Requirement
71
85
  requirements:
72
86
  - - "~>"
73
87
  - !ruby/object:Gem::Version
74
- version: '3.5'
88
+ version: '3.10'
75
89
  type: :runtime
76
90
  prerelease: false
77
91
  version_requirements: !ruby/object:Gem::Requirement
78
92
  requirements:
79
93
  - - "~>"
80
94
  - !ruby/object:Gem::Version
81
- version: '3.5'
95
+ version: '3.10'
82
96
  - !ruby/object:Gem::Dependency
83
97
  name: rubocop-rspec_rails
84
98
  requirement: !ruby/object:Gem::Requirement
85
99
  requirements:
86
100
  - - "~>"
87
101
  - !ruby/object:Gem::Version
88
- version: '2.31'
102
+ version: '2.33'
89
103
  type: :runtime
90
104
  prerelease: false
91
105
  version_requirements: !ruby/object:Gem::Requirement
92
106
  requirements:
93
107
  - - "~>"
94
108
  - !ruby/object:Gem::Version
95
- version: '2.31'
109
+ version: '2.33'
96
110
  - !ruby/object:Gem::Dependency
97
111
  name: rubocop-shopify
98
112
  requirement: !ruby/object:Gem::Requirement
99
113
  requirements:
100
114
  - - "~>"
101
115
  - !ruby/object:Gem::Version
102
- version: '2.17'
116
+ version: '3.1'
103
117
  type: :runtime
104
118
  prerelease: false
105
119
  version_requirements: !ruby/object:Gem::Requirement
106
120
  requirements:
107
121
  - - "~>"
108
122
  - !ruby/object:Gem::Version
109
- version: '2.17'
123
+ version: '3.1'
110
124
  description: Gem containing the rubocop.yml config for Switch Dreams` style guide
111
125
  for Ruby.
112
126
  email:
@@ -116,6 +130,9 @@ extensions: []
116
130
  extra_rdoc_files: []
117
131
  files:
118
132
  - LICENSE.txt
133
+ - lib/switchcop.rb
134
+ - lib/switchcop/plugin.rb
135
+ - lib/switchcop/version.rb
119
136
  - rubocop.yml
120
137
  homepage: https://github.com/SwitchDreams/switchcop
121
138
  licenses:
@@ -124,6 +141,7 @@ metadata:
124
141
  homepage_uri: https://github.com/SwitchDreams/switchcop
125
142
  allowed_push_host: https://rubygems.org/
126
143
  source_code_uri: https://github.com/SwitchDreams/switchcop
144
+ default_lint_roller_plugin: Switchcop::Plugin
127
145
  rdoc_options: []
128
146
  require_paths:
129
147
  - lib
@@ -131,14 +149,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
131
149
  requirements:
132
150
  - - ">="
133
151
  - !ruby/object:Gem::Version
134
- version: 2.6.0
152
+ version: 3.3.0
135
153
  required_rubygems_version: !ruby/object:Gem::Requirement
136
154
  requirements:
137
155
  - - ">="
138
156
  - !ruby/object:Gem::Version
139
157
  version: '0'
140
158
  requirements: []
141
- rubygems_version: 3.6.2
159
+ rubygems_version: 4.0.9
142
160
  specification_version: 4
143
161
  summary: Switch Dreams' style guide for Ruby.
144
162
  test_files: []