Showing 4,645 of 4,645 total issues
Method ContainsSmall
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
@Benchmark
@Warmup(iterations = 5, time = 1)
@Measurement(iterations = 5, time = 1)
@BenchmarkMode(Mode.AverageTime)
public void ContainsSmall() {
- 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 addValue
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
protected Annotation addValue(Annotation... values) {
if (values == null) {
return this;
}
SimpleList<?> list;
- 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 RemoveSmall
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
@Benchmark
@Warmup(iterations = 5, time = 1)
@Measurement(iterations = 5, time = 1)
@BenchmarkMode(Mode.AverageTime)
public void RemoveSmall() {
- 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 ./main.ts
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
/***/ (function(module, exports, __webpack_require__) {
"use strict";
function __export(m) {
- 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 splitValue
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
private TextDiff splitValue(Object item, char type) {
if (item instanceof Entity) {
return splitValue((Entity) item, type);
} else if (item instanceof List<?>) {
return splitValue((List<?>) item, type);
- 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
Duplicate property 'border' found. Open
border: 1px solid rgb(200, 200, 200);
- Exclude checks
Don't use IDs in selectors. Open
#copyNode[visibility=visible] > circle{
- Exclude checks
Don't use IDs in selectors. Open
#addEdge[visibility=visible] > circle{
- Exclude checks
Rule doesn't have all its properties in alphabetical order. Open
h1 {
- Exclude checks
Values of 0 shouldn't have units specified. Open
box-shadow: 5px 5px 20px 0px rgba(0, 0, 0, 0.25);
- Exclude checks
Rule doesn't have all its properties in alphabetical order. Open
.palette button svg, .palette button svg line, .palette button svg polygon, .palette button svg rect, .palette button svg text {
- Exclude checks
Adjoining classes: .dialog.heavyweight.cross-platform Open
.dialog.heavyweight.cross-platform {
- Exclude checks
Adjoining classes: .dialog.mac .command-link-button > .container > .line-1 Open
.dialog.mac .command-link-button > .container > .line-1 {
- Exclude checks
Rule doesn't have all its properties in alphabetical order. Open
.saveBtn:hover{
- Exclude checks
Rule doesn't have all its properties in alphabetical order. Open
.SVGChoiceCaption {
- Exclude checks
Rule doesn't have all its properties in alphabetical order. Open
.toolbar {
- Exclude checks
Rule doesn't have all its properties in alphabetical order. Open
.palette button {
- Exclude checks
Don't use IDs in selectors. Open
#trashcan[visibility=visible] > circle{
- Exclude checks
Rule doesn't have all its properties in alphabetical order. Open
.dialog .window-header .window-button {
- Exclude checks
Adjoining classes: .dialog.mac > * > .content-pane .command-link-message Open
.dialog.mac > * > .content-pane .command-link-message {
- Exclude checks