Skip to content

Commit

Permalink
Update .rubocop.yml
Browse files Browse the repository at this point in the history
Disabled several Style cops which may cause failure after applying changes
also some are unsafe to do so for huge number of offenses fix.

Also followed other foreman rubocop rules.
  • Loading branch information
archanaserver committed Jul 17, 2024
1 parent cca711e commit 0046c56
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
15 changes: 15 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,3 +173,18 @@ Rails/RedundantForeignKey:

Rails/UniqueValidationWithoutIndex:
Enabled: true

Style/SingleArgumentDig:
Enabled: false

Style/RedundantBegin:
Enabled: false

Style/ExplicitBlockArgument:
Enabled: false

Style/GlobalStdStream:
Enabled: false

Style/RedundantFileExtensionInRequire:
Enabled: false
1 change: 0 additions & 1 deletion app/lib/actions/pulp3/abstract_async_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ def get_task_label(name, href)
name = name.split('.').last if name
href = href.split('-').last[0...-1] if href
"%s (ID: %s)" % [name, href]

end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def find_unique_name(metadata_product)
def update_params(metadata_product)
{
gpg_key_id: gpg_key_id(metadata_product),
description: metadata_product.description,
description: metadata_product.description
}
end

Expand Down

0 comments on commit 0046c56

Please sign in to comment.