Showing 212 of 215 total issues
Method has too many lines. [28/10] Open
def update @estimation = Estimation.find(params[:estimation_id]).decorate @estimation_item = EstimationItem.find(params[:id]) authorize @estimation, :update?
- Read upRead up
- Exclude checks
Line is too long. [148/120] Open
helpers.editable object, field, url: helpers.estimation_estimation_item_path(object.estimation, object), mode: :inline, type: type, class: field
- Read upRead up
- Exclude checks
Method update
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
def update @estimation = Estimation.find(params[:estimation_id]).decorate @estimation_item = EstimationItem.find(params[:id]) authorize @estimation, :update?
EstimationItemsController#create has approx 6 statements Open
def create
- Read upRead up
- Exclude checks
EstimationItemsController#update has approx 10 statements Open
def update
- Read upRead up
- Exclude checks
EstimationItemsController tests 'request.xhr?' at least 3 times Open
redirect_to estimation_path(@estimation) unless request.xhr? end def destroy @estimation = Estimation.find(params[:estimation_id]).decorate
- Read upRead up
- Exclude checks
EstimationsController assumes too much for instance variable '@estimation' Open
class EstimationsController < ApplicationController
- Read upRead up
- Exclude checks
EstimationPolicy::Scope has no descriptive comment Open
class Scope < Scope
- Read upRead up
- Exclude checks
EstimationItemDecorator has no descriptive comment Open
class EstimationItemDecorator < Draper::Decorator
- Read upRead up
- Exclude checks
ApplicationHelper has no descriptive comment Open
module ApplicationHelper
- Read upRead up
- Exclude checks
ApplicationController has no descriptive comment Open
class ApplicationController < ActionController::Base
- Read upRead up
- Exclude checks
ApplicationPolicy has no descriptive comment Open
class ApplicationPolicy
- Read upRead up
- Exclude checks
EstimationPolicy has no descriptive comment Open
class EstimationPolicy < ApplicationPolicy
- Read upRead up
- Exclude checks
EstimationItemsController assumes too much for instance variable '@estimation_item' Open
class EstimationItemsController < ApplicationController
- Read upRead up
- Exclude checks
EstimationDecorator has no descriptive comment Open
class EstimationDecorator < Draper::Decorator
- Read upRead up
- Exclude checks
Users::OmniauthCallbacksController assumes too much for instance variable '@user' Open
class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
- Read upRead up
- Exclude checks
Users::OmniauthCallbacksController has no descriptive comment Open
class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
- Read upRead up
- Exclude checks
Function activate_editables
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
var activate_editables = function () { $('.editable').editable({success: function(response, newValue) { if(!response.success) return response.msg; //msg will be shown in editable form var vals = response.additionalValues; if(vals) {
- Read upRead up
EstimationItemsController assumes too much for instance variable '@estimation' Open
class EstimationItemsController < ApplicationController
- Read upRead up
- Exclude checks