gitshowcase/gitshowcase

View on GitHub

Showing 883 of 883 total issues

Line is too long. [105/80]
Open

          expect(DomainService.client_domain).to receive(:create).with('123', hostname: 'www.domain.com')

Line is too long. [101/80]
Open

        expect { DomainService.new('domain') }.to raise_exception('Domain management is not enabled')

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

        resources :projects, only: [:index, :new, :create, :edit, :update, :destroy] do
Severity: Minor
Found in config/routes.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]
Severity
Category
Status
Source
Language