fujaba/NetworkParser

View on GitHub

Showing 3,691 of 4,645 total issues

Method contains has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    @Override
    public boolean contains(Object o) {
        if (size < MINHASHINGSIZE) {
            for (int pos = 0; pos < this.size; pos++) {
                if (o == elements[pos++]) {
Severity: Minor
Found in src/main/java/de/uniks/networkparser/list/SpeedList.java - About 25 mins to fix

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 update has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    @Override
    public boolean update(Object value) {
        if (value instanceof SimpleEvent == false) {
            return false;
        }
Severity: Minor
Found in src/main/java/de/uniks/networkparser/logic/MapCondition.java - About 25 mins to fix

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 with has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    public SimpleEntity<K, V> with(Map<Object, Object> collection) {
        if (collection != null) {
            Iterator<Entry<Object, Object>> i = collection.entrySet().iterator();
            while (i.hasNext()) {
                Entry<Object, Object> e = i.next();
Severity: Minor
Found in src/main/java/de/uniks/networkparser/list/SimpleEntity.java - About 25 mins to fix

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 getValue has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    @Override
    public Object getValue(LocalisationInterface value) {
        if (value instanceof SendableEntityCreator) {
            SendableEntityCreator variables = (SendableEntityCreator) value;
            Object object = variables.getValue(variables, this.key);
Severity: Minor
Found in src/main/java/de/uniks/networkparser/logic/Equals.java - About 25 mins to fix

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 subList has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

  public BaseItem subList(int fromIndex, int toIndex) {
    BaseItem newInstance = getNewList(false);
    if (fromIndex < 0) {
      fromIndex += size;
    }
Severity: Minor
Found in src/main/java/de/uniks/networkparser/list/AbstractArray.java - About 25 mins to fix

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 updateSet has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    public boolean updateSet(Object evt) {
        Set<ObjectCondition> list = getList();
        boolean result = true;
        for (ObjectCondition item : list) {
            if (item.update(evt) == false) {
Severity: Minor
Found in src/main/java/de/uniks/networkparser/logic/ListCondition.java - About 25 mins to fix

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 retransformIndex has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

  private int retransformIndex(int index, int size) {
    if (elements[DELETED] != null) {
      Object[] items = (Object[]) elements[DELETED];
      for (int i = 0; i < items.length; i++) {
        if (((Integer) items[i]) > index) {
Severity: Minor
Found in src/main/java/de/uniks/networkparser/list/AbstractArray.java - About 25 mins to fix

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 toArray has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

  public <T> T[] toArray(T[] a) {
    if (a == null) {
      return null;
    }
    Object[] elementData;
Severity: Minor
Found in src/main/java/de/uniks/networkparser/list/AbstractArray.java - About 25 mins to fix

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 addPropertyChange has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    public void addPropertyChange(Object item) {
        if (item == null) {
            return;
        }
        if (item instanceof SendableEntity) {

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 addToList has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    public JsonObject addToList(String key, Object value) {
        Object object = this.get(key);
        if (object == null) {
            if (value instanceof AbstractList) {
                BaseItem newList = getNewList(true);
Severity: Minor
Found in src/main/java/de/uniks/networkparser/json/JsonObject.java - About 25 mins to fix

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 getBoolean has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    public boolean getBoolean(K key) throws SimpleException {
        Object value = get(key);

        if (Boolean.FALSE.equals(value) || (value instanceof String && "false".equalsIgnoreCase((String) value))) {
            return false;
Severity: Minor
Found in src/main/java/de/uniks/networkparser/list/SimpleKeyValueList.java - About 25 mins to fix

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 update has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    @Override
    public boolean update(Object value) {
        if(mouseEventClass == null || value == null) {
            return false;
        }
Severity: Minor
Found in src/main/java/de/uniks/networkparser/ext/javafx/DiceController.java - About 25 mins to fix

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 setStyle has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    @SuppressWarnings("unchecked")
    public static void setStyle(Object element, boolean clear, String... stylesValues) {
        Object styles = ReflectionLoader.call(element, "getStyleClass");
        if (styles != null && styles instanceof List<?>) {
            List<String> styleList = (List<String>) styles;
Severity: Minor
Found in src/main/java/de/uniks/networkparser/ext/javafx/JavaBridgeFX.java - About 25 mins to fix

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 getValue has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    @Override
    public Object getValue(Object entity, String attribute) {
        if (entity instanceof ModelListenerProperty == false || attribute == null) {
            return null;
        }

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 loadValue has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    public Object loadValue(Object key) {
        /* if already loaded, take the loaded value.. */
        if (this.keySet().contains(key)) {
            return this.get(key);
        }
Severity: Minor
Found in src/main/java/de/uniks/networkparser/ext/javafx/JsonObjectLazy.java - About 25 mins to fix

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 run has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    @Override
    public void run() {
        Object transparent = ReflectionLoader.getField(ReflectionLoader.STAGESTYLE, "TRANSPARENT");
        this.stage = ReflectionLoader.newInstance(ReflectionLoader.STAGE, ReflectionLoader.STAGESTYLE, transparent);
        parent.setStage(this.stage);
Severity: Minor
Found in src/main/java/de/uniks/networkparser/ext/javafx/DialogStage.java - About 25 mins to fix

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 getCardinality has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    private String getCardinality(Association assoc) {
        if (assoc == null || assoc.getOther() == null) {
            return null;
        }
        if (assoc.getCardinality() == Association.ONE) {
Severity: Minor
Found in src/main/java/de/uniks/networkparser/xml/JDLTokener.java - About 25 mins to fix

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 metaFile has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    public XMLContainer metaFile(ArtifactList list) {
        XMLContainer entity = new XMLContainer().withStandardPrefix();
        XMLEntity metadata = entity.createChild("metadata");
        if(list == null) {
            return entity;
Severity: Minor
Found in src/main/java/de/uniks/networkparser/ext/MavenXML.java - About 25 mins to fix

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 encodeOwnedValue has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    public void encodeOwnedValue(XMLEntity root, Value value) {
        if (root == null || value == null) {
            return;
        }
        if (value instanceof Attribute) {
Severity: Minor
Found in src/main/java/de/uniks/networkparser/xml/EMFTokener.java - About 25 mins to fix

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 addStyle has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    public HTMLEntity addStyle(String name, String style) {
        XMLEntity styleElement = null;
        for (int i = 0; i < header.size(); i++) {
            BaseItem child = header.getChild(i);
            if (child instanceof XMLEntity == false) {
Severity: Minor
Found in src/main/java/de/uniks/networkparser/xml/HTMLEntity.java - About 25 mins to fix

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

Severity
Category
Status
Source
Language