Skip to content

Commit

Permalink
Move task to lib/tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
stejskalleos committed Mar 20, 2024
1 parent fd083a6 commit ae36cec
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 26 deletions.
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
inherit_from: .rubocop_todo.yml

require:
- rubocop-performance

AllCops:
NewCops: enable

Expand Down
36 changes: 14 additions & 22 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,12 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2024-03-14 11:01:11 UTC using RuboCop version 1.50.2.
# on 2024-03-14 13:38:49 UTC using RuboCop version 1.57.2.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: Severity, Include.
# Include: **/*.gemspec
Gemspec/DeprecatedAttributeAssignment:
Exclude:
- 'foreman_azure_rm.gemspec'

# Offense count: 1
# Configuration parameters: EnforcedStyle, AllowedGems, Include.
# SupportedStyles: Gemfile, gems.rb, gemspec
# Include: **/*.gemspec, **/Gemfile, **/gems.rb
Gemspec/DevelopmentDependencies:
Exclude:
- 'foreman_azure_rm.gemspec'

# Offense count: 3
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
# Include: **/*.gemspec
Expand Down Expand Up @@ -72,7 +56,7 @@ Layout/EmptyLineAfterGuardClause:

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs, EmptyLineBetweenModuleDefs, AllowAdjacentOneLineDefs, NumberOfEmptyLines.
# Configuration parameters: EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs, EmptyLineBetweenModuleDefs, DefLikeMacros, AllowAdjacentOneLineDefs, NumberOfEmptyLines.
Layout/EmptyLineBetweenDefs:
Exclude:
- 'app/helpers/azure_compute_resource_helper.rb'
Expand Down Expand Up @@ -245,13 +229,12 @@ Layout/SpaceInsideHashLiteralBraces:
- 'app/models/foreman_azure_rm/azure_rm_compute.rb'
- 'test/azure_rm_test_helper.rb'

# Offense count: 12
# Offense count: 11
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: final_newline, final_blank_line
Layout/TrailingEmptyLines:
Exclude:
- 'Gemfile'
- 'Rakefile'
- 'app/controllers/foreman_azure_rm/concerns/compute_resources_controller_extensions.rb'
- 'app/views/api/v2/compute_resources/available_resource_groups.rabl'
Expand Down Expand Up @@ -334,6 +317,7 @@ Lint/UnusedMethodArgument:
- 'app/models/foreman_azure_rm/azure_rm.rb'

# Offense count: 8
# This cop supports unsafe autocorrection (--autocorrect-all).
Lint/UselessAssignment:
Exclude:
- 'app/helpers/azure_compute_resource_helper.rb'
Expand All @@ -343,6 +327,7 @@ Lint/UselessAssignment:
- 'lib/foreman_azure_rm/azure_sdk_adapter.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: CheckForMethodsWithNoSideEffects.
Lint/Void:
Exclude:
Expand All @@ -369,6 +354,12 @@ Naming/RescuedExceptionsVariableName:
- 'Rakefile'
- 'app/helpers/azure_compute_resource_helper.rb'

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
Performance/Detect:
Exclude:
- 'app/models/concerns/foreman_azure_rm/vm_extensions/managed_vm.rb'

# Offense count: 8
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
Expand All @@ -388,6 +379,7 @@ Style/Alias:

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowedReceivers.
Style/CollectionCompact:
Exclude:
- 'app/models/foreman_azure_rm/azure_rm.rb'
Expand Down Expand Up @@ -497,7 +489,7 @@ Style/RedundantParentheses:
Exclude:
- 'app/models/foreman_azure_rm/azure_rm_compute.rb'

# Offense count: 6
# Offense count: 7
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowMultipleReturnValues.
Style/RedundantReturn:
Expand Down
9 changes: 8 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
source 'https://rubygems.org'

gemspec
gemspec name: 'foreman_azure_rm'

gem 'rake', '~> 13.0'

group :test do
gem 'rubocop', '~> 1.57.0'
gem 'rubocop-performance', '~> 1.5.2'
end
3 changes: 0 additions & 3 deletions foreman_azure_rm.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ require 'date'
Gem::Specification.new do |s|
s.name = 'foreman_azure_rm'
s.version = ForemanAzureRm::VERSION
s.date = Date.today.to_s
s.authors = ['Aditi Puntambekar', 'Shimon Shtein', 'Tyler Gregory']
s.email = ['[email protected]', '[email protected]', '[email protected]']
s.summary = 'Azure Resource Manager as a compute resource for The Foreman'
Expand All @@ -18,6 +17,4 @@ Gem::Specification.new do |s|
s.add_dependency 'azure_mgmt_storage', '~> 0.23.0'
s.add_dependency 'azure_mgmt_compute', '~> 0.22.0'
s.add_dependency 'azure_mgmt_subscriptions', '~> 0.18.5'
s.add_development_dependency 'rubocop'
s.add_development_dependency 'mocha', '~> 1.2', '>= 1.2.1'
end

0 comments on commit ae36cec

Please sign in to comment.