etehtsea/oxblood

View on GitHub
lib/oxblood/pipeline.rb

Summary

Maintainability
A
0 mins
Test Coverage

Use array literal [] instead of Array.new.
Open

      @commands = Array.new
Severity: Minor
Found in lib/oxblood/pipeline.rb by rubocop

This cop checks for the use of a method, the result of which would be a literal, like an empty array, hash or string.

Example:

# bad
a = Array.new
h = Hash.new
s = String.new

# good
a = []
h = {}
s = ''

There are no issues that match your filters.

Category
Status