GordonDiggs/rayons

View on GitHub
config/initializers/secure_headers.rb

Summary

Maintainability
A
0 mins
Test Coverage

Within %w/%W, quotes and ',' are unnecessary and may be unwanted in the resulting strings.
Open

    style_src: %w[
      'unsafe-inline'
      'self'
      fonts.googleapis.com
      www.gstatic.com

This cop checks for quotes and commas in %w, e.g. %w('foo', "bar")

It is more likely that the additional characters are unintended (for example, mistranslating an array of literals to percent string notation) rather than meant to be part of the resulting strings.

Example:

# bad

%w('foo', "bar")

Example:

# good

%w(foo bar)

Within %w/%W, quotes and ',' are unnecessary and may be unwanted in the resulting strings.
Open

    script_src: %w[
      'unsafe-inline'
      'self'
      d2wy8f7a9ursnm.cloudfront.net
      www.google-analytics.com

This cop checks for quotes and commas in %w, e.g. %w('foo', "bar")

It is more likely that the additional characters are unintended (for example, mistranslating an array of literals to percent string notation) rather than meant to be part of the resulting strings.

Example:

# bad

%w('foo', "bar")

Example:

# good

%w(foo bar)

There are no issues that match your filters.

Category
Status