saltstack/salt

View on GitHub

Showing 9,400 of 17,590 total issues

Function addClass has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    addClass: function( value ) {
        var classes, elem, cur, clazz, j,
            i = 0,
            len = this.length,
            proceed = typeof value === "string" && value;
Severity: Minor
Found in doc/_themes/saltstack/static/js/vendor/jquery-1.9.1.js - About 1 hr to fix

    Function html has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        html: function( value ) {
            return jQuery.access( this, function( value ) {
                var elem = this[0] || {},
                    i = 0,
                    l = this.length;
    Severity: Minor
    Found in doc/_themes/saltstack/static/js/vendor/jquery-1.9.1.js - About 1 hr to fix

      Function removeClass has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          removeClass: function( value ) {
              var classes, elem, cur, clazz, j,
                  i = 0,
                  len = this.length,
                  proceed = arguments.length === 0 || typeof value === "string" && value;
      Severity: Minor
      Found in doc/_themes/saltstack/static/js/vendor/jquery-1.9.1.js - About 1 hr to fix

        Function certificate_managed has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        def certificate_managed(name,
                                days_remaining=90,
                                managed_private_key=None,
                                append_certs=None,
                                **kwargs):
        Severity: Minor
        Found in salt/states/x509.py - About 1 hr to fix

          Function present has 29 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          def present(name,
                      base_dashboards_from_pillar=None,
                      base_panels_from_pillar=None,
                      base_rows_from_pillar=None,
                      dashboard=None,
          Severity: Minor
          Found in salt/states/grafana_dashboard.py - About 1 hr to fix

            Function sls has 29 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            def sls(mods, saltenv='base', test=None, exclude=None, **kwargs):
                '''
                Create the seed file for a state.sls run
                '''
                st_kwargs = __salt__.kwargs
            Severity: Minor
            Found in salt/client/ssh/wrapper/state.py - About 1 hr to fix

              Function create has 29 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              def create(name,
                         config=None,
                         profile=None,
                         network_profile=None,
                         nic_opts=None,
              Severity: Minor
              Found in salt/modules/lxc.py - About 1 hr to fix

                Function build_rule has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                def build_rule(table=None, chain=None, command=None, position='', full=None, family='ipv4',
                               **kwargs):
                    '''
                    Build a well-formatted nftables rule based on kwargs.
                    A `table` and `chain` are not required, unless `full` is True.
                Severity: Minor
                Found in salt/modules/nftables.py - About 1 hr to fix

                  Function install has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  def install(name=None,
                              fromrepo=None,
                              pkgs=None,
                              sources=None,
                              jail=None,
                  Severity: Minor
                  Found in salt/modules/pkgng.py - About 1 hr to fix

                    Function show_pricing has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    def show_pricing(kwargs=None, call=None):
                        '''
                        Show pricing for a particular profile. This is only an estimate, based on
                        unofficial pricing sources.
                    
                    
                    Severity: Minor
                    Found in salt/cloud/clouds/gce.py - About 1 hr to fix

                      Function create has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      def create(vm_):
                          '''
                          Create a single VM from a data dict
                          '''
                          try:
                      Severity: Minor
                      Found in salt/cloud/clouds/cloudstack.py - About 1 hr to fix

                        Function create has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        def create(vm_):
                            '''
                            Create a VM in Xen
                        
                            The configuration for this function is read from the profile settings.
                        Severity: Minor
                        Found in salt/cloud/clouds/xen.py - About 1 hr to fix

                          Function init has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          def init(names, host=None, saltcloud_mode=False, quiet=False, **kwargs):
                              '''
                              Initialize a new container
                          
                          
                          
                          Severity: Minor
                          Found in salt/runners/lxc.py - About 1 hr to fix

                            Function create_vs has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                def create_vs(self, name, ip, port, protocol, profile, pool_name):
                                    '''
                                    Create a virtual server
                                    '''
                                    vs = self.bigIP.LocalLB.VirtualServer
                            Severity: Minor
                            Found in salt/runners/f5.py - About 1 hr to fix

                              Function ext_pillar has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              def ext_pillar(minion_id,
                                             pillar,  # pylint: disable=W0613
                                             **kwargs):
                                  '''
                                  Check vmware/vcenter for all data
                              Severity: Minor
                              Found in salt/pillar/vmware_pillar.py - About 1 hr to fix

                                Function finish has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    finish: function( type ) {
                                        if ( type !== false ) {
                                            type = type || "fx";
                                        }
                                        return this.each(function() {
                                Severity: Minor
                                Found in doc/_themes/saltstack/static/js/vendor/jquery-1.9.1.js - About 1 hr to fix

                                  Function fix has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      fix: function( event ) {
                                          if ( event[ jQuery.expando ] ) {
                                              return event;
                                          }
                                  
                                  
                                  Severity: Minor
                                  Found in doc/_themes/saltstack/static/js/vendor/jquery-1.9.1.js - About 1 hr to fix

                                    Function installed has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    def installed(
                                            name,
                                            version=None,
                                            refresh=None,
                                            fromrepo=None,
                                    Severity: Minor
                                    Found in salt/states/pkg.py - About 1 hr to fix

                                      Function check_pillar has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      def check_pillar(name,
                                              present=None,
                                              boolean=None,
                                              integer=None,
                                              string=None,
                                      Severity: Minor
                                      Found in salt/states/test.py - About 1 hr to fix

                                        Function _parse_settings_eth has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        def _parse_settings_eth(opts, iface_type, enabled, iface):
                                            '''
                                            Filters given options and outputs valid settings for a
                                            network interface.
                                            '''
                                        Severity: Minor
                                        Found in salt/modules/rh_ip.py - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language