Showing 175 of 609 total issues
Function easeOutQuad
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
easeOutQuad: function (x, t, b, c, d) {
Function easeInOutSine
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
easeInOutSine: function (x, t, b, c, d) {
Function easeOutQuart
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
easeOutQuart: function (x, t, b, c, d) {
Function easeInOutBounce
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
easeInOutBounce: function (x, t, b, c, d) {
Function easeOutQuint
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
easeOutQuint: function (x, t, b, c, d) {
Function easeInOutQuint
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
easeInOutQuint: function (x, t, b, c, d) {
Function easeInSine
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
easeInSine: function (x, t, b, c, d) {
Function easeInExpo
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
easeInExpo: function (x, t, b, c, d) {
Function easeInOutExpo
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
easeInOutExpo: function (x, t, b, c, d) {
Function toggle
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function toggle(toShow, toHide, data, clickedActive, down) {
Function easeOutSine
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
easeOutSine: function (x, t, b, c, d) {
Function easeInBounce
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
easeInBounce: function (x, t, b, c, d) {
Function _dialogDatepicker
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
_dialogDatepicker: function(input, dateText, onSelect, settings, pos) {
Function easeOutCirc
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
easeOutCirc: function (x, t, b, c, d) {
Function easeInQuad
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
easeInQuad: function (x, t, b, c, d) {
Function easeInQuint
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
easeInQuint: function (x, t, b, c, d) {
Function easeInOutCirc
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
easeInOutCirc: function (x, t, b, c, d) {
Function easeOutBounce
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
easeOutBounce: function (x, t, b, c, d) {
Method filter_options
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
def filter_options(filters, selected = nil)
html = options_for_select([[l(:stuff_to_do_label_filter_by), '']]) # Blank
filters.each do |filter_group, options|
next unless [:users, :priorities, :statuses, :projects].include?(filter_group)
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method get_filters
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
def get_filters
return default_filters unless params[:filter]
id = params[:filter].split('-')[-1]
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"