Showing 4,841 of 7,782 total issues

Function CHILD has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

        "CHILD": function( type, what, _argument, first, last ) {
Severity: Minor
Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 35 mins to fix

    Function superMatcher has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

            superMatcher = function( seed, context, xml, results, outermost ) {
    Severity: Minor
    Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 35 mins to fix

      Function _bc_simp_mul has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      libbcmath._bc_simp_mul = function(a, b, c, d, e) {
      Severity: Minor
      Found in zktest/src/main/webapp/test2/js/zk-3913-PDF417lib.js - About 35 mins to fix

        Function memcpy has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            memcpy: function(a, b, c, d, e) {
        Severity: Minor
        Found in zktest/src/main/webapp/test2/js/zk-3913-PDF417lib.js - About 35 mins to fix

          Function condense has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          function condense( unmatched, map, filter, context, xml ) {
          Severity: Minor
          Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 35 mins to fix

            Function add has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                add: function( elem, types, handler, data, selector ) {
            Severity: Minor
            Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 35 mins to fix

              Function setWeekAll has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  function setWeekAll(weekYear, week, weekday, dow, doy) {
              Severity: Minor
              Found in zk/src/main/resources/web/js/zk/ext/moment.js - About 35 mins to fix

                Function getSetWeekYearHelper has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    function getSetWeekYearHelper(input, week, weekday, dow, doy) {
                Severity: Minor
                Found in zk/src/main/resources/web/js/zk/ext/moment.js - About 35 mins to fix

                  Function substituteTimeAgo has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {
                  Severity: Minor
                  Found in zk/src/main/resources/web/js/zk/ext/moment.js - About 35 mins to fix

                    Function createLocalOrUTC has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        function createLocalOrUTC(input, format, locale, strict, isUTC) {
                    Severity: Minor
                    Found in zk/src/main/resources/web/js/zk/ext/moment.js - About 35 mins to fix

                      Function dayOfYearFromWeeks has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          function dayOfYearFromWeeks(year, week, weekday, dow, doy) {
                      Severity: Minor
                      Found in zk/src/main/resources/web/js/zk/ext/moment.js - About 35 mins to fix

                        Function on has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            on(type: string, selector: string | undefined, data, fn: CallableFunction, ...rest: unknown[]): JQuery {
                        Severity: Minor
                        Found in zk/src/main/resources/web/js/zk/dom.ts - About 35 mins to fix

                          Function off has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              off: function (this: JQuery, type: string, selector: unknown, fn: unknown, ...rest: unknown[]) {
                          Severity: Minor
                          Found in zk/src/main/resources/web/js/zk/domtouch.ts - About 35 mins to fix

                            Function zkdt has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                export function zkdt(dtid?: string, contextURI?: string, updateURI?: string, resourceURI?: string, reqURI?: string): zk.Desktop {
                            Severity: Minor
                            Found in zk/src/main/resources/web/js/zk/mount.ts - About 35 mins to fix

                              Function isOverlapped has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                  isOverlapped(ofs1: zk.Offset, dim1: zk.Offset, ofs2: zk.Offset, dim2: zk.Offset, tolerant?: number): boolean {
                              Severity: Minor
                              Found in zk/src/main/resources/web/js/zk/dom.ts - About 35 mins to fix

                                Function easing has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                function easing(x: number, t: number, b: number, c: number, d: number): number {
                                Severity: Minor
                                Found in zul/src/main/resources/web/js/zul/WScroll.ts - About 35 mins to fix

                                  Function loadScript has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                  export function loadScript(src: string, name?: string, charset?: string, force?: boolean, callback?: CallableFunction): void { // FIXME: return ZKCoreUtilityStatic;
                                  Severity: Minor
                                  Found in zk/src/main/resources/web/js/zk/pkg.ts - About 35 mins to fix

                                    Method init has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                    Open

                                        private void init(String name, byte[] data) throws IOException {
                                            if (data == null)
                                                throw new IllegalArgumentException("null data");
                                            _name = name;
                                            _data = data;
                                    Severity: Minor
                                    Found in zcommon/src/main/java/org/zkoss/image/AImage.java - About 35 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 setDynamicProperty has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                    Open

                                        public void setDynamicProperty(String name, Object value) throws WrongValueException {
                                            if (name == null)
                                                throw new WrongValueException("name is required");
                                            if (!hasDynamicProperty(name))
                                                throw new WrongValueException("Attribute not allowed: " + name
                                    Severity: Minor
                                    Found in zhtml/src/main/java/org/zkoss/zhtml/impl/AbstractTag.java - About 35 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 equals has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                    Open

                                        public boolean equals(Object o) {
                                            if (this == o) return true;
                                            if (!(o instanceof StyleSheet))
                                                return false;
                                            final StyleSheet ss = (StyleSheet)o;
                                    Severity: Minor
                                    Found in zcommon/src/main/java/org/zkoss/html/StyleSheet.java - About 35 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