saltstack/salt

View on GitHub

Showing 9,400 of 17,590 total issues

File versions.py has 288 lines of code (exceeds 250 allowed). Consider refactoring.
Open

# -*- coding: utf-8 -*-
'''
    :copyright: Copyright 2017 by the SaltStack Team, see AUTHORS for more details.
    :license: Apache 2.0, see LICENSE for more details.

Severity: Minor
Found in salt/utils/versions.py - About 2 hrs to fix

    File __init__.py has 288 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    # -*- coding: utf-8 -*-
    '''
    Loader mechanism for caching data, with data expiration, etc.
    
    .. versionadded:: 2016.11.0
    Severity: Minor
    Found in salt/cache/__init__.py - About 2 hrs to fix

      File win_event_viewer.py has 287 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      # -*- coding: utf-8 -*-
      '''
      Gives SaltStack access to Windows event log
      Charles McMarrow <cmcmarrow@saltstack.com>
      '''
      Severity: Minor
      Found in salt/modules/win_event_viewer.py - About 2 hrs to fix

        File boto_cloudwatch_event.py has 286 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        # -*- coding: utf-8 -*-
        '''
        Manage CloudTrail Objects
        =========================
        
        
        Severity: Minor
        Found in salt/states/boto_cloudwatch_event.py - About 2 hrs to fix

          File zookeeper.py has 286 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          # -*- coding: utf-8 -*-
          '''
          :depends:  kazoo
          :configuration: See :py:mod:`salt.modules.zookeeper` for setup instructions.
          
          
          Severity: Minor
          Found in salt/states/zookeeper.py - About 2 hrs to fix

            File dictupdate.py has 286 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            # -*- coding: utf-8 -*-
            '''
            Alex Martelli's soulution for recursive dict update from
            http://stackoverflow.com/a/3233356
            '''
            Severity: Minor
            Found in salt/utils/dictupdate.py - About 2 hrs to fix

              File cloud.py has 286 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              # -*- coding: utf-8 -*-
              '''
              Salt-specific interface for calling Salt Cloud directly
              '''
              
              
              Severity: Minor
              Found in salt/modules/cloud.py - About 2 hrs to fix

                File gpg.py has 286 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                # -*- coding: utf-8 -*-
                r'''
                Renderer that will decrypt GPG ciphers
                
                Any key in the SLS file can be a GPG cipher, and this renderer will decrypt it
                Severity: Minor
                Found in salt/renderers/gpg.py - About 2 hrs to fix

                  Function matcherFromGroupMatchers has 71 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
                      // A counter to specify which element is currently being matched
                      var matcherCachedRuns = 0,
                          bySet = setMatchers.length > 0,
                          byElement = elementMatchers.length > 0,
                  Severity: Major
                  Found in doc/_themes/saltstack/static/js/vendor/jquery-1.9.1.js - About 2 hrs to fix

                    File boto_lc.py has 285 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    # -*- coding: utf-8 -*-
                    '''
                    Manage Launch Configurations
                    
                    .. versionadded:: 2014.7.0
                    Severity: Minor
                    Found in salt/states/boto_lc.py - About 2 hrs to fix

                      File win_network.py has 285 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      # -*- coding: utf-8 -*-
                      '''
                      This salt util uses WMI to gather network information on Windows 7 and .NET 4.0+
                      on newer systems.
                      
                      
                      Severity: Minor
                      Found in salt/utils/win_network.py - About 2 hrs to fix

                        File napalm_beacon.py has 285 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        # -*- coding: utf-8 -*-
                        '''
                        Watch NAPALM functions and fire events on specific triggers
                        ===========================================================
                        
                        
                        Severity: Minor
                        Found in salt/beacons/napalm_beacon.py - About 2 hrs to fix

                          Key has 25 functions (exceeds 20 allowed). Consider refactoring.
                          Open

                          class Key(object):
                              '''
                              The object that encapsulates saltkey actions
                              '''
                              ACC = 'minions'
                          Severity: Minor
                          Found in salt/key.py - About 2 hrs to fix

                            File npm.py has 284 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            # -*- coding: utf-8 -*-
                            '''
                            Installation of NPM Packages
                            ============================
                            
                            
                            Severity: Minor
                            Found in salt/states/npm.py - About 2 hrs to fix

                              File localemod.py has 284 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              # -*- coding: utf-8 -*-
                              '''
                              Module for managing locales on POSIX-like systems.
                              '''
                              from __future__ import absolute_import, print_function, unicode_literals
                              Severity: Minor
                              Found in salt/modules/localemod.py - About 2 hrs to fix

                                File jboss7_cli.py has 284 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                # -*- coding: utf-8 -*-
                                '''
                                Module for low-level interaction with JbossAS7 through CLI.
                                
                                This module exposes two ways of interaction with the CLI, either through commands or operations.
                                Severity: Minor
                                Found in salt/modules/jboss7_cli.py - About 2 hrs to fix

                                  Function domManip has 70 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      domManip: function( args, table, callback ) {
                                  
                                          // Flatten any nested arrays
                                          args = core_concat.apply( [], args );
                                  
                                  
                                  Severity: Major
                                  Found in doc/_themes/saltstack/static/js/vendor/jquery-1.9.1.js - About 2 hrs to fix

                                    Function add has 70 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        add: function( elem, types, handler, data, selector ) {
                                            var tmp, events, t, handleObjIn,
                                                special, eventHandle, handleObj,
                                                handlers, type, namespaces, origType,
                                                elemData = jQuery._data( elem );
                                    Severity: Major
                                    Found in doc/_themes/saltstack/static/js/vendor/jquery-1.9.1.js - About 2 hrs to fix

                                      File libcloud_dns.py has 283 lines of code (exceeds 250 allowed). Consider refactoring.
                                      Open

                                      # -*- coding: utf-8 -*-
                                      '''
                                      Apache Libcloud DNS Management
                                      ==============================
                                      
                                      
                                      Severity: Minor
                                      Found in salt/modules/libcloud_dns.py - About 2 hrs to fix

                                        File netsnmp.py has 282 lines of code (exceeds 250 allowed). Consider refactoring.
                                        Open

                                        # -*- coding: utf-8 -*-
                                        '''
                                        Network SNMP
                                        ============
                                        
                                        
                                        Severity: Minor
                                        Found in salt/states/netsnmp.py - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language