cloudamatic/mu

View on GitHub
bin/mu-user-manage

Summary

Maintainability
Test Coverage

Use meaningful heredoc delimiters.
Open

MESSAGE_END
Severity: Minor
Found in bin/mu-user-manage by rubocop

This cop checks that your heredocs are using meaningful delimiters. By default it disallows END and EO*, and can be configured through blacklisting additional delimiters.

Example:

# good
<<-SQL
  SELECT * FROM foo
SQL

# bad
<<-END
  SELECT * FROM foo
END

# bad
<<-EOS
  SELECT * FROM foo
EOS

Operator == used in void context.
Open

$opts.select { |opt| opt =~ /_given$/ }.size == 0
Severity: Minor
Found in bin/mu-user-manage by rubocop

This cop checks for operators, variables and literals used in void context.

Example:

# bad

def some_method
  some_num * 10
  do_something
end

Example:

# bad

def some_method(some_var)
  some_var
  do_something
end

Example:

# good

def some_method
  do_something
  some_num * 10
end

Example:

# good

def some_method(some_var)
  do_something
  some_var
end

Redundant use of Object#to_s in interpolation.
Open

      MU.log "Must specify a username with the '#{opt.to_s}' option", MU::ERR
Severity: Minor
Found in bin/mu-user-manage by rubocop

This cop checks for string conversion in string interpolation, which is redundant.

Example:

# bad

"result is #{something.to_s}"

Example:

# good

"result is #{something}"

Use meaningful heredoc delimiters.
Open

  EOS
Severity: Minor
Found in bin/mu-user-manage by rubocop

This cop checks that your heredocs are using meaningful delimiters. By default it disallows END and EO*, and can be configured through blacklisting additional delimiters.

Example:

# good
<<-SQL
  SELECT * FROM foo
SQL

# bad
<<-END
  SELECT * FROM foo
END

# bad
<<-EOS
  SELECT * FROM foo
EOS

Redundant use of Object#to_s in interpolation.
Open

      MU.log "Ignoring extraneous option '#{opt.to_s}' in delete", MU::WARN
Severity: Minor
Found in bin/mu-user-manage by rubocop

This cop checks for string conversion in string interpolation, which is redundant.

Example:

# bad

"result is #{something.to_s}"

Example:

# good

"result is #{something}"

There are no issues that match your filters.

Category
Status