Showing 2,938 of 7,767 total issues

Similar blocks of code found in 11 locations. Consider refactoring.
Open

msgzk = {
    NOT_FOUND: 'Nie znaleziono: ',
    UNSUPPORTED: 'Nie wspierane: ',
    FAILED_TO_SEND: 'Niepowodzenie wysłania żądania na serwer.',
    FAILED_TO_RESPONSE: 'Serwer jest tymczasowo niedostępny.',
Severity: Major
Found in zk/src/main/resources/web/js/zk/lang/msgzk_pl.js and 10 other locations - About 4 hrs to fix
zk/src/main/resources/web/js/zk/lang/msgzk.js on lines 15..40
zk/src/main/resources/web/js/zk/lang/msgzk_da.js on lines 15..40
zk/src/main/resources/web/js/zk/lang/msgzk_de.js on lines 15..40
zk/src/main/resources/web/js/zk/lang/msgzk_fr.js on lines 16..41
zk/src/main/resources/web/js/zk/lang/msgzk_ja.js on lines 16..41
zk/src/main/resources/web/js/zk/lang/msgzk_ru.js on lines 6..28
zk/src/main/resources/web/js/zk/lang/msgzk_zh.js on lines 15..40
zk/src/main/resources/web/js/zk/lang/msgzk_zh_CN.js on lines 15..40
zk/src/main/resources/web/js/zk/lang/msgzk_zh_SG.js on lines 15..40
zk/src/main/resources/web/js/zk/lang/msgzk_zh_TW.js on lines 15..40

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 115.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 11 locations. Consider refactoring.
Open

msgzk = {
    NOT_FOUND: '找不到:',
    UNSUPPORTED: '尚未支援:',
    FAILED_TO_SEND: '無法傳送資料到伺服器。',
    FAILED_TO_RESPONSE: '伺服器暫時無法處理你的請求。',
Severity: Major
Found in zk/src/main/resources/web/js/zk/lang/msgzk_zh_TW.js and 10 other locations - About 4 hrs to fix
zk/src/main/resources/web/js/zk/lang/msgzk.js on lines 15..40
zk/src/main/resources/web/js/zk/lang/msgzk_da.js on lines 15..40
zk/src/main/resources/web/js/zk/lang/msgzk_de.js on lines 15..40
zk/src/main/resources/web/js/zk/lang/msgzk_fr.js on lines 16..41
zk/src/main/resources/web/js/zk/lang/msgzk_ja.js on lines 16..41
zk/src/main/resources/web/js/zk/lang/msgzk_pl.js on lines 15..40
zk/src/main/resources/web/js/zk/lang/msgzk_ru.js on lines 6..28
zk/src/main/resources/web/js/zk/lang/msgzk_zh.js on lines 15..40
zk/src/main/resources/web/js/zk/lang/msgzk_zh_CN.js on lines 15..40
zk/src/main/resources/web/js/zk/lang/msgzk_zh_SG.js on lines 15..40

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 115.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 11 locations. Consider refactoring.
Open

msgzk = {
    NOT_FOUND: '找不到:',
    UNSUPPORTED: '尚未支援:',
    FAILED_TO_SEND: '無法傳送資料到伺服器。',
    FAILED_TO_RESPONSE: '伺服器暫時無法處理你的請求。',
Severity: Major
Found in zk/src/main/resources/web/js/zk/lang/msgzk_zh.js and 10 other locations - About 4 hrs to fix
zk/src/main/resources/web/js/zk/lang/msgzk.js on lines 15..40
zk/src/main/resources/web/js/zk/lang/msgzk_da.js on lines 15..40
zk/src/main/resources/web/js/zk/lang/msgzk_de.js on lines 15..40
zk/src/main/resources/web/js/zk/lang/msgzk_fr.js on lines 16..41
zk/src/main/resources/web/js/zk/lang/msgzk_ja.js on lines 16..41
zk/src/main/resources/web/js/zk/lang/msgzk_pl.js on lines 15..40
zk/src/main/resources/web/js/zk/lang/msgzk_ru.js on lines 6..28
zk/src/main/resources/web/js/zk/lang/msgzk_zh_CN.js on lines 15..40
zk/src/main/resources/web/js/zk/lang/msgzk_zh_SG.js on lines 15..40
zk/src/main/resources/web/js/zk/lang/msgzk_zh_TW.js on lines 15..40

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 115.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 11 locations. Consider refactoring.
Open

msgzk = {
    NOT_FOUND: '找不到:',
    UNSUPPORTED: '尚未支持:',
    FAILED_TO_SEND: '无法传送资料到服务器。',
    FAILED_TO_RESPONSE: '伺服器暂时无法处理你的请求。',
Severity: Major
Found in zk/src/main/resources/web/js/zk/lang/msgzk_zh_SG.js and 10 other locations - About 4 hrs to fix
zk/src/main/resources/web/js/zk/lang/msgzk.js on lines 15..40
zk/src/main/resources/web/js/zk/lang/msgzk_da.js on lines 15..40
zk/src/main/resources/web/js/zk/lang/msgzk_de.js on lines 15..40
zk/src/main/resources/web/js/zk/lang/msgzk_fr.js on lines 16..41
zk/src/main/resources/web/js/zk/lang/msgzk_ja.js on lines 16..41
zk/src/main/resources/web/js/zk/lang/msgzk_pl.js on lines 15..40
zk/src/main/resources/web/js/zk/lang/msgzk_ru.js on lines 6..28
zk/src/main/resources/web/js/zk/lang/msgzk_zh.js on lines 15..40
zk/src/main/resources/web/js/zk/lang/msgzk_zh_CN.js on lines 15..40
zk/src/main/resources/web/js/zk/lang/msgzk_zh_TW.js on lines 15..40

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 115.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 11 locations. Consider refactoring.
Open

msgzk = {
    NOT_FOUND: '見つかりません: ',
    UNSUPPORTED: '今後サポートする予定です: ',
    FAILED_TO_SEND: 'リクエストの送信に失敗しました。',
    FAILED_TO_RESPONSE: 'サーバーが応答しませんでした。',
Severity: Major
Found in zk/src/main/resources/web/js/zk/lang/msgzk_ja.js and 10 other locations - About 4 hrs to fix
zk/src/main/resources/web/js/zk/lang/msgzk.js on lines 15..40
zk/src/main/resources/web/js/zk/lang/msgzk_da.js on lines 15..40
zk/src/main/resources/web/js/zk/lang/msgzk_de.js on lines 15..40
zk/src/main/resources/web/js/zk/lang/msgzk_fr.js on lines 16..41
zk/src/main/resources/web/js/zk/lang/msgzk_pl.js on lines 15..40
zk/src/main/resources/web/js/zk/lang/msgzk_ru.js on lines 6..28
zk/src/main/resources/web/js/zk/lang/msgzk_zh.js on lines 15..40
zk/src/main/resources/web/js/zk/lang/msgzk_zh_CN.js on lines 15..40
zk/src/main/resources/web/js/zk/lang/msgzk_zh_SG.js on lines 15..40
zk/src/main/resources/web/js/zk/lang/msgzk_zh_TW.js on lines 15..40

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 115.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 11 locations. Consider refactoring.
Open

msgzk = {
    NOT_FOUND: '找不到:',
    UNSUPPORTED: '尚未支持:',
    FAILED_TO_SEND: '无法传送资料到服务器。',
    FAILED_TO_RESPONSE: '伺服器暂时无法处理你的请求。',
Severity: Major
Found in zk/src/main/resources/web/js/zk/lang/msgzk_zh_CN.js and 10 other locations - About 4 hrs to fix
zk/src/main/resources/web/js/zk/lang/msgzk.js on lines 15..40
zk/src/main/resources/web/js/zk/lang/msgzk_da.js on lines 15..40
zk/src/main/resources/web/js/zk/lang/msgzk_de.js on lines 15..40
zk/src/main/resources/web/js/zk/lang/msgzk_fr.js on lines 16..41
zk/src/main/resources/web/js/zk/lang/msgzk_ja.js on lines 16..41
zk/src/main/resources/web/js/zk/lang/msgzk_pl.js on lines 15..40
zk/src/main/resources/web/js/zk/lang/msgzk_ru.js on lines 6..28
zk/src/main/resources/web/js/zk/lang/msgzk_zh.js on lines 15..40
zk/src/main/resources/web/js/zk/lang/msgzk_zh_SG.js on lines 15..40
zk/src/main/resources/web/js/zk/lang/msgzk_zh_TW.js on lines 15..40

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 115.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

package org.zkoss.zktest.bind.databinding.validator;

import org.zkoss.bind.ValidationContext;
import org.zkoss.bind.Validator;
import org.zkoss.bind.annotation.Command;
zktest/src/main/java/org/zkoss/zktest/bind/issue/B00848ValidationMessagesEmpty.java on lines 1..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 245.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

package org.zkoss.zktest.bind.issue;

import org.zkoss.bind.Form;
import org.zkoss.bind.Property;
import org.zkoss.bind.ValidationContext;
zktest/src/main/java/org/zkoss/zktest/bind/databinding/validator/ValidationMessagesVM.java on lines 1..76

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 245.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 3 locations. Consider refactoring.
Open

/* Area.java

    Purpose:
        
    Description:
Severity: Major
Found in zhtml/src/main/java/org/zkoss/zhtml/Area.java and 2 other locations - About 3 hrs to fix
zhtml/src/main/java/org/zkoss/zhtml/Iframe.java on lines 1..201
zhtml/src/main/java/org/zkoss/zhtml/Link.java on lines 1..190

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 242.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 3 locations. Consider refactoring.
Open

/* Link.java

    Purpose:
        
    Description:
Severity: Major
Found in zhtml/src/main/java/org/zkoss/zhtml/Link.java and 2 other locations - About 3 hrs to fix
zhtml/src/main/java/org/zkoss/zhtml/Area.java on lines 1..209
zhtml/src/main/java/org/zkoss/zhtml/Iframe.java on lines 1..201

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 242.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 3 locations. Consider refactoring.
Open

/* Iframe.java

    Purpose:
        
    Description:
Severity: Major
Found in zhtml/src/main/java/org/zkoss/zhtml/Iframe.java and 2 other locations - About 3 hrs to fix
zhtml/src/main/java/org/zkoss/zhtml/Area.java on lines 1..209
zhtml/src/main/java/org/zkoss/zhtml/Link.java on lines 1..190

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 242.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

            if (format === 'dddd') {
                ii = indexOf.call(this._weekdaysParse, llc);
                if (ii !== -1) {
                    return ii;
                }
Severity: Major
Found in zk/src/main/resources/web/js/zk/ext/moment.js and 1 other location - About 3 hrs to fix
zk/src/main/resources/web/js/zk/ext/moment.js on lines 1620..1642

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 111.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

            } else if (format === 'ddd') {
                ii = indexOf.call(this._shortWeekdaysParse, llc);
                if (ii !== -1) {
                    return ii;
                }
Severity: Major
Found in zk/src/main/resources/web/js/zk/ext/moment.js and 1 other location - About 3 hrs to fix
zk/src/main/resources/web/js/zk/ext/moment.js on lines 1609..1642

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 111.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

private int jjMoveStringLiteralDfa2_2(long old0, long active0)
{
   if (((active0 &= old0)) == 0L)
      return jjStartNfa_2(0, old0);
   try { curChar = input_stream.readChar(); }
zel/src/main/java/org/zkoss/zel/impl/parser/ELParserTokenManager.java on lines 1299..1336

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 237.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

private int jjMoveStringLiteralDfa2_1(long old0, long active0)
{
   if (((active0 &= old0)) == 0L)
      return jjStartNfa_1(0, old0);
   try { curChar = input_stream.readChar(); }
zel/src/main/java/org/zkoss/zel/impl/parser/ELParserTokenManager.java on lines 506..543

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 237.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

    public static String toNodeString(Node next, StringBuilder path) {
        if (next instanceof AstBracketSuffix) {
            final String bracketString = toNodeString(next.jjtGetChild(0), new StringBuilder()); //recursive
            path.append("[").append(bracketString).append("]");
        } else if (next instanceof AstValue) {
zkbind/src/main/java/org/zkoss/bind/xel/zel/BindELContext.java on lines 260..284

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 233.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

    public static String toNodeString(Node next, StringBuffer path) {
        if (next instanceof AstBracketSuffix) {
            final String bracketString = toNodeString(next.jjtGetChild(0), new StringBuffer()); //recursive
            path.append("[").append(bracketString).append("]");
        } else if (next instanceof AstValue) {
zkbind/src/main/java/org/zkoss/bind/xel/zel/BindELContext.java on lines 234..258

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 233.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

                    if (this._isVer) {
                        const moving = opts.startPosition + 'px';
                        this.epos.style.top = moving;
                    $drag.animate({top: moving}, 500);
                        if (typeof this.opts.onScrollY == 'function')
Severity: Major
Found in zul/src/main/resources/web/js/zul/WScroll.ts and 1 other location - About 3 hrs to fix
zul/src/main/resources/web/js/zul/WScroll.ts on lines 510..516

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 109.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

                    } else {
                        const moving = opts.startPosition + 'px';
                        this.epos.style.left = moving;
                    $drag.animate({left: moving}, 500);
                        if (typeof this.opts.onScrollX == 'function')
Severity: Major
Found in zul/src/main/resources/web/js/zul/WScroll.ts and 1 other location - About 3 hrs to fix
zul/src/main/resources/web/js/zul/WScroll.ts on lines 504..510

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 109.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Identical blocks of code found in 7 locations. Consider refactoring.
Open

    public static class Tag  implements Serializable{
        private String value;

        public Tag() {
        }
zktest/src/main/java/org/zkoss/zktest/bind/viewmodel/form/FormWithList.java on lines 215..266
zktest/src/main/java/org/zkoss/zktest/bind/viewmodel/form/FormWithSet.java on lines 217..268
zktest/src/main/java/org/zkoss/zktest/test2/F96_ZK_4394_ListModelArrayVM.java on lines 168..219
zktest/src/main/java/org/zkoss/zktest/test2/F96_ZK_4394_ListModelListVM.java on lines 197..248
zktest/src/main/java/org/zkoss/zktest/test2/F96_ZK_4394_ListModelMapVM.java on lines 198..249
zktest/src/main/java/org/zkoss/zktest/test2/F96_ZK_4394_ListModelSetVM.java on lines 201..252

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 230.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Severity
Category
Status
Source
Language