Showing 429 of 903 total issues
Function defaultPrefilter
has 99 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function defaultPrefilter( elem, props, opts ) {
/* jshint validthis: true */
var prop, value, toggle, tween, hooks, oldfire, display, checkDisplay,
anim = this,
orig = {},
Method ProcessKeyDown
has a Cognitive Complexity of 41 (exceeds 20 allowed). Consider refactoring. Open
Open
public void ProcessKeyDown(Keys key)
{
if (key == Keys.Alt || key == Keys.Menu) { _altPress = true; }
else if (key == Keys.ShiftKey) { _shiftPress = true; }
else if (key == Keys.ControlKey) { _ctrlPress = true; }
- 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 Animation
has 92 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Animation( elem, properties, options ) {
var result,
stopped,
index = 0,
length = Animation.prefilters.length,
Method KuwaharaBlur
has 90 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static Bitmap KuwaharaBlur(Bitmap img, int Size)
{
Bitmap TempBitmap = new Bitmap(img);
Bitmap NewBitmap = new Bitmap(TempBitmap.Width, TempBitmap.Height);
Graphics NewGraphics = Graphics.FromImage(NewBitmap);
Method KuwaharaBlur
has 90 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static Bitmap KuwaharaBlur(Bitmap img, int Size)
{
Bitmap TempBitmap = new Bitmap(img);
Bitmap NewBitmap = new Bitmap(TempBitmap.Width, TempBitmap.Height);
Graphics NewGraphics = Graphics.FromImage(NewBitmap);
Method GoAction
has 89 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public override void GoAction(string action)
{
if (!string.IsNullOrEmpty(action))
{
switch (action.ToLower())
Function trigger
has 87 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
trigger: function( event, data, elem, onlyHandlers ) {
var i, cur, tmp, bubbleType, ontype, handle, special,
eventPath = [ elem || document ],
type = hasOwn.call( event, "type" ) ? event.type : event,
Function trigger
has 87 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
trigger: function( event, data, elem, onlyHandlers ) {
var i, cur, tmp, bubbleType, ontype, handle, special,
eventPath = [ elem || document ],
type = hasOwn.call( event, "type" ) ? event.type : event,
Function trigger
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
trigger: function( event, data, elem, onlyHandlers ) {
var i, cur, tmp, bubbleType, ontype, handle, special,
eventPath = [ elem || document ],
type = hasOwn.call( event, "type" ) ? event.type : event,
Function Animation
has 84 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Animation( elem, properties, options ) {
var result,
stopped,
index = 0,
length = animationPrefilters.length,
Class ToolStripMenuIMG
has 28 methods (exceeds 20 allowed). Consider refactoring. Open
Open
public class ToolStripMenuIMG : RibbonTab
{
#region Attributes
private Panel _currentTabPage;
private GUI _gui;
Function Sizzle
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Sizzle( selector, context, results, seed ) {
var m, i, elem, nid, match, groups, newSelector,
newContext = context && context.ownerDocument,
// nodeType defaults to 9, since context defaults to document
Function CHILD
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
"CHILD": function( type, what, argument, first, last ) {
var simple = type.slice( 0, 3 ) !== "nth",
forward = type.slice( -4 ) !== "last",
ofType = what === "of-type";
Function Sizzle
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Sizzle( selector, context, results, seed ) {
var m, i, elem, nid, match, groups, newSelector,
newContext = context && context.ownerDocument,
// nodeType defaults to 9, since context defaults to document
Function CHILD
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
"CHILD": function( type, what, argument, first, last ) {
var simple = type.slice( 0, 3 ) !== "nth",
forward = type.slice( -4 ) !== "last",
ofType = what === "of-type";
Method InitializeComponent
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void InitializeComponent()
{
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.lblMax = new System.Windows.Forms.Label();
this.lblMin = new System.Windows.Forms.Label();
Method InitializeComponent
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void InitializeComponent()
{
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.lblMax = new System.Windows.Forms.Label();
this.lblMin = new System.Windows.Forms.Label();
Function Sizzle
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Sizzle( selector, context, results, seed ) {
var match, elem, m, nodeType,
// QSA vars
i, groups, old, nid, newContext, newSelector;
Function send
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
send: function( headers, complete ) {
var i,
xhr = options.xhr();
xhr.open(
Function matcherFromGroupMatchers
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
var bySet = setMatchers.length > 0,
byElement = elementMatchers.length > 0,
superMatcher = function( seed, context, xml, results, outermost ) {
var elem, j, matcher,