orange-cloudfoundry/cf-ops-automation

View on GitHub
lib/coa/reference_dataset_documentation/docs_config.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
91%

Prefer to_s over string interpolation.
Open

        raise Errno::ENOENT, "#{dir}" unless Dir.exist?(dir)

This cop checks for strings that are just an interpolated expression.

Example:

# bad
"#{@var}"

# good
@var.to_s

# good if @var is already a String
@var

Do not use semicolons to terminate expressions.
Open

        puts "deleting #{generated_pipeline_list}";

This cop checks for multiple expressions placed on the same line. It also checks for lines terminated with a semicolon.

Example:

# bad
foo = 1; bar = 2;
baz = 3;

# good
foo = 1
bar = 2
baz = 3

There are no issues that match your filters.

Category
Status