Showing 9,860 of 14,269 total issues
Method _Code
has a Cognitive Complexity of 3379 (exceeds 5 allowed). Consider refactoring. Open
def _Code
_save = self.pos
while true # sequence
- 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
File markdown.rb
has 14268 lines of code (exceeds 250 allowed). Consider refactoring. Open
class RDoc::Markdown
# :stopdoc:
# This is distinct from setup_parser so that a standalone parser
# can redefine #initialize and still have access to the proper
File win32con.py
has 4810 lines of code (exceeds 250 allowed). Consider refactoring. Open
# Generated by h2py from commdlg.h (plus modifications 4jan98)
WINVER = 1280
WM_USER = 1024
PY_0U = 0
OFN_READONLY = 1
File decimal.py
has 4598 lines of code (exceeds 250 allowed). Consider refactoring. Open
# Copyright (c) 2004 Python Software Foundation.
# All rights reserved.
# Written by Eric Price <eprice at tjhsst.edu>
# and Facundo Batista <facundo at taniquetil.com.ar>
File expression.py
has 3420 lines of code (exceeds 250 allowed). Consider refactoring. Open
# sql/expression.py
# Copyright (C) 2005-2011 the SQLAlchemy authors and contributors <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
File turtle.py
has 3333 lines of code (exceeds 250 allowed). Consider refactoring. Open
#
# turtle.py: a Tkinter based turtle graphics module for Python
# Version 1.0.1 - 24. 9. 2009
#
# Copyright (C) 2006 - 2010 Gregor Lingl
File Tkinter.py
has 3327 lines of code (exceeds 250 allowed). Consider refactoring. Open
"""Wrapper functions for Tcl/Tk.
Tkinter provides classes which allow the display, positioning and
control of widgets. Toplevel widgets are Tk and Toplevel. Other
widgets are Frame, Label, Entry, Text, Canvas, Button, Radiobutton,
Method scan_tokens
has a Cognitive Complexity of 452 (exceeds 5 allowed). Consider refactoring. Open
def scan_tokens encoder, options
state, heredocs = options[:state] || @state
heredocs = heredocs.dup if heredocs.is_a?(Array)
if state && state.instance_of?(StringState)
- 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
File winerror.py
has 2988 lines of code (exceeds 250 allowed). Consider refactoring. Open
"""Error related constants for win32
Generated by h2py from winerror.h
"""
# Few extras added manually...
Method _Code
has 1519 lines of code (exceeds 25 allowed). Consider refactoring. Open
def _Code
_save = self.pos
while true # sequence
Method _CodeFence
has a Cognitive Complexity of 363 (exceeds 5 allowed). Consider refactoring. Open
def _CodeFence
_save = self.pos
while true # sequence
_save1 = self.pos
- 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
Function _parse
has a Cognitive Complexity of 355 (exceeds 5 allowed). Consider refactoring. Open
def _parse(source, state):
# parse a simple pattern
subpattern = SubPattern(state)
# precompute constants into local variables
- 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
File imap.rb
has 2419 lines of code (exceeds 250 allowed). Consider refactoring. Open
require "socket"
require "monitor"
require "digest/md5"
require "strscan"
begin
File ConcurrentHashMapV8.java
has 2355 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* Written by Doug Lea with assistance from members of JCP JSR-166
* Expert Group and released to the public domain, as explained at
* http://creativecommons.org/publicdomain/zero/1.0/
*/
File decimal_23.py
has 2350 lines of code (exceeds 250 allowed). Consider refactoring. Open
# <win32com>
# This is a clone of Python 2.4's 'decimal' module. It will only be used when
# 'import decimal' fails - so is likely to be used in Python 2.3.
# </win32com>
# Copyright (c) 2004 Python Software Foundation.
File ConcurrentHashMapV8.java
has 2304 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* Written by Doug Lea with assistance from members of JCP JSR-166
* Expert Group and released to the public domain, as explained at
* http://creativecommons.org/publicdomain/zero/1.0/
*/
Method _BlockQuoteRaw
has a Cognitive Complexity of 303 (exceeds 5 allowed). Consider refactoring. Open
def _BlockQuoteRaw
_save = self.pos
while true # sequence
_tmp = apply(:_StartList)
- 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
File query.py
has 2165 lines of code (exceeds 250 allowed). Consider refactoring. Open
# orm/query.py
# Copyright (C) 2005-2011 the SQLAlchemy authors and contributors <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
File entities.rb
has 2127 lines of code (exceeds 250 allowed). Consider refactoring. Open
RDoc::Markdown::HTML_ENTITIES = {
"AElig" => [0x000C6],
"AMP" => [0x00026],
"Aacute" => [0x000C1],
"Abreve" => [0x00102],
Class Markdown
has 280 methods (exceeds 20 allowed). Consider refactoring. Open
class RDoc::Markdown
# :stopdoc:
# This is distinct from setup_parser so that a standalone parser
# can redefine #initialize and still have access to the proper