Showing 792 of 792 total issues
Pass &:capitalize
as an argument to map
instead of a block. Open
Open
phrase.humanize.split(' ').map{|w| w.capitalize}.join(' ')
- Read upRead up
- Exclude checks
Use symbols as procs when possible.
Example:
# bad
something.map { |s| s.upcase }
# good
something.map(&:upcase)
Line is too long. [128/90] (https://github.com/bbatsov/ruby-style-guide#80-character-limits) Open
Open
has_and_belongs_to_many :base_organisations, :through => :category_organisations, :association_foreign_key => :organisation_id
- Exclude checks
Adjoining classes: .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger:active Open
Open
.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger:active,
- Exclude checks
Adjoining classes: .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger.active Open
Open
.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger.active {
- Exclude checks
Adjoining classes: .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default:focus Open
Open
.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default:focus,
- Exclude checks
Adjoining classes: .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default.disabled Open
Open
.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default.disabled,
- Exclude checks
Adjoining classes: .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default:active Open
Open
.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default:active,
- Exclude checks
Adjoining classes: .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default:active Open
Open
.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default:active,
- Exclude checks
Adjoining classes: .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default:active Open
Open
.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default:active,
- Exclude checks
Adjoining classes: .bootstrap-switch .bootstrap-switch-label.disabled Open
Open
.bootstrap-switch .bootstrap-switch-label.disabled,
- Exclude checks
Adjoining classes: .bootstrap-switch .bootstrap-switch-label.active Open
Open
.bootstrap-switch .bootstrap-switch-label.active {
- Exclude checks
Line exceeds maximum allowed length Open
Open
$("input[type='checkbox'].publish").bootstrapSwitch(size: 'mini', onText: 'public', offText: 'private')
- Exclude checks
Line exceeds maximum allowed length Open
Open
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
- Exclude checks
Line is too long. [104/90] (https://github.com/bbatsov/ruby-style-guide#80-character-limits) Open
Open
validates_url :donation_info, preferred_scheme: 'http://', message: 'Donation url is not a valid URL',
- Exclude checks
Rename is_organisation_removed?
to organisation_removed?
. (https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark) Open
Open
def is_organisation_removed?
- Read upRead up
- Exclude checks
This cop makes sure that predicates are named properly.
Example:
# bad
def is_even?(value)
end
# good
def even?(value)
end
# bad
def has_value?
end
# good
def value?
end
Unused method argument - org
. If it's necessary, use _
or _org
as an argument name to indicate that it won't be used. You can also write as can_delete?(*)
if you want the method to accept any arguments but don't care about them. (https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars) Open
Open
def can_delete? org
- Read upRead up
- Exclude checks
This cop checks for unused method arguments.
Example:
# bad
def some_method(used, unused, _unused_but_allowed)
puts used
end
Example:
# good
def some_method(used, _unused, _unused_but_allowed)
puts used
end
Adjoining classes: .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger.active Open
Open
.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger.active,
- Exclude checks
Adjoining classes: .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger.active Open
Open
.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger.active,
- Exclude checks
Adjoining classes: .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger.disabled Open
Open
.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger.disabled,
- Exclude checks
Rule doesn't have all its properties in alphabetical order. Open
Open
.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default:hover,
- Exclude checks