ManageIQ/manageiq-appliance_console

View on GitHub
lib/manageiq/appliance_console/logfile_configuration.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
98%

Interpolation in single quoted string detected. Use double quoted strings if you need interpolation.
Open

      AwesomeSpawn.run!('/usr/sbin/semanage fcontext -a -t httpd_log_t "#{LOGFILE_DIRECTORY.to_path}(/.*)?"')

Checks for interpolation in a single quoted string.

Safety:

This cop's autocorrection is unsafe because although it always replaces single quotes as if it were miswritten double quotes, it is not always the case. For example, '#{foo} bar' would be replaced by "#{foo} bar", so the replaced code would evaluate the expression foo.

Example:

# bad

foo = 'something with #{interpolation} inside'

Example:

# good

foo = "something with #{interpolation} inside"

There are no issues that match your filters.

Category
Status