lib/coa/reference_dataset_documentation/docs_config.rb
Prefer to_s
over string interpolation. Open
Open
raise Errno::ENOENT, "#{dir}" unless Dir.exist?(dir)
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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
Open
puts "deleting #{generated_pipeline_list}";
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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