colinschoen/enrollme

View on GitHub
config/routes.rb

Summary

Maintainability
A
0 mins
Test Coverage

Block has too many lines. [43/25]
Open

Rails.application.routes.draw do

  resources :users
  get '/without_team', to: 'users#without'
  post '/create_team', to: 'users#start_team'
Severity: Minor
Found in config/routes.rb by rubocop

This cop checks if the length of a block exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable. The cop can be configured to ignore blocks passed to certain methods.

Extra blank line detected.
Open


  # The priority is based upon order of creation: first created -> highest priority.
Severity: Minor
Found in config/routes.rb by rubocop

This cops checks for two or more consecutive blank lines.

Example:

# bad - It has two empty lines.
some_method
# one empty line
# two empty lines
some_method

# good
some_method
# one empty line
some_method

Prefer single-quoted strings when you don't need string interpolation or special symbols.
Open

  get "*path", to: redirect("/")
Severity: Minor
Found in config/routes.rb by rubocop

Checks if uses of quotes match the configured preference.

Example: EnforcedStyle: single_quotes (default)

# bad
"No special symbols"
"No string interpolation"
"Just text"

# good
'No special symbols'
'No string interpolation'
'Just text'
"Wait! What's #{this}!"

Example: EnforcedStyle: double_quotes

# bad
'Just some text'
'No special chars or interpolation'

# good
"Just some text"
"No special chars or interpolation"
"Every string in #{project} uses double_quotes"

Extra empty line detected at block body end.
Open


end
Severity: Minor
Found in config/routes.rb by rubocop

This cops checks if empty lines around the bodies of blocks match the configuration.

Example: EnforcedStyle: empty_lines

# good

foo do |bar|

  # ...

end

Example: EnforcedStyle: noemptylines (default)

# good

foo do |bar|
  # ...
end

Line is too long. [84/80]
Open

  # The priority is based upon order of creation: first created -> highest priority.
Severity: Minor
Found in config/routes.rb by rubocop

Line is too long. [81/80]
Open

  post '/admin/reset_database', to: 'admins#reset_database', as: 'reset_database'
Severity: Minor
Found in config/routes.rb by rubocop

Line is too long. [86/80]
Open

  post '/discussion/edit_index', to:'discussion#edit_disc', as: 'edit_discussion_post'
Severity: Minor
Found in config/routes.rb by rubocop

Extra blank line detected.
Open


  # Example resource route with options:
Severity: Minor
Found in config/routes.rb by rubocop

This cops checks for two or more consecutive blank lines.

Example:

# bad - It has two empty lines.
some_method
# one empty line
# two empty lines
some_method

# good
some_method
# one empty line
some_method

Prefer single-quoted strings when you don't need string interpolation or special symbols.
Open

  get "*path", to: redirect("/")
Severity: Minor
Found in config/routes.rb by rubocop

Checks if uses of quotes match the configured preference.

Example: EnforcedStyle: single_quotes (default)

# bad
"No special symbols"
"No string interpolation"
"Just text"

# good
'No special symbols'
'No string interpolation'
'Just text'
"Wait! What's #{this}!"

Example: EnforcedStyle: double_quotes

# bad
'Just some text'
'No special chars or interpolation'

# good
"Just some text"
"No special chars or interpolation"
"Every string in #{project} uses double_quotes"

Extra blank line detected.
Open


  # Example of regular route:
Severity: Minor
Found in config/routes.rb by rubocop

This cops checks for two or more consecutive blank lines.

Example:

# bad - It has two empty lines.
some_method
# one empty line
# two empty lines
some_method

# good
some_method
# one empty line
some_method

Extra empty line detected at block body beginning.
Open


  resources :users
Severity: Minor
Found in config/routes.rb by rubocop

This cops checks if empty lines around the bodies of blocks match the configuration.

Example: EnforcedStyle: empty_lines

# good

foo do |bar|

  # ...

end

Example: EnforcedStyle: noemptylines (default)

# good

foo do |bar|
  # ...
end

Space missing after colon.
Open

  post '/discussion/edit_index', to:'discussion#edit_disc', as: 'edit_discussion_post'
Severity: Minor
Found in config/routes.rb by rubocop

Checks for colon (:) not followed by some kind of space. N.B. this cop does not handle spaces after a ternary operator, which are instead handled by Layout/SpaceAroundOperators.

Example:

# bad
def f(a:, b:2); {a:3}; end

# good
def f(a:, b: 2); {a: 3}; end

Line is too long. [82/80]
Open

  get '/discussion/edit', to: 'discussion#edit_index', as: 'edit_discussion_index'
Severity: Minor
Found in config/routes.rb by rubocop

There are no issues that match your filters.

Category
Status