Switch to async foreman-tasks-based utilization trigger #218
Annotations
10 errors
Rubocop:
lib/foreman_resource_quota/engine.rb#L46
Style/HashSyntax: Use the new Ruby 1.9 hash syntax.
|
Rubocop:
lib/foreman_resource_quota/engine.rb#L54
Rails/Blank: Use `if User.unscoped.find_by(login: User::ANONYMOUS_ADMIN).blank?` instead of `unless User.unscoped.find_by(login: User::ANONYMOUS_ADMIN).present?`.
|
Rubocop:
lib/foreman_resource_quota/engine.rb#L63
Lint/SuppressedException: Do not suppress exceptions.
|
Rubocop:
lib/foreman_resource_quota/engine.rb#L75
Layout/EmptyLinesAroundBlockBody: Extra empty line detected at block body beginning.
|
Rubocop:
lib/foreman_resource_quota/engine.rb#L84
Lint/SuppressedException: Do not suppress exceptions.
|
Rubocop:
test/jobs/refresh_resource_quota_utilization_test.rb#L1
Style/FrozenStringLiteralComment: Missing frozen string literal comment.
|
Rubocop:
test/jobs/refresh_resource_quota_utilization_test.rb#L25
Lint/UselessAssignment: Useless assignment to variable - `exp_pre_utilization`. Did you mean `exp_post_utilization`?
|
Rubocop:
test/jobs/refresh_resource_quota_utilization_test.rb#L30
Lint/UselessAssignment: Useless assignment to variable - `exp_post_utilization`. Did you mean `exp_host_b_utilization`?
|
Rubocop:
test/jobs/refresh_resource_quota_utilization_test.rb#L31
Lint/AmbiguousOperatorPrecedence: Wrap expressions with varying precedence with parentheses to avoid ambiguity.
|
Rubocop:
test/jobs/refresh_resource_quota_utilization_test.rb#L31
Style/RedundantParentheses: Don't use parentheses around a literal.
|
Loading