metamaps/metamaps

View on GitHub
app/controllers/notifications_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage

Method has too many lines. [18/10]
Open

  def show
    @receipt.update(is_read: true)
    respond_to do |format|
      format.html do
        case @notification.notification_code

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.

Assignment Branch Condition size for show is too high. [23.35/16]
Open

  def show
    @receipt.update(is_read: true)
    respond_to do |format|
      format.html do
        case @notification.notification_code

This cop checks that the ABC size of methods is not higher than the configured maximum. The ABC size is based on assignments, branches (method calls), and conditions. See http://c2.com/cgi/wiki?AbcMetric

Method has too many lines. [15/10]
Open

  def index
    @notifications = current_user.mailbox.notifications.page(params[:page]).per(25)
    respond_to do |format|
      format.html
      format.json do

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.

Assignment Branch Condition size for index is too high. [19.26/16]
Open

  def index
    @notifications = current_user.mailbox.notifications.page(params[:page]).per(25)
    respond_to do |format|
      format.html
      format.json do

This cop checks that the ABC size of methods is not higher than the configured maximum. The ABC size is based on assignments, branches (method calls), and conditions. See http://c2.com/cgi/wiki?AbcMetric

There are no issues that match your filters.

Category
Status