hanami-cli 2.3.3 → 2.3.4
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/CHANGELOG.md +346 -225
- data/LICENSE +20 -0
- data/README.md +11 -20
- data/hanami-cli.gemspec +28 -30
- data/lib/hanami/cli/commands/app/assets/command.rb +1 -1
- data/lib/hanami/cli/commands/app/command.rb +3 -3
- data/lib/hanami/cli/commands/app/console.rb +1 -1
- data/lib/hanami/cli/commands/app/db/command.rb +3 -3
- data/lib/hanami/cli/commands/app/db/prepare.rb +1 -1
- data/lib/hanami/cli/commands/app/db/rollback.rb +6 -2
- data/lib/hanami/cli/commands/app/db/structure/dump.rb +1 -1
- data/lib/hanami/cli/commands/app/db/structure/load.rb +1 -1
- data/lib/hanami/cli/commands/app/db/utils/postgres.rb +2 -2
- data/lib/hanami/cli/commands/app/db/utils/sqlite.rb +3 -4
- data/lib/hanami/cli/commands/app/db/version.rb +1 -1
- data/lib/hanami/cli/commands/app/generate/action.rb +0 -2
- data/lib/hanami/cli/commands/app/generate/command.rb +2 -2
- data/lib/hanami/cli/commands/app/generate/component.rb +1 -1
- data/lib/hanami/cli/commands/app/generate/migration.rb +1 -1
- data/lib/hanami/cli/commands/app/generate/operation.rb +1 -1
- data/lib/hanami/cli/commands/app/generate/part.rb +1 -1
- data/lib/hanami/cli/commands/app/generate/relation.rb +1 -1
- data/lib/hanami/cli/commands/app/generate/repo.rb +1 -1
- data/lib/hanami/cli/commands/app/generate/slice.rb +1 -1
- data/lib/hanami/cli/commands/app/generate/struct.rb +1 -1
- data/lib/hanami/cli/commands/app/generate/view.rb +1 -1
- data/lib/hanami/cli/commands/app/install.rb +2 -0
- data/lib/hanami/cli/commands/app/middleware.rb +1 -1
- data/lib/hanami/cli/commands/app/routes.rb +1 -1
- data/lib/hanami/cli/commands/app/run.rb +10 -10
- data/lib/hanami/cli/commands/app.rb +1 -1
- data/lib/hanami/cli/commands/gem/new.rb +1 -4
- data/lib/hanami/cli/commands.rb +21 -12
- data/lib/hanami/cli/generators/app/action.rb +1 -3
- data/lib/hanami/cli/generators/app/component.rb +1 -1
- data/lib/hanami/cli/generators/app/migration.rb +1 -1
- data/lib/hanami/cli/generators/app/operation.rb +1 -1
- data/lib/hanami/cli/generators/app/relation.rb +1 -1
- data/lib/hanami/cli/generators/app/repo.rb +1 -1
- data/lib/hanami/cli/generators/app/ruby_file.rb +3 -3
- data/lib/hanami/cli/generators/app/slice.rb +4 -4
- data/lib/hanami/cli/generators/app/struct.rb +1 -1
- data/lib/hanami/cli/generators/app/view.rb +2 -2
- data/lib/hanami/cli/generators/constants.rb +1 -1
- data/lib/hanami/cli/ruby_file_generator.rb +1 -1
- data/lib/hanami/cli/version.rb +1 -1
- data/lib/hanami/console/plugins/unbooted_slice_warnings.rb +8 -0
- metadata +12 -79
- data/.github/FUNDING.yml +0 -1
- data/.github/workflows/ci.yml +0 -76
- data/.gitignore +0 -13
- data/.repobot.yml +0 -9
- data/.rspec +0 -2
- data/.rubocop.yml +0 -48
- data/.rubocop_todo.yml +0 -150
- data/.yardopts +0 -3
- data/CODE_OF_CONDUCT.md +0 -84
- data/Gemfile +0 -33
- data/LICENSE.md +0 -22
- data/Rakefile +0 -12
- data/bin/console +0 -15
- data/bin/setup +0 -8
- data/docker-compose.yml +0 -14
- data/project.yml +0 -2
- data/script/ci +0 -31
|
@@ -4,7 +4,6 @@ require "dry/files"
|
|
|
4
4
|
require_relative "../constants"
|
|
5
5
|
require_relative "../../errors"
|
|
6
6
|
|
|
7
|
-
# rubocop:disable Metrics/ParameterLists
|
|
8
7
|
module Hanami
|
|
9
8
|
module CLI
|
|
10
9
|
module Generators
|
|
@@ -124,7 +123,7 @@ module Hanami
|
|
|
124
123
|
view_generator.call(
|
|
125
124
|
key: key,
|
|
126
125
|
namespace: namespace,
|
|
127
|
-
base_path: base_path
|
|
126
|
+
base_path: base_path
|
|
128
127
|
)
|
|
129
128
|
end
|
|
130
129
|
end
|
|
@@ -195,4 +194,3 @@ module Hanami
|
|
|
195
194
|
end
|
|
196
195
|
end
|
|
197
196
|
end
|
|
198
|
-
# rubocop:enable Metrics/ParameterLists
|
|
@@ -42,7 +42,7 @@ module Hanami
|
|
|
42
42
|
# @api private
|
|
43
43
|
def fully_qualified_name
|
|
44
44
|
inflector.camelize(
|
|
45
|
-
[namespace, extra_namespace, *key_segments].join("/")
|
|
45
|
+
[namespace, extra_namespace, *key_segments].join("/")
|
|
46
46
|
)
|
|
47
47
|
end
|
|
48
48
|
|
|
@@ -62,7 +62,7 @@ module Hanami
|
|
|
62
62
|
:namespace,
|
|
63
63
|
:extra_namespace,
|
|
64
64
|
:auto_register,
|
|
65
|
-
:body
|
|
65
|
+
:body
|
|
66
66
|
)
|
|
67
67
|
|
|
68
68
|
# @api private
|
|
@@ -108,7 +108,7 @@ module Hanami
|
|
|
108
108
|
[
|
|
109
109
|
# Intentional ternary logic. Skip if nil, else 'true' or 'false'
|
|
110
110
|
("# auto_register: #{auto_register}" unless auto_register.nil?),
|
|
111
|
-
"# frozen_string_literal: true"
|
|
111
|
+
"# frozen_string_literal: true"
|
|
112
112
|
].compact
|
|
113
113
|
end
|
|
114
114
|
|
|
@@ -19,7 +19,7 @@ module Hanami
|
|
|
19
19
|
|
|
20
20
|
# @since 2.0.0
|
|
21
21
|
# @api private
|
|
22
|
-
def call(app, slice, url, **opts)
|
|
22
|
+
def call(app, slice, url, **opts) # rubocop:disable Metrics/AbcSize
|
|
23
23
|
skip_route = opts.fetch(:skip_route, false)
|
|
24
24
|
|
|
25
25
|
unless skip_route
|
|
@@ -121,7 +121,7 @@ module Hanami
|
|
|
121
121
|
namespace: slice,
|
|
122
122
|
key: "db.relation",
|
|
123
123
|
base_path: directory,
|
|
124
|
-
parent_class_name: "#{Hanami.app.namespace}::DB::Relation"
|
|
124
|
+
parent_class_name: "#{Hanami.app.namespace}::DB::Relation"
|
|
125
125
|
).create
|
|
126
126
|
|
|
127
127
|
RubyClassFile.new(
|
|
@@ -130,7 +130,7 @@ module Hanami
|
|
|
130
130
|
namespace: slice,
|
|
131
131
|
key: "db.repo",
|
|
132
132
|
base_path: directory,
|
|
133
|
-
parent_class_name: "#{Hanami.app.namespace}::DB::Repo"
|
|
133
|
+
parent_class_name: "#{Hanami.app.namespace}::DB::Repo"
|
|
134
134
|
).create
|
|
135
135
|
|
|
136
136
|
RubyClassFile.new(
|
|
@@ -139,7 +139,7 @@ module Hanami
|
|
|
139
139
|
namespace: slice,
|
|
140
140
|
key: "db.struct",
|
|
141
141
|
base_path: directory,
|
|
142
|
-
parent_class_name: "#{Hanami.app.namespace}::DB::Struct"
|
|
142
|
+
parent_class_name: "#{Hanami.app.namespace}::DB::Struct"
|
|
143
143
|
).create
|
|
144
144
|
|
|
145
145
|
fs.touch(fs.join(directory, "relations", ".keep"))
|
|
@@ -47,7 +47,7 @@ module Hanami
|
|
|
47
47
|
key: key,
|
|
48
48
|
base_path: base_path,
|
|
49
49
|
parent_class_name: "#{inflector.camelize(namespace)}::View",
|
|
50
|
-
extra_namespace: "Views"
|
|
50
|
+
extra_namespace: "Views"
|
|
51
51
|
)
|
|
52
52
|
end
|
|
53
53
|
|
|
@@ -60,7 +60,7 @@ module Hanami
|
|
|
60
60
|
base_path,
|
|
61
61
|
TEMPLATES_FOLDER,
|
|
62
62
|
module_names_from_key,
|
|
63
|
-
template_file_name(class_name_from_key, DEFAULT_FORMAT)
|
|
63
|
+
template_file_name(class_name_from_key, DEFAULT_FORMAT)
|
|
64
64
|
)
|
|
65
65
|
body = "<h1>#{view_class_name}</h1>\n"
|
|
66
66
|
fs.create(file_path, body)
|
data/lib/hanami/cli/version.rb
CHANGED
|
@@ -12,6 +12,8 @@ module Hanami
|
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
def self.activate
|
|
15
|
+
return if @activated
|
|
16
|
+
|
|
15
17
|
warning_shown_for_slice = {}
|
|
16
18
|
|
|
17
19
|
# Define the wrapper method with access to the context via closure
|
|
@@ -29,10 +31,16 @@ module Hanami
|
|
|
29
31
|
end
|
|
30
32
|
|
|
31
33
|
Hanami::Slice::ClassMethods.prepend(SliceExtension)
|
|
34
|
+
|
|
35
|
+
@activated = true
|
|
32
36
|
end
|
|
33
37
|
|
|
34
38
|
def self.deactivate
|
|
39
|
+
return unless @activated
|
|
40
|
+
|
|
35
41
|
SliceExtension.remove_method :keys
|
|
42
|
+
|
|
43
|
+
@activated = false
|
|
36
44
|
end
|
|
37
45
|
end
|
|
38
46
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hanami-cli
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.3.
|
|
4
|
+
version: 2.3.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Hanakai team
|
|
@@ -53,9 +53,6 @@ dependencies:
|
|
|
53
53
|
- - ">="
|
|
54
54
|
- !ruby/object:Gem::Version
|
|
55
55
|
version: 1.0.2
|
|
56
|
-
- - "<"
|
|
57
|
-
- !ruby/object:Gem::Version
|
|
58
|
-
version: '2'
|
|
59
56
|
type: :runtime
|
|
60
57
|
prerelease: false
|
|
61
58
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -66,9 +63,6 @@ dependencies:
|
|
|
66
63
|
- - ">="
|
|
67
64
|
- !ruby/object:Gem::Version
|
|
68
65
|
version: 1.0.2
|
|
69
|
-
- - "<"
|
|
70
|
-
- !ruby/object:Gem::Version
|
|
71
|
-
version: '2'
|
|
72
66
|
- !ruby/object:Gem::Dependency
|
|
73
67
|
name: dry-inflector
|
|
74
68
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -76,9 +70,6 @@ dependencies:
|
|
|
76
70
|
- - "~>"
|
|
77
71
|
- !ruby/object:Gem::Version
|
|
78
72
|
version: '1.0'
|
|
79
|
-
- - "<"
|
|
80
|
-
- !ruby/object:Gem::Version
|
|
81
|
-
version: '2'
|
|
82
73
|
type: :runtime
|
|
83
74
|
prerelease: false
|
|
84
75
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -86,9 +77,6 @@ dependencies:
|
|
|
86
77
|
- - "~>"
|
|
87
78
|
- !ruby/object:Gem::Version
|
|
88
79
|
version: '1.0'
|
|
89
|
-
- - "<"
|
|
90
|
-
- !ruby/object:Gem::Version
|
|
91
|
-
version: '2'
|
|
92
80
|
- !ruby/object:Gem::Dependency
|
|
93
81
|
name: irb
|
|
94
82
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -145,73 +133,20 @@ dependencies:
|
|
|
145
133
|
- - ">="
|
|
146
134
|
- !ruby/object:Gem::Version
|
|
147
135
|
version: '0'
|
|
148
|
-
|
|
149
|
-
name: rspec
|
|
150
|
-
requirement: !ruby/object:Gem::Requirement
|
|
151
|
-
requirements:
|
|
152
|
-
- - "~>"
|
|
153
|
-
- !ruby/object:Gem::Version
|
|
154
|
-
version: '3.9'
|
|
155
|
-
type: :development
|
|
156
|
-
prerelease: false
|
|
157
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
158
|
-
requirements:
|
|
159
|
-
- - "~>"
|
|
160
|
-
- !ruby/object:Gem::Version
|
|
161
|
-
version: '3.9'
|
|
162
|
-
- !ruby/object:Gem::Dependency
|
|
163
|
-
name: rubocop
|
|
164
|
-
requirement: !ruby/object:Gem::Requirement
|
|
165
|
-
requirements:
|
|
166
|
-
- - "~>"
|
|
167
|
-
- !ruby/object:Gem::Version
|
|
168
|
-
version: '1.0'
|
|
169
|
-
type: :development
|
|
170
|
-
prerelease: false
|
|
171
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
172
|
-
requirements:
|
|
173
|
-
- - "~>"
|
|
174
|
-
- !ruby/object:Gem::Version
|
|
175
|
-
version: '1.0'
|
|
176
|
-
- !ruby/object:Gem::Dependency
|
|
177
|
-
name: puma
|
|
178
|
-
requirement: !ruby/object:Gem::Requirement
|
|
179
|
-
requirements:
|
|
180
|
-
- - ">="
|
|
181
|
-
- !ruby/object:Gem::Version
|
|
182
|
-
version: '0'
|
|
183
|
-
type: :development
|
|
184
|
-
prerelease: false
|
|
185
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
186
|
-
requirements:
|
|
187
|
-
- - ">="
|
|
188
|
-
- !ruby/object:Gem::Version
|
|
189
|
-
version: '0'
|
|
190
|
-
description: Hanami command line
|
|
136
|
+
description: The CLI for the Hanami framework
|
|
191
137
|
email:
|
|
192
138
|
- info@hanakai.org
|
|
193
139
|
executables:
|
|
194
140
|
- hanami
|
|
195
141
|
extensions: []
|
|
196
|
-
extra_rdoc_files:
|
|
142
|
+
extra_rdoc_files:
|
|
143
|
+
- CHANGELOG.md
|
|
144
|
+
- LICENSE
|
|
145
|
+
- README.md
|
|
197
146
|
files:
|
|
198
|
-
- ".github/FUNDING.yml"
|
|
199
|
-
- ".github/workflows/ci.yml"
|
|
200
|
-
- ".gitignore"
|
|
201
|
-
- ".repobot.yml"
|
|
202
|
-
- ".rspec"
|
|
203
|
-
- ".rubocop.yml"
|
|
204
|
-
- ".rubocop_todo.yml"
|
|
205
|
-
- ".yardopts"
|
|
206
147
|
- CHANGELOG.md
|
|
207
|
-
-
|
|
208
|
-
- Gemfile
|
|
209
|
-
- LICENSE.md
|
|
148
|
+
- LICENSE
|
|
210
149
|
- README.md
|
|
211
|
-
- Rakefile
|
|
212
|
-
- bin/console
|
|
213
|
-
- bin/setup
|
|
214
|
-
- docker-compose.yml
|
|
215
150
|
- exe/hanami
|
|
216
151
|
- hanami-cli.gemspec
|
|
217
152
|
- lib/hanami-cli.rb
|
|
@@ -330,17 +265,15 @@ files:
|
|
|
330
265
|
- lib/hanami/console/context.rb
|
|
331
266
|
- lib/hanami/console/plugins/slice_readers.rb
|
|
332
267
|
- lib/hanami/console/plugins/unbooted_slice_warnings.rb
|
|
333
|
-
- project.yml
|
|
334
|
-
- script/ci
|
|
335
268
|
homepage: https://hanamirb.org
|
|
336
269
|
licenses:
|
|
337
270
|
- MIT
|
|
338
271
|
metadata:
|
|
339
272
|
allowed_push_host: https://rubygems.org
|
|
340
|
-
|
|
341
|
-
source_code_uri: https://github.com/hanami/cli
|
|
342
|
-
|
|
343
|
-
|
|
273
|
+
changelog_uri: https://github.com/hanami/hanami-cli/blob/main/CHANGELOG.md
|
|
274
|
+
source_code_uri: https://github.com/hanami/hanami-cli
|
|
275
|
+
bug_tracker_uri: https://github.com/hanami/hanami-cli/issues
|
|
276
|
+
funding_uri: https://github.com/sponsors/hanami
|
|
344
277
|
rdoc_options: []
|
|
345
278
|
require_paths:
|
|
346
279
|
- lib
|
|
@@ -357,5 +290,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
357
290
|
requirements: []
|
|
358
291
|
rubygems_version: 3.6.9
|
|
359
292
|
specification_version: 4
|
|
360
|
-
summary: Hanami
|
|
293
|
+
summary: The CLI for the Hanami framework
|
|
361
294
|
test_files: []
|
data/.github/FUNDING.yml
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
github: hanami
|
data/.github/workflows/ci.yml
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
name: ci
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
paths:
|
|
6
|
-
- ".github/workflows/ci.yml"
|
|
7
|
-
- "lib/**"
|
|
8
|
-
- "*.gemspec"
|
|
9
|
-
- "spec/**"
|
|
10
|
-
- "Rakefile"
|
|
11
|
-
- "Gemfile"
|
|
12
|
-
- ".rubocop.yml"
|
|
13
|
-
pull_request:
|
|
14
|
-
branches:
|
|
15
|
-
- main
|
|
16
|
-
schedule:
|
|
17
|
-
- cron: "30 4 * * *"
|
|
18
|
-
create:
|
|
19
|
-
|
|
20
|
-
jobs:
|
|
21
|
-
tests:
|
|
22
|
-
runs-on: ubuntu-latest
|
|
23
|
-
strategy:
|
|
24
|
-
fail-fast: false
|
|
25
|
-
matrix:
|
|
26
|
-
ruby:
|
|
27
|
-
- "3.4"
|
|
28
|
-
- "3.3"
|
|
29
|
-
- "3.2"
|
|
30
|
-
rack:
|
|
31
|
-
- "~> 2.0"
|
|
32
|
-
- "~> 3.0"
|
|
33
|
-
name: tests (Ruby ${{ matrix.ruby }}, Rack ${{ matrix.rack }})
|
|
34
|
-
env:
|
|
35
|
-
POSTGRES_BASE_URL: postgres://postgres:password@localhost:5432/hanami_cli_test
|
|
36
|
-
steps:
|
|
37
|
-
- uses: actions/checkout@v1
|
|
38
|
-
- name: Install package dependencies
|
|
39
|
-
run: "[ -e $APT_DEPS ] || sudo apt-get install -y --no-install-recommends $APT_DEPS"
|
|
40
|
-
- name: Set up Ruby
|
|
41
|
-
uses: ruby/setup-ruby@v1
|
|
42
|
-
with:
|
|
43
|
-
ruby-version: ${{matrix.ruby}}
|
|
44
|
-
bundler-cache: true
|
|
45
|
-
env:
|
|
46
|
-
RACK_VERSION_CONSTRAINT: ${{matrix.rack}}
|
|
47
|
-
- name: Run all tests
|
|
48
|
-
run: script/ci
|
|
49
|
-
env:
|
|
50
|
-
RACK_VERSION_CONSTRAINT: ${{matrix.rack}}
|
|
51
|
-
services:
|
|
52
|
-
mysql:
|
|
53
|
-
image: mysql:latest
|
|
54
|
-
env:
|
|
55
|
-
MYSQL_ROOT_PASSWORD: password
|
|
56
|
-
ports:
|
|
57
|
-
- 3307:3306
|
|
58
|
-
options: >-
|
|
59
|
-
--health-cmd "mysqladmin ping"
|
|
60
|
-
--health-interval 10s
|
|
61
|
-
--health-timeout 5s
|
|
62
|
-
--health-retries 3
|
|
63
|
-
postgres:
|
|
64
|
-
# Use postgres:14 for CLI compatibility with ubuntu-latest, currently ubuntu-22.04
|
|
65
|
-
# See https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2204-Readme.md
|
|
66
|
-
image: postgres:14
|
|
67
|
-
env:
|
|
68
|
-
POSTGRES_USER: postgres
|
|
69
|
-
POSTGRES_PASSWORD: password
|
|
70
|
-
ports:
|
|
71
|
-
- 5432:5432
|
|
72
|
-
options: >-
|
|
73
|
-
--health-cmd pg_isready
|
|
74
|
-
--health-interval 10s
|
|
75
|
-
--health-timeout 5s
|
|
76
|
-
--health-retries 5
|
data/.gitignore
DELETED
data/.repobot.yml
DELETED
data/.rspec
DELETED
data/.rubocop.yml
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
# Please keep AllCops, Bundler, Style, Metrics groups and then order cops
|
|
2
|
-
# alphabetically
|
|
3
|
-
AllCops:
|
|
4
|
-
SuggestExtensions: false
|
|
5
|
-
inherit_from:
|
|
6
|
-
- .rubocop_todo.yml
|
|
7
|
-
- https://raw.githubusercontent.com/hanami/devtools/main/.rubocop.yml
|
|
8
|
-
|
|
9
|
-
Layout/LineLength:
|
|
10
|
-
Exclude:
|
|
11
|
-
- Gemfile
|
|
12
|
-
- 'spec/**/*.rb'
|
|
13
|
-
Lint/DuplicateBranch:
|
|
14
|
-
Enabled: false
|
|
15
|
-
Lint/EmptyFile:
|
|
16
|
-
Exclude:
|
|
17
|
-
- 'spec/fixtures/**/*.rb'
|
|
18
|
-
Lint/NonLocalExitFromIterator:
|
|
19
|
-
Enabled: false
|
|
20
|
-
Naming/HeredocDelimiterNaming:
|
|
21
|
-
Enabled: false
|
|
22
|
-
Naming/MethodParameterName:
|
|
23
|
-
AllowedNames:
|
|
24
|
-
- fs
|
|
25
|
-
Naming/RescuedExceptionsVariableName:
|
|
26
|
-
Enabled: false
|
|
27
|
-
Style/AccessorGrouping:
|
|
28
|
-
Enabled: false
|
|
29
|
-
Style/BlockDelimiters:
|
|
30
|
-
Enabled: false
|
|
31
|
-
Style/CommentedKeyword:
|
|
32
|
-
Enabled: false
|
|
33
|
-
Style/EmptyHeredoc:
|
|
34
|
-
Enabled: false
|
|
35
|
-
Style/IdenticalConditionalBranches:
|
|
36
|
-
Enabled: false
|
|
37
|
-
Style/LambdaCall:
|
|
38
|
-
Enabled: false
|
|
39
|
-
Style/TrailingCommaInArguments:
|
|
40
|
-
Enabled: false
|
|
41
|
-
Style/TrailingCommaInArrayLiteral:
|
|
42
|
-
Enabled: false
|
|
43
|
-
Style/TrailingCommaInHashLiteral:
|
|
44
|
-
Enabled: false
|
|
45
|
-
Style/StringConcatenation:
|
|
46
|
-
Enabled: false
|
|
47
|
-
Style/ZeroLengthPredicate:
|
|
48
|
-
Enabled: false
|
data/.rubocop_todo.yml
DELETED
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
# This configuration was generated by
|
|
2
|
-
# `rubocop --auto-gen-config --auto-gen-only-exclude --no-exclude-limit --no-offense-counts --no-auto-gen-timestamp`
|
|
3
|
-
# using RuboCop version 1.81.1.
|
|
4
|
-
# The point is for the user to remove these configuration records
|
|
5
|
-
# one by one as the offenses are removed from the code base.
|
|
6
|
-
# Note that changes in the inspected code, or installation of new
|
|
7
|
-
# versions of RuboCop, may require this file to be generated again.
|
|
8
|
-
|
|
9
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
10
|
-
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
|
11
|
-
Lint/AmbiguousBlockAssociation:
|
|
12
|
-
Exclude:
|
|
13
|
-
- 'lib/hanami/cli/commands/app/db/command.rb'
|
|
14
|
-
|
|
15
|
-
# Configuration parameters: AllowedParentClasses.
|
|
16
|
-
Lint/MissingSuper:
|
|
17
|
-
Exclude:
|
|
18
|
-
- 'lib/hanami/cli/commands/app/install.rb'
|
|
19
|
-
|
|
20
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
21
|
-
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
|
22
|
-
Lint/UnusedBlockArgument:
|
|
23
|
-
Exclude:
|
|
24
|
-
- 'spec/unit/hanami/cli/commands/app/db/rollback_spec.rb'
|
|
25
|
-
|
|
26
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
27
|
-
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods, NotImplementedExceptions.
|
|
28
|
-
# NotImplementedExceptions: NotImplementedError
|
|
29
|
-
Lint/UnusedMethodArgument:
|
|
30
|
-
Exclude:
|
|
31
|
-
- 'lib/hanami/cli/commands/app/install.rb'
|
|
32
|
-
- 'lib/hanami/cli/generators/app/action.rb'
|
|
33
|
-
- 'lib/hanami/cli/generators/app/part.rb'
|
|
34
|
-
|
|
35
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
36
|
-
Lint/UselessAssignment:
|
|
37
|
-
Exclude:
|
|
38
|
-
- 'spec/support/postgres.rb'
|
|
39
|
-
|
|
40
|
-
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes, Max.
|
|
41
|
-
Metrics/AbcSize:
|
|
42
|
-
Exclude:
|
|
43
|
-
- 'lib/hanami/cli/commands/app.rb'
|
|
44
|
-
- 'lib/hanami/cli/commands/app/db/prepare.rb'
|
|
45
|
-
- 'lib/hanami/cli/commands/app/db/rollback.rb'
|
|
46
|
-
- 'lib/hanami/cli/commands/app/db/structure/dump.rb'
|
|
47
|
-
- 'lib/hanami/cli/commands/app/db/structure/load.rb'
|
|
48
|
-
- 'lib/hanami/cli/commands/app/db/utils/postgres.rb'
|
|
49
|
-
- 'lib/hanami/cli/generators/app/slice.rb'
|
|
50
|
-
|
|
51
|
-
# Configuration parameters: AllowedMethods, AllowedPatterns, Max.
|
|
52
|
-
Metrics/CyclomaticComplexity:
|
|
53
|
-
Exclude:
|
|
54
|
-
- 'lib/hanami/cli/commands/app/db/rollback.rb'
|
|
55
|
-
|
|
56
|
-
# Configuration parameters: Max, CountKeywordArgs, MaxOptionalParameters.
|
|
57
|
-
Metrics/ParameterLists:
|
|
58
|
-
Exclude:
|
|
59
|
-
- 'lib/hanami/cli/commands/app/db/command.rb'
|
|
60
|
-
- 'lib/hanami/cli/commands/app/db/migrate.rb'
|
|
61
|
-
- 'lib/hanami/cli/commands/app/db/rollback.rb'
|
|
62
|
-
- 'lib/hanami/cli/generators/app/ruby_file.rb'
|
|
63
|
-
|
|
64
|
-
# Configuration parameters: AllowedMethods, AllowedPatterns, Max.
|
|
65
|
-
Metrics/PerceivedComplexity:
|
|
66
|
-
Exclude:
|
|
67
|
-
- 'lib/hanami/cli/commands/app/db/command.rb'
|
|
68
|
-
- 'lib/hanami/cli/commands/app/db/rollback.rb'
|
|
69
|
-
|
|
70
|
-
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
|
|
71
|
-
# SupportedStyles: snake_case, normalcase, non_integer
|
|
72
|
-
# AllowedIdentifiers: TLS1_1, TLS1_2, capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64
|
|
73
|
-
Naming/VariableNumber:
|
|
74
|
-
Exclude:
|
|
75
|
-
- 'spec/support/hanami_cli_environment.rb'
|
|
76
|
-
- 'spec/unit/hanami/cli/commands/app/db/structure/dump_spec.rb'
|
|
77
|
-
|
|
78
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
79
|
-
Style/CombinableLoops:
|
|
80
|
-
Exclude:
|
|
81
|
-
- 'lib/hanami/cli/commands/app/db/prepare.rb'
|
|
82
|
-
|
|
83
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
84
|
-
Style/FileNull:
|
|
85
|
-
Exclude:
|
|
86
|
-
- 'spec/integration/hanami/cli/commands/app/server_spec.rb'
|
|
87
|
-
|
|
88
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
89
|
-
# Configuration parameters: MaxUnannotatedPlaceholdersAllowed, Mode, AllowedMethods, AllowedPatterns.
|
|
90
|
-
# SupportedStyles: annotated, template, unannotated
|
|
91
|
-
Style/FormatStringToken:
|
|
92
|
-
EnforcedStyle: template
|
|
93
|
-
|
|
94
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
95
|
-
# Configuration parameters: EnforcedStyle.
|
|
96
|
-
# SupportedStyles: always, always_true, never
|
|
97
|
-
Style/FrozenStringLiteralComment:
|
|
98
|
-
Exclude:
|
|
99
|
-
- '**/*.arb'
|
|
100
|
-
- 'spec/support/matchers.rb'
|
|
101
|
-
|
|
102
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
103
|
-
Style/MapToHash:
|
|
104
|
-
Exclude:
|
|
105
|
-
- 'lib/hanami/cli/commands/app/db/utils/database.rb'
|
|
106
|
-
|
|
107
|
-
# Configuration parameters: EnforcedStyle.
|
|
108
|
-
# SupportedStyles: allow_single_line, disallow
|
|
109
|
-
Style/NumberedParameters:
|
|
110
|
-
Exclude:
|
|
111
|
-
- 'lib/hanami/cli/commands/app/db/command.rb'
|
|
112
|
-
|
|
113
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
114
|
-
# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
|
|
115
|
-
# SupportedStyles: predicate, comparison
|
|
116
|
-
Style/NumericPredicate:
|
|
117
|
-
Exclude:
|
|
118
|
-
- 'spec/**/*'
|
|
119
|
-
- 'lib/hanami/cli/commands/app/db/create.rb'
|
|
120
|
-
- 'lib/hanami/cli/commands/app/db/drop.rb'
|
|
121
|
-
- 'lib/hanami/cli/commands/app/db/structure/dump.rb'
|
|
122
|
-
- 'lib/hanami/cli/commands/app/db/structure/load.rb'
|
|
123
|
-
|
|
124
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
125
|
-
Style/RedundantBegin:
|
|
126
|
-
Exclude:
|
|
127
|
-
- 'lib/hanami/cli/commands/app/db/utils/sqlite.rb'
|
|
128
|
-
|
|
129
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
130
|
-
Style/RedundantInterpolationUnfreeze:
|
|
131
|
-
Exclude:
|
|
132
|
-
- 'lib/hanami/cli/commands/app/db/utils/postgres.rb'
|
|
133
|
-
|
|
134
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
135
|
-
Style/RedundantRegexpEscape:
|
|
136
|
-
Exclude:
|
|
137
|
-
- 'lib/hanami/cli/generators/constants.rb'
|
|
138
|
-
|
|
139
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
140
|
-
# Configuration parameters: AllowMultipleReturnValues.
|
|
141
|
-
Style/RedundantReturn:
|
|
142
|
-
Exclude:
|
|
143
|
-
- 'lib/hanami/cli/commands/app/db/rollback.rb'
|
|
144
|
-
|
|
145
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
146
|
-
# Configuration parameters: EnforcedStyle.
|
|
147
|
-
# SupportedStyles: implicit, explicit
|
|
148
|
-
Style/RescueStandardError:
|
|
149
|
-
Exclude:
|
|
150
|
-
- 'lib/hanami/cli/commands/app/db/utils/sqlite.rb'
|