Showing 7,775 of 7,775 total issues

Function _scroll has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _scroll(): void {
        var current = new Date(),
            delta = current.valueOf() - this.lastScrolled!.valueOf();
        this.lastScrolled = current;
        if (this.opts.scroll == window) {
Severity: Minor
Found in zk/src/main/resources/web/js/zk/drag.ts - About 1 hr to fix

    Function getForSourceFile has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export function getForSourceFile(sourceFilePath: string): TSDocConfigFile {
        const sourceFileFolder = path.dirname(path.resolve(sourceFilePath));
        // First, determine the file to be loaded. If not found, the configFilePath will be an empty string.
        const configFilePath = TSDocConfigFile.findConfigPathForFolder(sourceFileFolder);
        // If configFilePath is an empty string, then we'll use the folder of sourceFilePath as our cache key.
    Severity: Minor
    Found in eslint-plugin-zk/src/rules/tsdocConfigCache.ts - About 1 hr to fix

      Function Literal has 31 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                  Literal(node) {
                      if (node.raw === 'null') {
                          let parent = node.parent;
                          while (parent) {
                              if (visitedNode[parent.range.toString()]) {
      Severity: Minor
      Found in eslint-plugin-zk/src/rules/noNull.ts - About 1 hr to fix

        Function getTsdocConfig has 31 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                function getTsdocConfig(): TSDocConfiguration | undefined {
                    const tsdocConfig = new TSDocConfiguration();
                    try {
                        const tsdocConfigFile = getForSourceFile(context.getFilename());
                        if (!tsdocConfigFile.fileNotFound) {
        Severity: Minor
        Found in eslint-plugin-zk/src/rules/tsdocValidation.ts - About 1 hr to fix

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

                  if (value instanceof long[]) {
                      _buf.append('[');
                      final long[] ary = (long[]) value;
                      for (int j = 0; j < ary.length; ++j) {
                          if (j > 0)
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 254..264
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 265..275
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 287..297
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 298..308
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 309..319
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 320..330
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 331..341

          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 84.

          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 8 locations. Consider refactoring.
          Open

                  if (value instanceof float[]) {
                      _buf.append('[');
                      final float[] ary = (float[]) value;
                      for (int j = 0; j < ary.length; ++j) {
                          if (j > 0)
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 254..264
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 265..275
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 276..286
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 287..297
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 309..319
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 320..330
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 331..341

          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 84.

          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 8 locations. Consider refactoring.
          Open

                  if (value instanceof short[]) {
                      _buf.append('[');
                      final short[] ary = (short[]) value;
                      for (int j = 0; j < ary.length; ++j) {
                          if (j > 0)
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 254..264
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 265..275
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 276..286
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 298..308
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 309..319
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 320..330
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 331..341

          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 84.

          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 8 locations. Consider refactoring.
          Open

                  if (value instanceof Object[]) {
                      _buf.append('[');
                      final Object[] ary = (Object[]) value;
                      for (int j = 0; j < ary.length; ++j) {
                          if (j > 0)
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 265..275
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 276..286
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 287..297
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 298..308
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 309..319
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 320..330
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 331..341

          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 84.

          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 8 locations. Consider refactoring.
          Open

                  if (value instanceof byte[]) {
                      _buf.append('[');
                      final byte[] ary = (byte[]) value;
                      for (int j = 0; j < ary.length; ++j) {
                          if (j > 0)
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 254..264
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 265..275
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 276..286
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 287..297
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 298..308
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 309..319
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 331..341

          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 84.

          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 8 locations. Consider refactoring.
          Open

                  if (value instanceof double[]) {
                      _buf.append('[');
                      final double[] ary = (double[]) value;
                      for (int j = 0; j < ary.length; ++j) {
                          if (j > 0)
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 254..264
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 265..275
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 276..286
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 287..297
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 298..308
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 320..330
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 331..341

          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 84.

          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 8 locations. Consider refactoring.
          Open

                  if (value instanceof char[]) {
                      _buf.append('[');
                      final char[] ary = (char[]) value;
                      for (int j = 0; j < ary.length; ++j) {
                          if (j > 0)
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 254..264
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 265..275
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 276..286
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 287..297
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 298..308
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 309..319
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 320..330

          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 84.

          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 8 locations. Consider refactoring.
          Open

                  if (value instanceof int[]) {
                      _buf.append('[');
                      final int[] ary = (int[]) value;
                      for (int j = 0; j < ary.length; ++j) {
                          if (j > 0)
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 254..264
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 276..286
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 287..297
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 298..308
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 309..319
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 320..330
          zk/src/main/java/org/zkoss/zk/ui/sys/JsContentRenderer.java on lines 331..341

          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 84.

          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 6 locations. Consider refactoring.
          Open

              public static class Person{
                  String firstName;
                  String lastName;
                  public Person() {}
                  public Person(String firstName,String lastName){
          zktest/src/main/java/org/zkoss/zktest/bind/issue/B00911FormNotifyChange.java on lines 33..57
          zktest/src/main/java/org/zkoss/zktest/test2/B60_ZK_1007_TreeComposer.java on lines 109..136
          zktest/src/main/java/org/zkoss/zktest/test2/B80_ZK_3149Object.java on lines 3..31
          zktest/src/main/java/org/zkoss/zktest/test2/B95_ZK_4685VM.java on lines 72..99
          zktest/src/main/java/org/zkoss/zktest/test2/B95_ZK_4686_1VM.java on lines 68..95

          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 84.

          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 6 locations. Consider refactoring.
          Open

              public class FileInfo {
                  private String path;
                  private String description;
          
                  public FileInfo() {
          zktest/src/main/java/org/zkoss/zktest/bind/issue/B00911FormNotifyChange.java on lines 33..57
          zktest/src/main/java/org/zkoss/zktest/bind/issue/B01088FormUpdate.java on lines 33..54
          zktest/src/main/java/org/zkoss/zktest/test2/B80_ZK_3149Object.java on lines 3..31
          zktest/src/main/java/org/zkoss/zktest/test2/B95_ZK_4685VM.java on lines 72..99
          zktest/src/main/java/org/zkoss/zktest/test2/B95_ZK_4686_1VM.java on lines 68..95

          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 84.

          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 2 locations. Consider refactoring.
          Open

              static public class Item {
                  String name;
                  
                  List<Option> options = new ArrayList<Option>();
          
          
          zktest/src/main/java/org/zkoss/zktest/bind/issue/B00821SelectedIndex.java on lines 52..74

          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 84.

          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 6 locations. Consider refactoring.
          Open

              public static class FormModel {
                  private String template;
                  private ContentModel formContent;
          
                  public FormModel() {
          zktest/src/main/java/org/zkoss/zktest/bind/issue/B00911FormNotifyChange.java on lines 33..57
          zktest/src/main/java/org/zkoss/zktest/bind/issue/B01088FormUpdate.java on lines 33..54
          zktest/src/main/java/org/zkoss/zktest/test2/B60_ZK_1007_TreeComposer.java on lines 109..136
          zktest/src/main/java/org/zkoss/zktest/test2/B80_ZK_3149Object.java on lines 3..31
          zktest/src/main/java/org/zkoss/zktest/test2/B95_ZK_4685VM.java on lines 72..99

          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 84.

          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 2 locations. Consider refactoring.
          Open

              void removeBindings(Collection<Binding> removes) {
                  for (List<LoadPropertyBinding> bindings : _loadAfterBindings.values()) {
                      bindings.removeAll(removes); //command -> bindings (load after command)
                  }
                  for (List<SavePropertyBinding> bindings : _saveAfterBindings.values()) {
          zkbind/src/main/java/org/zkoss/bind/impl/FormBindingHandler.java on lines 189..202

          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 84.

          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 6 locations. Consider refactoring.
          Open

          public class B80_ZK_3149Object {
              private String name;
              private String info;
          
              public B80_ZK_3149Object() {
          zktest/src/main/java/org/zkoss/zktest/bind/issue/B00911FormNotifyChange.java on lines 33..57
          zktest/src/main/java/org/zkoss/zktest/bind/issue/B01088FormUpdate.java on lines 33..54
          zktest/src/main/java/org/zkoss/zktest/test2/B60_ZK_1007_TreeComposer.java on lines 109..136
          zktest/src/main/java/org/zkoss/zktest/test2/B95_ZK_4685VM.java on lines 72..99
          zktest/src/main/java/org/zkoss/zktest/test2/B95_ZK_4686_1VM.java on lines 68..95

          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 84.

          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 2 locations. Consider refactoring.
          Open

              static public class Item {
                  String name;
                  
                  List<Option> options = new ArrayList<Option>();
          
          
          zktest/src/main/java/org/zkoss/zktest/bind/issue/F00843SelectboxSelectedItem.java on lines 54..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 84.

          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 6 locations. Consider refactoring.
          Open

              public static class FormModel {
                  private String template;
                  private ContentModel formContent;
          
                  public FormModel() {
          zktest/src/main/java/org/zkoss/zktest/bind/issue/B00911FormNotifyChange.java on lines 33..57
          zktest/src/main/java/org/zkoss/zktest/bind/issue/B01088FormUpdate.java on lines 33..54
          zktest/src/main/java/org/zkoss/zktest/test2/B60_ZK_1007_TreeComposer.java on lines 109..136
          zktest/src/main/java/org/zkoss/zktest/test2/B80_ZK_3149Object.java on lines 3..31
          zktest/src/main/java/org/zkoss/zktest/test2/B95_ZK_4686_1VM.java on lines 68..95

          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 84.

          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