Showing 39 of 102 total issues
Function fx_uncover
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function fx_uncover(sc, c1, c2, o, prev, n) {
Avoid deeply nested control flow statements. Open
Open
if (typeof c !== 'boolean') c = true;
Avoid deeply nested control flow statements. Open
Open
if (c !== false) reInit = true;
else eval('opts.'+a+' = b');
Function gn_getItemIndex
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function gn_getItemIndex(num, dev, org, items, $cfs) {
Function fx_cover
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function fx_cover(sc, c1, c2, o, prev) {
Function gn_getItemsNextFilter
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function gn_getItemsNextFilter(i, f, m, s, c) {
Function fx_fade
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function fx_fade(sO, c, x, d, f) {
Function cf_e
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function cf_e(n, c, pf, ns, rd) {
Method initialize
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def initialize(street, unit, city, us_state, postal_code)
Avoid too many return
statements within this function. Open
Open
return 'inline';
Avoid too many return
statements within this function. Open
Open
return 'ajax';
Avoid too many return
statements within this function. Open
Open
return debug(conf, 'Callback "conditions" returned false.');
Avoid too many return
statements within this function. Open
Open
return 'iframe';
Avoid too many return
statements within this function. Open
Open
return debug(conf, 'Carousel currently scrolling.');
Avoid too many return
statements within this function. Open
Open
return 'image';
Avoid too many return
statements within this function. Open
Open
return -1;
Avoid too many return
statements within this function. Open
Open
return 'custom';
Avoid too many return
statements within this function. Open
Open
return true;
Method standard_header
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
def standard_header(replacement_text=nil, &additional_content)
header_text = (replacement_text.presence || t('.header'))
extra = capture_haml(&additional_content) if block_given?
capture_haml do
haml_tag :div, :class => "row header" do
- 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"