sonntagsgesicht/auxilium

View on GitHub

Showing 105 of 105 total issues

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

def start_demo(demo=DEMO_PATH, verbosity=0, exit_status=0, env=None, **kwargs):
Severity: Minor
Found in auxilium/methods/root.py - About 35 mins to fix

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

    def tag_git(tag, msg='few', level=LEVEL, path=getcwd(), venv=None):
    Severity: Minor
    Found in auxilium/tools/dulwich_tools.py - About 35 mins to fix

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

      def python(command, level=LEVEL, path=getcwd(), venv=None,
      Severity: Minor
      Found in auxilium/tools/system_tools.py - About 35 mins to fix

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

        def coverage_pytest(test_dir=TEST_PATH,
        Severity: Minor
        Found in auxilium/tools/coverage_tools.py - About 35 mins to fix

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

          def script(cmd, imports=(), level=LEVEL, path=getcwd(), venv=None):
          Severity: Minor
          Found in auxilium/tools/system_tools.py - About 35 mins to fix

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

            def coverage_test(test_dir=TEST_PATH,
            Severity: Minor
            Found in auxilium/tools/coverage_tools.py - About 35 mins to fix

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

                  parser.add_argument(
                      '--commit',
                      nargs='?',
                      metavar='MSG',
                      const=config.get('doc', 'commit', fallback='Commit doc build'),
              Severity: Minor
              Found in auxilium/add_arguments/doc.py and 2 other locations - About 35 mins to fix
              auxilium/add_arguments/build.py on lines 32..36
              auxilium/add_arguments/test.py on lines 38..42

              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 33.

              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 os_name == 'nt':
                      return shell("start %s" % index_file,
              Severity: Minor
              Found in auxilium/tools/sphinx_tools.py and 1 other location - About 35 mins to fix
              auxilium/tools/sphinx_tools.py on lines 119..120

              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 33.

              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 3 locations. Consider refactoring.
              Open

                  parser.add_argument(
                      '--commit',
                      nargs='?',
                      metavar='MSG',
                      const=config.get('build', 'commit', fallback='Commit build'),
              Severity: Minor
              Found in auxilium/add_arguments/build.py and 2 other locations - About 35 mins to fix
              auxilium/add_arguments/doc.py on lines 27..31
              auxilium/add_arguments/test.py on lines 38..42

              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 33.

              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

              def _make(builder='html', fail_fast=False, warning_to_exception=True):
                  return " -M " + builder + _cmd(builder, fail_fast, warning_to_exception)
              Severity: Minor
              Found in auxilium/tools/sphinx_tools.py and 1 other location - About 35 mins to fix
              auxilium/tools/sphinx_tools.py on lines 42..43

              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 33.

              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

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

              def del_tree(*paths, level=LEVEL):
                  for f in paths:
                      if exists(f):
                          if isdir(f):
                              log(level, 'remove tree below %s' % f)
              Severity: Minor
              Found in auxilium/tools/system_tools.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

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

                  if os_name == 'posix':
                      return shell("open %s" % index_file, level=level, path=path, venv=venv)
              Severity: Minor
              Found in auxilium/tools/sphinx_tools.py and 1 other location - About 35 mins to fix
              auxilium/tools/sphinx_tools.py on lines 121..122

              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 33.

              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 3 locations. Consider refactoring.
              Open

                  parser.add_argument(
                      '--commit',
                      nargs='?',
                      metavar='MSG',
                      const=config.get('test', 'commit', fallback='Commit tested'),
              Severity: Minor
              Found in auxilium/add_arguments/test.py and 2 other locations - About 35 mins to fix
              auxilium/add_arguments/build.py on lines 32..36
              auxilium/add_arguments/doc.py on lines 27..31

              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 33.

              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

              def _build(builder='html', fail_fast=False, warning_to_exception=True):
                  return " -b " + builder + _cmd(builder, fail_fast, warning_to_exception)
              Severity: Minor
              Found in auxilium/tools/sphinx_tools.py and 1 other location - About 35 mins to fix
              auxilium/tools/sphinx_tools.py on lines 46..47

              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 33.

              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 5 locations. Consider refactoring.
              Open

                  if name:
                      log(INFO, 'Enter project name   : ' + str(name))
                  else:
                      name = input('Enter project name   : ')
              Severity: Major
              Found in auxilium/tools/setup_tools.py and 4 other locations - About 30 mins to fix
              auxilium/tools/setup_tools.py on lines 41..44
              auxilium/tools/setup_tools.py on lines 45..48
              auxilium/tools/setup_tools.py on lines 49..52
              auxilium/tools/setup_tools.py on lines 53..56

              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 32.

              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 5 locations. Consider refactoring.
              Open

                  if slogan:
                      log(INFO, 'Enter project slogan : ' + str(slogan))
                  else:
                      slogan = input('Enter project slogan : ')
              Severity: Major
              Found in auxilium/tools/setup_tools.py and 4 other locations - About 30 mins to fix
              auxilium/tools/setup_tools.py on lines 37..40
              auxilium/tools/setup_tools.py on lines 45..48
              auxilium/tools/setup_tools.py on lines 49..52
              auxilium/tools/setup_tools.py on lines 53..56

              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 32.

              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 5 locations. Consider refactoring.
              Open

                  if url:
                      log(INFO, 'Enter project url    : ' + str(url))
                  else:
                      url = input('Enter project url    : ')
              Severity: Major
              Found in auxilium/tools/setup_tools.py and 4 other locations - About 30 mins to fix
              auxilium/tools/setup_tools.py on lines 37..40
              auxilium/tools/setup_tools.py on lines 41..44
              auxilium/tools/setup_tools.py on lines 45..48
              auxilium/tools/setup_tools.py on lines 49..52

              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 32.

              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 5 locations. Consider refactoring.
              Open

                  if email:
                      log(INFO, 'Enter project email  : ' + str(email))
                  else:
                      email = input('Enter project email  : ')
              Severity: Major
              Found in auxilium/tools/setup_tools.py and 4 other locations - About 30 mins to fix
              auxilium/tools/setup_tools.py on lines 37..40
              auxilium/tools/setup_tools.py on lines 41..44
              auxilium/tools/setup_tools.py on lines 45..48
              auxilium/tools/setup_tools.py on lines 53..56

              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 32.

              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

                  parser.add_argument(
                      '--remote_usr',
                      metavar='USR',
                      default=config.get('build', 'remote_usr', fallback=get_author()),
              Severity: Minor
              Found in auxilium/add_arguments/build.py and 1 other location - About 30 mins to fix
              auxilium/add_arguments/update.py on lines 71..74

              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 32.

              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

                  parser.add_argument(
                      '--remote_usr',
                      metavar='USR',
                      default=config.get('build', 'remote_usr', fallback=get_author()),
              Severity: Minor
              Found in auxilium/add_arguments/update.py and 1 other location - About 30 mins to fix
              auxilium/add_arguments/build.py on lines 54..57

              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 32.

              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

              Severity
              Category
              Status
              Source
              Language