Showing 6,856 of 14,752 total issues
Function replaceRange
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function replaceRange(doc, code, from, to, origin) {
- Create a ticketCreate a ticket
Function addWidget
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
addWidget: function(pos, node, scroll, vert, horiz) {
- Create a ticketCreate a ticket
Function markText
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function markText(doc, from, to, options, type) {
- Create a ticketCreate a ticket
Function handleMappedButton
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function handleMappedButton(cm, button, pos, repeat, event) {
- Create a ticketCreate a ticket
Function markTextShared
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function markTextShared(doc, from, to, options, type) {
- Create a ticketCreate a ticket
Function domTextBetween
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function domTextBetween(cm, from, to, fromLine, toLine) {
- Create a ticketCreate a ticket
Function conflictingCollapsedRange
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function conflictingCollapsedRange(doc, lineNo, from, to, marker) {
- Create a ticketCreate a ticket
Function intoCoordSystem
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function intoCoordSystem(cm, lineObj, rect, context, includeWidgets) {
- Create a ticketCreate a ticket
Function charCoords
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function charCoords(cm, pos, context, lineObj, bias) {
- Create a ticketCreate a ticket
Function endOfLine
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function endOfLine(visually, cm, lineObj, lineNo, dir) {
- Create a ticketCreate a ticket
Function measureCharPrepared
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function measureCharPrepared(cm, prepared, ch, bias, varHeight) {
- Create a ticketCreate a ticket
Function checkPropTypes
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
- Create a ticketCreate a ticket
Function mapIntoWithKeyPrefixInternal
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
- Create a ticketCreate a ticket
Function eventsApi
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
var eventsApi = function(iteratee, events, name, callback, opts) {
- Create a ticketCreate a ticket
Function internalOn
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
var internalOn = function(obj, name, callback, context, listening) {
- Create a ticketCreate a ticket
Function baseReduce
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function baseReduce(collection, iteratee, accumulator, initFromCollection, eachFunc) {
- Create a ticketCreate a ticket
Function baseMerge
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function baseMerge(object, source, customizer, stackA, stackB) {
- Create a ticketCreate a ticket
Function resolve
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function resolve(mainSchema, key,modeTypeKey, currentSchemaElement, resolvedValue){
- Create a ticketCreate a ticket
Function executeBound
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
var executeBound = function(sourceFunc, boundFunc, context, callingContext, args) {
- Create a ticketCreate a ticket
Method createProject
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
private IProject createProject(final IPath workflowPath) throws CoreException {
IProgressMonitor monitor = new NullProgressMonitor();
IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
IResource resource = root.findMember(workflowPath);
- Read upRead up
- Create a ticketCreate a ticket
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"