app/models/gsa18f/event_fields.rb

Summary

Maintainability
A
0 mins
Test Coverage

Use %i or %I for an array of symbols.
Open

      [
        :duty_station, :supervisor_id, :title_of_event,
        :event_provider, :type_of_event, :cost_per_unit,
        :start_date, :end_date, :purpose, :justification,
        :link, :instructions, :free_event, :nfs_form,
Severity: Minor
Found in app/models/gsa18f/event_fields.rb by rubocop

This cop can check for array literals made up of symbols that are not using the %i() syntax.

Alternatively, it checks for symbol arrays using the %i() syntax on projects which do not want to use that syntax.

Configuration option: MinSize If set, arrays with fewer elements than this value will not trigger the cop. For example, a MinSize of3` will not enforce a style on an array of 2 or fewer elements.

Example: EnforcedStyle: percent (default)

# good
%i[foo bar baz]

# bad
[:foo, :bar, :baz]

Example: EnforcedStyle: brackets

# good
[:foo, :bar, :baz]

# bad
%i[foo bar baz]

There are no issues that match your filters.

Category
Status