lucasmiranda42/deepof

View on GitHub

Showing 344 of 362 total issues

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

function Tween( elem, options, prop, end, easing ) {
Severity: Minor
Found in docs/build/html/_static/jquery-3.6.0.js - About 35 mins to fix

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

            "CHILD": function( type, what, _argument, first, last ) {
    Severity: Minor
    Found in docs/build/html/_static/jquery-3.6.0.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 docs/build/html/_static/jquery-3.6.0.js - About 35 mins to fix

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

        function buildFragment( elems, context, scripts, selection, ignored ) {
        Severity: Minor
        Found in docs/build/html/_static/jquery-3.6.0.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 docs/build/html/_static/jquery-3.6.0.js - About 35 mins to fix

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

            def plot_arena(
            Severity: Minor
            Found in deepof/visuals.py - About 35 mins to fix

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

                  def call(
              Severity: Minor
              Found in deepof/model_utils.py - About 35 mins to fix

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

                    def create(
                Severity: Minor
                Found in deepof/data.py - About 35 mins to fix

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

                      def get_distances(
                  Severity: Minor
                  Found in deepof/data.py - About 35 mins to fix

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

                        def get_angles(
                    Severity: Minor
                    Found in deepof/data.py - About 35 mins to fix

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

                      def fc_loss(
                      Severity: Minor
                      Found in deepof/model_utils.py - About 35 mins to fix

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

                        def explain_clusters(
                        Severity: Minor
                        Found in deepof/post_hoc.py - About 35 mins to fix

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

                          def rolling_window(
                          Severity: Minor
                          Found in deepof/utils.py - About 35 mins to fix

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

                                def call(
                            Severity: Minor
                            Found in deepof/model_utils.py - About 35 mins to fix

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

                              def train_supervised_cluster_detectors(
                              Severity: Minor
                              Found in deepof/post_hoc.py - About 35 mins to fix

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

                                def load_table(
                                Severity: Minor
                                Found in deepof/utils.py - About 35 mins to fix

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

                                      def click_on_corners(event, x, y, flags, param):
                                  Severity: Minor
                                  Found in deepof/utils.py - About 35 mins to fix

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

                                        def __init__(
                                    Severity: Minor
                                    Found in deepof/models.py - About 35 mins to fix

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

                                      def filter_short_bouts(
                                      Severity: Minor
                                      Found in deepof/utils.py - About 35 mins to fix

                                        Function _displayItem has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                        Open

                                        const _displayItem = (item, searchTerms) => {
                                          const docBuilder = DOCUMENTATION_OPTIONS.BUILDER;
                                          const docUrlRoot = DOCUMENTATION_OPTIONS.URL_ROOT;
                                          const docFileSuffix = DOCUMENTATION_OPTIONS.FILE_SUFFIX;
                                          const docLinkSuffix = DOCUMENTATION_OPTIONS.LINK_SUFFIX;
                                        Severity: Minor
                                        Found in docs/build/html/_static/searchtools.js - 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