saltstack/salt

View on GitHub
salt/loader.py

Summary

Maintainability
F
2 wks
Test Coverage

File loader.py has 1602 lines of code (exceeds 250 allowed). Consider refactoring.
Open

# -*- coding: utf-8 -*-
'''
The Salt loader is the core to Salt's plugin system, the loader scans
directories for python loadable code and organizes the code into the
plugin interfaces used by Salt.
Severity: Major
Found in salt/loader.py - About 4 days to fix

    Function grains has a Cognitive Complexity of 102 (exceeds 5 allowed). Consider refactoring.
    Open

    def grains(opts, force_refresh=False, proxy=None):
        '''
        Return the functions for the dynamic grains and the values for the static
        grains.
    
    
    Severity: Minor
    Found in salt/loader.py - About 2 days 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

    Function _load_module has a Cognitive Complexity of 90 (exceeds 5 allowed). Consider refactoring.
    Open

        def _load_module(self, name):
            mod = None
            fpath, suffix = self.file_mapping[name][:2]
            self.loaded_files.add(name)
            fpath_dirname = os.path.dirname(fpath)
    Severity: Minor
    Found in salt/loader.py - About 1 day 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

    Function _refresh_file_mapping has a Cognitive Complexity of 80 (exceeds 5 allowed). Consider refactoring.
    Open

        def _refresh_file_mapping(self):
            '''
            refresh the mapping of the FS on disk
            '''
            # map of suffix to description for imp
    Severity: Minor
    Found in salt/loader.py - About 1 day 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

    Cyclomatic complexity is too high in method _load_module. (52)
    Open

        def _load_module(self, name):
            mod = None
            fpath, suffix = self.file_mapping[name][:2]
            self.loaded_files.add(name)
            fpath_dirname = os.path.dirname(fpath)
    Severity: Minor
    Found in salt/loader.py by radon

    Cyclomatic Complexity

    Cyclomatic Complexity corresponds to the number of decisions a block of code contains plus 1. This number (also called McCabe number) is equal to the number of linearly independent paths through the code. This number can be used as a guide when testing conditional logic in blocks.

    Radon analyzes the AST tree of a Python program to compute Cyclomatic Complexity. Statements have the following effects on Cyclomatic Complexity:

    Construct Effect on CC Reasoning
    if +1 An if statement is a single decision.
    elif +1 The elif statement adds another decision.
    else +0 The else statement does not cause a new decision. The decision is at the if.
    for +1 There is a decision at the start of the loop.
    while +1 There is a decision at the while statement.
    except +1 Each except branch adds a new conditional path of execution.
    finally +0 The finally block is unconditionally executed.
    with +1 The with statement roughly corresponds to a try/except block (see PEP 343 for details).
    assert +1 The assert statement internally roughly equals a conditional statement.
    Comprehension +1 A list/set/dict comprehension of generator expression is equivalent to a for loop.
    Boolean Operator +1 Every boolean operator (and, or) adds a decision point.

    Source: http://radon.readthedocs.org/en/latest/intro.html

    Cyclomatic complexity is too high in function grains. (47)
    Open

    def grains(opts, force_refresh=False, proxy=None):
        '''
        Return the functions for the dynamic grains and the values for the static
        grains.
    
    
    Severity: Minor
    Found in salt/loader.py by radon

    Cyclomatic Complexity

    Cyclomatic Complexity corresponds to the number of decisions a block of code contains plus 1. This number (also called McCabe number) is equal to the number of linearly independent paths through the code. This number can be used as a guide when testing conditional logic in blocks.

    Radon analyzes the AST tree of a Python program to compute Cyclomatic Complexity. Statements have the following effects on Cyclomatic Complexity:

    Construct Effect on CC Reasoning
    if +1 An if statement is a single decision.
    elif +1 The elif statement adds another decision.
    else +0 The else statement does not cause a new decision. The decision is at the if.
    for +1 There is a decision at the start of the loop.
    while +1 There is a decision at the while statement.
    except +1 Each except branch adds a new conditional path of execution.
    finally +0 The finally block is unconditionally executed.
    with +1 The with statement roughly corresponds to a try/except block (see PEP 343 for details).
    assert +1 The assert statement internally roughly equals a conditional statement.
    Comprehension +1 A list/set/dict comprehension of generator expression is equivalent to a for loop.
    Boolean Operator +1 Every boolean operator (and, or) adds a decision point.

    Source: http://radon.readthedocs.org/en/latest/intro.html

    Cyclomatic complexity is too high in method _refresh_file_mapping. (41)
    Open

        def _refresh_file_mapping(self):
            '''
            refresh the mapping of the FS on disk
            '''
            # map of suffix to description for imp
    Severity: Minor
    Found in salt/loader.py by radon

    Cyclomatic Complexity

    Cyclomatic Complexity corresponds to the number of decisions a block of code contains plus 1. This number (also called McCabe number) is equal to the number of linearly independent paths through the code. This number can be used as a guide when testing conditional logic in blocks.

    Radon analyzes the AST tree of a Python program to compute Cyclomatic Complexity. Statements have the following effects on Cyclomatic Complexity:

    Construct Effect on CC Reasoning
    if +1 An if statement is a single decision.
    elif +1 The elif statement adds another decision.
    else +0 The else statement does not cause a new decision. The decision is at the if.
    for +1 There is a decision at the start of the loop.
    while +1 There is a decision at the while statement.
    except +1 Each except branch adds a new conditional path of execution.
    finally +0 The finally block is unconditionally executed.
    with +1 The with statement roughly corresponds to a try/except block (see PEP 343 for details).
    assert +1 The assert statement internally roughly equals a conditional statement.
    Comprehension +1 A list/set/dict comprehension of generator expression is equivalent to a for loop.
    Boolean Operator +1 Every boolean operator (and, or) adds a decision point.

    Source: http://radon.readthedocs.org/en/latest/intro.html

    Function _module_dirs has a Cognitive Complexity of 26 (exceeds 5 allowed). Consider refactoring.
    Open

    def _module_dirs(
            opts,
            ext_type,
            tag=None,
            int_type=None,
    Severity: Minor
    Found in salt/loader.py - About 3 hrs 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

    Function _process_virtual has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring.
    Open

        def _process_virtual(self, mod, module_name, virtual_func='__virtual__'):
            '''
            Given a loaded module and its default name determine its virtual name
    
            This function returns a tuple. The first value will be either True or
    Severity: Minor
    Found in salt/loader.py - About 3 hrs 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

    Function _load has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring.
    Open

        def _load(self, key):
            '''
            Load a single item if you have it
            '''
            # if the key doesn't have a '.' then it isn't valid for this mod dict
    Severity: Minor
    Found in salt/loader.py - About 3 hrs 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

    Function minion_mods has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
    Open

    def minion_mods(
            opts,
            context=None,
            utils=None,
            whitelist=None,
    Severity: Minor
    Found in salt/loader.py - About 2 hrs 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

    Function __getattr__ has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
    Open

        def __getattr__(self, mod_name):
            '''
            Allow for "direct" attribute access-- this allows jinja templates to
            access things like `salt.test.ping()`
            '''
    Severity: Minor
    Found in salt/loader.py - About 1 hr 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

    Function __init__ has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
    Open

        def __init__(self,
                     module_dirs,
                     opts=None,
                     tag='module',
                     loaded_base_name=None,
    Severity: Minor
    Found in salt/loader.py - About 1 hr 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

    Function __init__ has 33 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        def __init__(self,
                     module_dirs,
                     opts=None,
                     tag='module',
                     loaded_base_name=None,
    Severity: Minor
    Found in salt/loader.py - About 1 hr to fix

      Function _inject_into_mod has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
      Open

      def _inject_into_mod(mod, name, value, force_lock=False):
          '''
          Inject a variable into a module. This is used to inject "globals" like
          ``__salt__``, ``__pillar``, or ``grains``.
      
      
      Severity: Minor
      Found in salt/loader.py - About 55 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

      Function __prep_mod_opts has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
      Open

          def __prep_mod_opts(self, opts):
              '''
              Strip out of the opts any logger instance
              '''
              if '__grains__' not in self.pack:
      Severity: Minor
      Found in salt/loader.py - About 55 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

      Avoid deeply nested control flow statements.
      Open

                          if salt.utils.stringutils.expr_match(key, block):
                              del ret[key]
                              log.trace('Filtering %s grain', key)
                  if not ret:
      Severity: Major
      Found in salt/loader.py - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                    if init_file in subfiles:
                                        break
                                else:
        Severity: Major
        Found in salt/loader.py - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                              if salt.utils.stringutils.expr_match(key, block):
                                  del ret[key]
                                  log.trace('Filtering %s grain', key)
                      if not ret:
          Severity: Major
          Found in salt/loader.py - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                        if '' == suffix:
                                            continue  # Next suffix (__init__ must have a suffix)
                                        init_file = '__init__{0}'.format(suffix)
            Severity: Major
            Found in salt/loader.py - About 45 mins to fix

              Function missing_fun_string has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
              Open

                  def missing_fun_string(self, function_name):
                      '''
                      Return the error string for a missing function.
              
                      This can range from "not available' to "__virtual__" returned False
              Severity: Minor
              Found in salt/loader.py - About 45 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

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

                  def _iter_files(self, mod_name):
                      '''
                      Iterate over all file_mapping files in order of closeness to mod_name
                      '''
                      # do we have an exact match?
              Severity: Minor
              Found in salt/loader.py - 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

              Avoid too many return statements within this function.
              Open

                                  return False
              Severity: Major
              Found in salt/loader.py - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                        return None
                Severity: Major
                Found in salt/loader.py - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                          return cached_grains
                  Severity: Major
                  Found in salt/loader.py - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                                        return False
                    Severity: Major
                    Found in salt/loader.py - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                              return True
                      Severity: Major
                      Found in salt/loader.py - About 30 mins to fix

                        Similar blocks of code found in 2 locations. Consider refactoring.
                        Open

                                if '__grains__' not in self.pack:
                                    grains = opts.get('grains', {})
                        
                                    if isinstance(grains, ThreadLocalProxy):
                                        grains = ThreadLocalProxy.unproxy(grains)
                        Severity: Major
                        Found in salt/loader.py and 1 other location - About 4 hrs to fix
                        salt/loader.py on lines 1550..1557

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 83.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 2 locations. Consider refactoring.
                        Open

                                if '__pillar__' not in self.pack:
                                    pillar = opts.get('pillar', {})
                        
                                    if isinstance(pillar, ThreadLocalProxy):
                                        pillar = ThreadLocalProxy.unproxy(pillar)
                        Severity: Major
                        Found in salt/loader.py and 1 other location - About 4 hrs to fix
                        salt/loader.py on lines 1541..1548

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 83.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Identical blocks of code found in 2 locations. Consider refactoring.
                        Open

                                if blist:
                                    for key in list(ret):
                                        for block in blist:
                                            if salt.utils.stringutils.expr_match(key, block):
                                                del ret[key]
                        Severity: Major
                        Found in salt/loader.py and 1 other location - About 3 hrs to fix
                        salt/loader.py on lines 804..810

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 63.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Identical blocks of code found in 2 locations. Consider refactoring.
                        Open

                                if blist:
                                    for key in list(ret):
                                        for block in blist:
                                            if salt.utils.stringutils.expr_match(key, block):
                                                del ret[key]
                        Severity: Major
                        Found in salt/loader.py and 1 other location - About 3 hrs to fix
                        salt/loader.py on lines 847..853

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 63.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Identical blocks of code found in 2 locations. Consider refactoring.
                        Open

                        if sys.version_info[:2] >= (3, 5):
                            import importlib.machinery  # pylint: disable=no-name-in-module,import-error
                            import importlib.util  # pylint: disable=no-name-in-module,import-error
                            USE_IMPORTLIB = True
                        else:
                        Severity: Major
                        Found in salt/loader.py and 1 other location - About 1 hr to fix
                        salt/utils/templates.py on lines 21..27

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 41.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        There are no issues that match your filters.

                        Category
                        Status