Implement Ceph multiple pools and tests #131
Annotations
7 warnings
rubocop:
lib/fog/libvirt/models/compute/server.rb#L461
[rubocop] reported by reviewdog 🐶
Use `%w` or `%W` for an array of words.
Raw Output:
lib/fog/libvirt/models/compute/server.rb:461:24: C: Style/WordArray: Use `%w` or `%W` for an array of words.
|
rubocop:
lib/fog/libvirt/models/compute/server.rb#L473
[rubocop] reported by reviewdog 🐶
Use `Hash#key?` instead of `Hash#has_key?`.
Raw Output:
lib/fog/libvirt/models/compute/server.rb:473:19: C: Style/PreferredHashMethods: Use `Hash#key?` instead of `Hash#has_key?`.
|
rubocop:
lib/fog/libvirt/models/compute/server.rb#L474
[rubocop] reported by reviewdog 🐶
Use `Hash#key?` instead of `Hash#has_key?`.
Raw Output:
lib/fog/libvirt/models/compute/server.rb:474:18: C: Style/PreferredHashMethods: Use `Hash#key?` instead of `Hash#has_key?`.
|
rubocop:
tests/libvirt/models/compute/server_tests.rb#L8
[rubocop] reported by reviewdog 🐶
Use a guard clause (`return RealFile.readlines(path) unless path == '/etc/foreman/ceph.conf'`) instead of wrapping the code inside a conditional expression.
Raw Output:
tests/libvirt/models/compute/server_tests.rb:8:5: C: Style/GuardClause: Use a guard clause (`return RealFile.readlines(path) unless path == '/etc/foreman/ceph.conf'`) instead of wrapping the code inside a conditional expression.
|
rubocop:
tests/libvirt/models/compute/server_tests.rb#L9
[rubocop] reported by reviewdog 🐶
Redundant `return` detected.
Raw Output:
tests/libvirt/models/compute/server_tests.rb:9:7: C: Style/RedundantReturn: Redundant `return` detected.
|
rubocop:
tests/libvirt/models/compute/server_tests.rb#L19
[rubocop] reported by reviewdog 🐶
Redundant `return` detected.
Raw Output:
tests/libvirt/models/compute/server_tests.rb:19:7: C: Style/RedundantReturn: Redundant `return` detected.
|
rubocop:
tests/libvirt/models/compute/server_tests.rb#L139
[rubocop] reported by reviewdog 🐶
Trailing whitespace detected.
Raw Output:
tests/libvirt/models/compute/server_tests.rb:139:1: C: Layout/TrailingWhitespace: Trailing whitespace detected.
|
Loading