atzorvas/ccradio

View on GitHub
app/helpers/application_helper.rb

Summary

Maintainability
A
0 mins
Test Coverage

Showing 6 of 6 total issues

Do not use when x;. Use when x then instead.
Open

when :alert; 'alert-warning'
Severity: Minor
Found in app/helpers/application_helper.rb by rubocop

Missing top-level module documentation comment.
Open

module ApplicationHelper
Severity: Minor
Found in app/helpers/application_helper.rb by rubocop

Use def with parentheses when there are parameters.
Open

def bootstrap_class_for flash_type
Severity: Minor
Found in app/helpers/application_helper.rb by rubocop

Do not use when x;. Use when x then instead.
Open

when :notice; 'alert-info'
Severity: Minor
Found in app/helpers/application_helper.rb by rubocop

Do not use when x;. Use when x then instead.
Open

when :success; 'alert-success'
Severity: Minor
Found in app/helpers/application_helper.rb by rubocop

Do not use when x;. Use when x then instead.
Open

when :error; 'alert-danger'
Severity: Minor
Found in app/helpers/application_helper.rb by rubocop
Category
Status