Skip to content

Commit 8d0ea6b

Browse files
authored
Remove rubocop generation (#326)
1 parent 203b238 commit 8d0ea6b

42 files changed

Lines changed: 62 additions & 211 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

gems/smithy/lib/smithy/generators/client.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ def gem_files
3535
e.yield 'VERSION', Views::Client::Version.new(@plan).render
3636
e.yield 'CHANGELOG.md', Views::Client::ChangelogMd.new.render
3737
e.yield "#{@gem_name}.gemspec", Views::Client::Gemspec.new(@plan).render
38-
e.yield '.rubocop.yml', Views::Client::RubocopYml.new(@plan).render
3938

4039
source_files.each { |file, content| e.yield file, content }
4140
e.yield "lib/#{@gem_name}/customizations.rb", Views::Client::Customizations.new.render

gems/smithy/lib/smithy/generators/schema.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ def gem_files
3535
e.yield 'VERSION', Views::Client::Version.new(@plan).render
3636
e.yield 'CHANGELOG.md', Views::Client::ChangelogMd.new.render
3737
e.yield "#{@gem_name}.gemspec", Views::Client::Gemspec.new(@plan).render
38-
e.yield '.rubocop.yml', Views::Client::RubocopYml.new(@plan).render
3938

4039
source_files.each { |file, content| e.yield file, content }
4140
e.yield "lib/#{@gem_name}/customizations.rb", Views::Client::Customizations.new.render

gems/smithy/lib/smithy/templates/client/auth_parameters.erb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,8 @@ module <%= module_name %>
1919
<% end -%>
2020
keyword_init: true
2121
) do
22-
2322
# @api private
2423
def self.create(context)
25-
# TODO: support more properties
2624
new(operation_name: context.operation_name)
2725
end
2826
end

gems/smithy/lib/smithy/templates/client/endpoint_parameters.erb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ module <%= module_name %>
1919
<% end -%>
2020
keyword_init: true
2121
) do
22-
2322
def initialize(options = {})
2423
<% parameters.each do |param| -%>
2524
self.<%= param.name %> = options.fetch(:<%= param.name %>, <%= param.default_value %>)

gems/smithy/lib/smithy/templates/client/endpoint_plugin.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module <%= module_name %>
99
option(
1010
:endpoint_provider,
1111
doc_type: '<%= module_name %>::EndpointProvider',
12-
docstring: <<~DOCS) do |config|
12+
docstring: <<~DOCS) do |_config|
1313
The endpoint provider used to resolve endpoints. Any object that responds to `#resolve(parameters)`.
1414
DOCS
1515
EndpointProvider.new

gems/smithy/lib/smithy/templates/client/errors.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ module <%= module_name %>
3939
# @param [Smithy::Client::HandlerContext] context
4040
# @param [<%= module_name %>::Types::<%= error.name %>] data
4141
def initialize(context, data = Smithy::Schema::EmptyStructure.new)
42-
super(context, data)
42+
super
4343
end
4444
<% error.members.each do |member| -%>
4545

gems/smithy/lib/smithy/templates/client/gemspec.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Gem::Specification.new do |spec|
66
spec.name = '<%= gem_name %>'
7-
spec.version = File.read(File.expand_path('../VERSION', __FILE__))
7+
spec.version = File.read(File.expand_path('VERSION', __dir__))
88
spec.summary = 'Generated gem using Smithy'
99
spec.authors = ['Smithy Ruby']
1010
spec.files = Dir['VERSION', 'CHANGELOG.md', 'lib/**/*.rb', base: __dir__]

gems/smithy/lib/smithy/templates/client/module.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<% requires.each do |require| -%>
66
require '<%= require %>'
7-
<% end %>
7+
<% end -%>
88

99
<% ["Object"].concat(module_names).each_cons(2) do |parent, child| -%>
1010
<%= parent %>.const_set('<%= child %>', Module.new) unless <%= parent %>.const_defined?('<%= child %>')

gems/smithy/lib/smithy/templates/client/rubocop_yml.erb

Lines changed: 0 additions & 33 deletions
This file was deleted.

gems/smithy/lib/smithy/templates/client/schema.erb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ module <%= module_name %>
6161
<% end -%>
6262
end)
6363
<% end -%>
64-
6564
end
6665

6766
class << self

0 commit comments

Comments
 (0)