app/controllers/proposed_organisation_edits_controller.rb
Method has too many lines. [9/7] (https://github.com/bbatsov/ruby-style-guide#short-methods) Open
Open
def update
# UpdateProposedOrganisationEdit.with(observer: self, params: create_params)
proposed_edit = ProposedOrganisationEdit.find(update_params.fetch(:id))
if !proposed_edit_params.empty?
proposed_edit.accept(proposed_edit_params)
- Read upRead up
- Exclude checks
This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.
Do not prefix writer method names with set_
. (https://github.com/bbatsov/ruby-style-guide#accessor_mutator_method_names) Open
Open
def set_notice(notice)
- Read upRead up
- Exclude checks
This cop makes sure that accessor methods are named properly.
Example:
# bad
def set_attribute(value)
end
# good
def attribute=(value)
end
# bad
def get_attribute
end
# good
def attribute
end