|
# This configuration was generated by
|
|
# `rubocop --auto-gen-config`
|
|
# on 2024-04-02 08:55:39 UTC using RuboCop version 1.23.0.
|
|
# 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: 53
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
# SupportedStyles: with_first_argument, with_fixed_indentation
|
|
Layout/ArgumentAlignment:
|
|
Exclude:
|
|
- 'app/controllers/api/v2/webhook_templates_controller.rb'
|
|
- 'app/controllers/concerns/foreman_webhooks/controller/parameters/webhook.rb'
|
|
- 'app/services/foreman_webhooks/webhook_service.rb'
|
|
- 'app/views/api/v2/webhooks/show.json.rabl'
|
|
- 'config/routes.rb'
|
|
- 'lib/foreman_webhooks/engine.rb'
|
|
|
|
# Offense count: 4
|
|
# Cop supports --auto-correct.
|
|
Minitest/RefuteFalse:
|
|
Exclude:
|
|
- 'test/controllers/api/v2/webhook_templates_controller_test.rb'
|
|
- 'test/controllers/api/v2/webhooks_controller_test.rb'
|
|
|
|
# Offense count: 4
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: Include.
|
|
# Include: **/test/**/*
|
|
Rails/AssertNot:
|
|
Exclude:
|
|
- 'test/controllers/api/v2/webhook_templates_controller_test.rb'
|
|
- 'test/controllers/api/v2/webhooks_controller_test.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: Whitelist, AllowedMethods, AllowedReceivers.
|
|
# Whitelist: find_by_sql
|
|
# AllowedMethods: find_by_sql
|
|
# AllowedReceivers: Gem::Specification
|
|
Rails/DynamicFindBy:
|
|
Exclude:
|
|
- 'test/controllers/api/v2/webhook_templates_controller_test.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: Include, IgnoredMethods.
|
|
# Include: app/models/**/*.rb
|
|
# IgnoredMethods: order, limit, select, lock
|
|
Rails/FindEach:
|
|
Exclude:
|
|
- 'app/models/webhook.rb'
|
|
|
|
# Offense count: 1
|
|
# Configuration parameters: Include.
|
|
# Include: app/models/**/*.rb
|
|
Rails/HasManyOrHasOneDependent:
|
|
Exclude:
|
|
- 'app/models/webhook_template.rb'
|
|
|
|
# Offense count: 2
|
|
# Configuration parameters: Include.
|
|
# Include: app/models/**/*.rb
|
|
Rails/InverseOf:
|
|
Exclude:
|
|
- 'app/models/webhook.rb'
|
|
- 'app/models/webhook_template.rb'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: NotNilAndNotEmpty, NotBlank, UnlessBlank.
|
|
Rails/Present:
|
|
Exclude:
|
|
- 'app/controllers/concerns/foreman_webhooks/controller/parameters/webhook.rb'
|
|
- 'app/services/foreman_webhooks/webhook_service.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: Include.
|
|
# Include: **/Rakefile, **/*.rake
|
|
Rails/RakeEnvironment:
|
|
Exclude:
|
|
- 'lib/tasks/foreman_webhooks_tasks.rake'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
Rails/RedundantForeignKey:
|
|
Exclude:
|
|
- 'app/models/webhook.rb'
|
|
- 'app/models/webhook_template.rb'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, Include.
|
|
# SupportedStyles: assert_not, refute
|
|
# Include: **/test/**/*
|
|
Rails/RefuteMethods:
|
|
Exclude:
|
|
- 'test/controllers/api/v2/webhook_templates_controller_test.rb'
|
|
- 'test/models/webhook_test.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: compact, expanded
|
|
Style/EmptyMethod:
|
|
Exclude:
|
|
- 'app/controllers/api/v2/webhook_templates_controller.rb'
|
|
- 'app/controllers/api/v2/webhooks_controller.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
|
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
|
Style/HashSyntax:
|
|
Exclude:
|
|
- 'config/routes.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyleForMultiline.
|
|
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
|
Style/TrailingCommaInArrayLiteral:
|
|
Exclude:
|
|
- 'lib/foreman_webhooks/engine.rb'
|
|
|
|
# Offense count: 8
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyleForMultiline.
|
|
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
|
Style/TrailingCommaInHashLiteral:
|
|
Exclude:
|
|
- 'app/lib/foreman_webhooks/renderer/scope/webhook_template.rb'
|
|
- 'app/models/webhook.rb'
|
|
- 'app/services/foreman_webhooks/webhook_service.rb'
|
|
- 'db/migrate/20200907232758_rename_webhook_permissions.rb'
|
|
- 'test/unit/foreman_webhooks/webhook_service_test.rb'
|