cloudamatic/mu

View on GitHub

Showing 255 of 2,705 total issues

Avoid too many return statements within this method.
Open

        return matches if return_all and matches.size >= 1
Severity: Major
Found in modules/mu/mommacat/search.rb - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                return nil
    Severity: Major
    Found in modules/mu/providers/aws/vpc_subnet.rb - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                  return name_only ? name : $MU_CFG['azure'][name]
      Severity: Major
      Found in modules/mu/providers/azure.rb - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                    return true
        Severity: Major
        Found in modules/mu/providers/aws/vpc_subnet.rb - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                    return nil
          Severity: Major
          Found in modules/mu/providers/azure.rb - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                    return :yaml
            Severity: Major
            Found in modules/mu/config.rb - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                      return
              Severity: Major
              Found in modules/mu/master.rb - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                                return false
                Severity: Major
                Found in modules/mu/config/vpc.rb - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                            return nil
                  Severity: Major
                  Found in modules/mu/providers/azure.rb - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                          return nil
                    Severity: Major
                    Found in modules/mu/mommacat/search.rb - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                    return
                      Severity: Major
                      Found in modules/mu/master.rb - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                              return
                        Severity: Major
                        Found in modules/mu/mommacat/daemon.rb - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                  return docstring
                          Severity: Major
                          Found in modules/mu/config/doc_helpers.rb - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                        return false
                            Severity: Major
                            Found in modules/mu/config/vpc.rb - About 30 mins to fix

                              Method manageRecord has a Cognitive Complexity of 76 (exceeds 75 allowed). Consider refactoring.
                              Open

                                      def self.manageRecord(id, name, type, targets: nil,
                                          ttl: 7200, delete: false, sync_wait: true, failover: nil,
                                          healthcheck: nil, region: nil, weight: nil, overwrite: true,
                                          location: nil, set_identifier: nil, alias_zone: nil, noop: false)
                              
                              
                              Severity: Minor
                              Found in modules/mu/providers/aws/dnszone.rb - 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