enclose-io/compiler

View on GitHub
lts/deps/v8/tools/release/test_scripts.py

Summary

Maintainability
F
1 mo
Test Coverage

File test_scripts.py has 1097 lines of code (exceeds 250 allowed). Consider refactoring.
Open

#!/usr/bin/env python
# Copyright 2013 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
Severity: Major
Found in lts/deps/v8/tools/release/test_scripts.py - About 2 days to fix

    ScriptTest has 44 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class ScriptTest(unittest.TestCase):
      def MakeEmptyTempFile(self):
        handle, name = tempfile.mkstemp()
        os.close(handle)
        self._tmp_files.append(name)
    Severity: Minor
    Found in lts/deps/v8/tools/release/test_scripts.py - About 6 hrs to fix

      Function Call has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
      Open

        def Call(self, name, *args, **kwargs):  # pragma: no cover
          self._index += 1
          try:
            expected_call = self._recipe[self._index]
          except IndexError:
      Severity: Minor
      Found in lts/deps/v8/tools/release/test_scripts.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 _PushToCandidates has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        def _PushToCandidates(self, force=False, manual=False):
          TextToFile("", os.path.join(TEST_CONFIG["DEFAULT_CWD"], ".git"))
      
          # The version file on master has build level 5, while the version
          # file from candidates has build level 4.
      Severity: Minor
      Found in lts/deps/v8/tools/release/test_scripts.py - About 1 hr to fix

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

          def _PushToCandidates(self, force=False, manual=False):
            TextToFile("", os.path.join(TEST_CONFIG["DEFAULT_CWD"], ".git"))
        
            # The version file on master has build level 5, while the version
            # file from candidates has build level 4.
        Severity: Minor
        Found in lts/deps/v8/tools/release/test_scripts.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 Command has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

          def Command(self, cmd, args="", prefix="", pipe=True, cwd=None):
        Severity: Minor
        Found in lts/deps/v8/tools/release/test_scripts.py - About 35 mins to fix

          Function tearDown has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
          Open

            def tearDown(self):
              if os.path.exists(TEST_CONFIG["PERSISTFILE_BASENAME"]):
                shutil.rmtree(TEST_CONFIG["PERSISTFILE_BASENAME"])
          
              # Clean up temps. Doesn't work automatically.
          Severity: Minor
          Found in lts/deps/v8/tools/release/test_scripts.py - 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

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

            def testRollMerge(self):
              TEST_CONFIG["ALREADY_MERGING_SENTINEL_FILE"] = self.MakeEmptyTempFile()
              TextToFile("", os.path.join(TEST_CONFIG["DEFAULT_CWD"], ".git"))
              self.WriteFakeVersionFile(build=5)
              os.environ["EDITOR"] = "vi"
          Severity: Major
          Found in lts/deps/v8/tools/release/test_scripts.py and 1 other location - About 1 wk to fix
          current/deps/v8/tools/release/test_scripts.py on lines 675..809

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

          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 testMergeToBranch(self):
              TEST_CONFIG["ALREADY_MERGING_SENTINEL_FILE"] = self.MakeEmptyTempFile()
              TextToFile("", os.path.join(TEST_CONFIG["DEFAULT_CWD"], ".git"))
              self.WriteFakeVersionFile(build=5)
              os.environ["EDITOR"] = "vi"
          Severity: Major
          Found in lts/deps/v8/tools/release/test_scripts.py and 1 other location - About 6 days to fix
          current/deps/v8/tools/release/test_scripts.py on lines 811..933

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

          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

          class SimpleMock(object):
            def __init__(self):
              self._recipe = []
              self._index = -1
          
          
          Severity: Major
          Found in lts/deps/v8/tools/release/test_scripts.py and 1 other location - About 4 days to fix
          current/deps/v8/tools/release/test_scripts.py on lines 130..192

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

          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 testChromiumRoll(self):
              # Setup fake directory structures.
              TEST_CONFIG["CHROMIUM"] = self.MakeEmptyTempDirectory()
              json_output_file = os.path.join(TEST_CONFIG["CHROMIUM"], "out.json")
              TextToFile(self.FAKE_DEPS, os.path.join(TEST_CONFIG["CHROMIUM"], "DEPS"))
          Severity: Major
          Found in lts/deps/v8/tools/release/test_scripts.py and 1 other location - About 4 days to fix
          current/deps/v8/tools/release/test_scripts.py on lines 584..639

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

          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

            def testChromiumRollUpToDate(self):
              TEST_CONFIG["CHROMIUM"] = self.MakeEmptyTempDirectory()
              json_output_file = os.path.join(TEST_CONFIG["CHROMIUM"], "out.json")
              TextToFile(self.FAKE_DEPS, os.path.join(TEST_CONFIG["CHROMIUM"], "DEPS"))
              self.Expect([
          Severity: Major
          Found in lts/deps/v8/tools/release/test_scripts.py and 1 other location - About 1 day to fix
          current/deps/v8/tools/release/test_scripts.py on lines 557..581

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

          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

            def WriteFakeVersionFile(self, major=3, minor=22, build=4, patch=0):
              version_file = os.path.join(TEST_CONFIG["DEFAULT_CWD"], VERSION_FILE)
              if not os.path.exists(os.path.dirname(version_file)):
                os.makedirs(os.path.dirname(version_file))
              with open(version_file, "w") as f:
          Severity: Major
          Found in lts/deps/v8/tools/release/test_scripts.py and 1 other location - About 1 day to fix
          current/deps/v8/tools/release/test_scripts.py on lines 208..220

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

          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

              def CheckVersionCommit():
                commit = FileToText(TEST_CONFIG["COMMITMSG_FILE"])
                self.assertEquals(commit_msg, commit)
                version = FileToText(
                    os.path.join(TEST_CONFIG["DEFAULT_CWD"], VERSION_FILE))
          Severity: Major
          Found in lts/deps/v8/tools/release/test_scripts.py and 1 other location - About 1 day to fix
          lts/deps/v8/tools/release/test_scripts.py on lines 885..912

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

          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

              def CheckVersionCommit():
                commit = FileToText(TEST_CONFIG["COMMITMSG_FILE"])
                self.assertEquals(commit_msg, commit)
                version = FileToText(
                    os.path.join(TEST_CONFIG["DEFAULT_CWD"], VERSION_FILE))
          Severity: Major
          Found in lts/deps/v8/tools/release/test_scripts.py and 1 other location - About 1 day to fix
          lts/deps/v8/tools/release/test_scripts.py on lines 741..768

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

          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 testIncrementVersion(self):
              self.Expect([
                Cmd("git fetch origin +refs/tags/*:refs/tags/*", ""),
                Cmd("git tag", self.TAGS),
                Cmd("git checkout -f origin/master -- include/v8-version.h",
          Severity: Major
          Found in lts/deps/v8/tools/release/test_scripts.py and 1 other location - About 1 day to fix
          current/deps/v8/tools/release/test_scripts.py on lines 400..413

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

          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

            def testAutoPush(self):
              self.Expect([
                Cmd("git fetch", ""),
                Cmd("git fetch origin +refs/heads/lkgr:refs/heads/lkgr", ""),
                Cmd("git show-ref -s refs/heads/lkgr", "abc123\n"),
          Severity: Major
          Found in lts/deps/v8/tools/release/test_scripts.py and 1 other location - About 1 day to fix
          current/deps/v8/tools/release/test_scripts.py on lines 655..673

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

          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 testTagTimeout(self):
              self.Expect([
                Cmd("git fetch", ""),
                Cmd("git log -1 --format=%H --grep=\"Title\" origin/candidates", ""),
                Cmd("git fetch", ""),
          Severity: Major
          Found in lts/deps/v8/tools/release/test_scripts.py and 1 other location - About 7 hrs to fix
          current/deps/v8/tools/release/test_scripts.py on lines 343..358

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

          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

            def testRegex(self):
              self.assertEqual("(issue 321)",
                               re.sub(r"BUG=v8:(.*)$", r"(issue \1)", "BUG=v8:321"))
              self.assertEqual("(Chromium issue 321)",
                               re.sub(r"BUG=(.*)$", r"(Chromium issue \1)", "BUG=321"))
          Severity: Major
          Found in lts/deps/v8/tools/release/test_scripts.py and 1 other location - About 7 hrs to fix
          current/deps/v8/tools/release/test_scripts.py on lines 369..388

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

          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

            def testCommonPrepareDeleteBranchFailure(self):
              self.Expect([
                Cmd("git status -s -uno", ""),
                Cmd("git checkout -f origin/master", ""),
                Cmd("git fetch", ""),
          Severity: Major
          Found in lts/deps/v8/tools/release/test_scripts.py and 1 other location - About 6 hrs to fix
          current/deps/v8/tools/release/test_scripts.py on lines 323..333

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

          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

            def tearDown(self):
              if os.path.exists(TEST_CONFIG["PERSISTFILE_BASENAME"]):
                shutil.rmtree(TEST_CONFIG["PERSISTFILE_BASENAME"])
          
              # Clean up temps. Doesn't work automatically.
          Severity: Major
          Found in lts/deps/v8/tools/release/test_scripts.py and 1 other location - About 6 hrs to fix
          current/deps/v8/tools/release/test_scripts.py on lines 281..292

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

          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

            def testCommonPrepareDefault(self):
              self.Expect([
                Cmd("git status -s -uno", ""),
                Cmd("git checkout -f origin/master", ""),
                Cmd("git fetch", ""),
          Severity: Major
          Found in lts/deps/v8/tools/release/test_scripts.py and 1 other location - About 5 hrs to fix
          current/deps/v8/tools/release/test_scripts.py on lines 300..310

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

          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

            def testReadAndPersistVersion(self):
              self.WriteFakeVersionFile(build=5)
              step = self.MakeStep()
              step.ReadAndPersistVersion()
              self.assertEquals("3", step["major"])
          Severity: Major
          Found in lts/deps/v8/tools/release/test_scripts.py and 1 other location - About 5 hrs to fix
          current/deps/v8/tools/release/test_scripts.py on lines 360..367

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

          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

            def WriteFakeWatchlistsFile(self):
              watchlists_file = os.path.join(TEST_CONFIG["DEFAULT_CWD"], WATCHLISTS_FILE)
              if not os.path.exists(os.path.dirname(watchlists_file)):
                os.makedirs(os.path.dirname(watchlists_file))
              with open(watchlists_file, "w") as f:
          Severity: Major
          Found in lts/deps/v8/tools/release/test_scripts.py and 1 other location - About 5 hrs to fix
          current/deps/v8/tools/release/test_scripts.py on lines 222..234

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

          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

            def testCommonPrepareNoConfirm(self):
              self.Expect([
                Cmd("git status -s -uno", ""),
                Cmd("git checkout -f origin/master", ""),
                Cmd("git fetch", ""),
          Severity: Major
          Found in lts/deps/v8/tools/release/test_scripts.py and 1 other location - About 4 hrs to fix
          current/deps/v8/tools/release/test_scripts.py on lines 312..321

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

          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

            def testBootstrapper(self):
              work_dir = self.MakeEmptyTempDirectory()
              class FakeScript(ScriptsBase):
                def _Steps(self):
                  return []
          Severity: Major
          Found in lts/deps/v8/tools/release/test_scripts.py and 1 other location - About 4 hrs to fix
          current/deps/v8/tools/release/test_scripts.py on lines 415..428

          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

            def testCheckLastPushRecently(self):
              self.Expect([
                Cmd("git fetch origin +refs/tags/*:refs/tags/*", ""),
                Cmd("git tag", self.TAGS),
                Cmd("git log -1 --format=%H 3.22.4", "release_hash\n"),
          Severity: Major
          Found in lts/deps/v8/tools/release/test_scripts.py and 1 other location - About 4 hrs to fix
          current/deps/v8/tools/release/test_scripts.py on lines 641..653

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

          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

            def testInitialEnvironmentChecks(self):
              TextToFile("", os.path.join(TEST_CONFIG["DEFAULT_CWD"], ".git"))
              os.environ["EDITOR"] = "vi"
              self.Expect([
                Cmd("which vi", "/usr/bin/vi"),
          Severity: Major
          Found in lts/deps/v8/tools/release/test_scripts.py and 1 other location - About 4 hrs to fix
          current/deps/v8/tools/release/test_scripts.py on lines 335..341

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

          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

            def Command(self, cmd, args="", prefix="", pipe=True, cwd=None):
              print("%s %s" % (cmd, args))
              print("in %s" % cwd)
              return self._mock.Call("command", cmd + " " + args, cwd=cwd)
          Severity: Major
          Found in lts/deps/v8/tools/release/test_scripts.py and 1 other location - About 3 hrs to fix
          current/deps/v8/tools/release/test_scripts.py on lines 251..254

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

          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

            def testGitMock(self):
              self.Expect([Cmd("git --version", "git version 1.2.3"),
                           Cmd("git dummy", "")])
              self.assertEquals("git version 1.2.3", self.MakeStep().Git("--version"))
              self.assertEquals("", self.MakeStep().Git("dummy"))
          Severity: Major
          Found in lts/deps/v8/tools/release/test_scripts.py and 1 other location - About 3 hrs to fix
          current/deps/v8/tools/release/test_scripts.py on lines 294..298

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

          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

            def MakeStep(self):
              """Convenience wrapper."""
              options = ScriptsBase(TEST_CONFIG, self, self._state).MakeOptions([])
              return MakeStep(step_class=Step, state=self._state,
          Severity: Major
          Found in lts/deps/v8/tools/release/test_scripts.py and 1 other location - About 2 hrs to fix
          current/deps/v8/tools/release/test_scripts.py on lines 236..239

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

          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

            def testSaniniziteVersionTags(self):
              self.assertEquals("4.8.230", SanitizeVersionTag("4.8.230"))
              self.assertEquals("4.8.230", SanitizeVersionTag("tags/4.8.230"))
              self.assertEquals(None, SanitizeVersionTag("candidate"))
          Severity: Major
          Found in lts/deps/v8/tools/release/test_scripts.py and 1 other location - About 1 hr to fix
          current/deps/v8/tools/release/test_scripts.py on lines 72..75

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

          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

          def Cmd(*args, **kwargs):
            """Convenience function returning a shell command test expectation."""
            return {
              "name": "command",
              "args": args,
          Severity: Major
          Found in lts/deps/v8/tools/release/test_scripts.py and 1 other location - About 1 hr to fix
          current/deps/v8/tools/release/test_scripts.py on lines 97..104

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

          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

            def testNormalizeVersionTags(self):
              input = ["4.8.230",
                        "tags/4.8.230",
                        "tags/4.8.224.1",
                        "4.8.224.1",
          Severity: Major
          Found in lts/deps/v8/tools/release/test_scripts.py and 1 other location - About 1 hr to fix
          current/deps/v8/tools/release/test_scripts.py on lines 77..94

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

          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

            def ReadURL(self, url, params):
              if params is not None:
                return self._mock.Call("readurl", url, params)
              else:
                return self._mock.Call("readurl", url)
          Severity: Major
          Found in lts/deps/v8/tools/release/test_scripts.py and 1 other location - About 1 hr to fix
          current/deps/v8/tools/release/test_scripts.py on lines 259..263

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

          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

            def setUp(self):
              self._mock = SimpleMock()
              self._tmp_files = []
              self._state = {}
              TEST_CONFIG["DEFAULT_CWD"] = self.MakeEmptyTempDirectory()
          Severity: Major
          Found in lts/deps/v8/tools/release/test_scripts.py and 1 other location - About 1 hr to fix
          current/deps/v8/tools/release/test_scripts.py on lines 275..279

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

          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

            def MakeEmptyTempFile(self):
              handle, name = tempfile.mkstemp()
              os.close(handle)
              self._tmp_files.append(name)
              return name
          Severity: Major
          Found in lts/deps/v8/tools/release/test_scripts.py and 1 other location - About 1 hr to fix
          current/deps/v8/tools/release/test_scripts.py on lines 196..200

          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

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

          def URL(*args, **kwargs):
            """Convenience function returning a readurl test expectation."""
            return {
              "name": "readurl",
              "args": args[:-1],
          Severity: Major
          Found in lts/deps/v8/tools/release/test_scripts.py and 1 other location - About 1 hr to fix
          current/deps/v8/tools/release/test_scripts.py on lines 119..126

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

          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

            def Call(self, fun, *args, **kwargs):
              print("Calling %s with %s and %s" % (str(fun), str(args), str(kwargs)))
          Severity: Minor
          Found in lts/deps/v8/tools/release/test_scripts.py and 1 other location - About 50 mins to fix
          current/deps/v8/tools/release/test_scripts.py on lines 248..249

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

          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

            def testMakeComment(self):
              self.assertEquals("#   Line 1\n#   Line 2\n#",
                                MakeComment("    Line 1\n    Line 2\n"))
              self.assertEquals("#Line 1\n#Line 2",
                                MakeComment("Line 1\n Line 2"))
          Severity: Major
          Found in lts/deps/v8/tools/release/test_scripts.py and 2 other locations - About 40 mins to fix
          lts/deps/v8/tools/release/test_scripts.py on lines 107..111
          lts/deps/v8/tools/release/test_scripts.py on lines 167..171

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

          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

            def testStripComments(self):
              self.assertEquals("    Line 1\n    Line 3\n",
                  StripComments("    Line 1\n#   Line 2\n    Line 3\n#\n"))
              self.assertEquals("\nLine 2 ### Test\n #",
                  StripComments("###\n# \n\n#  Line 1\nLine 2 ### Test\n #"))
          Severity: Major
          Found in lts/deps/v8/tools/release/test_scripts.py and 2 other locations - About 40 mins to fix
          lts/deps/v8/tools/release/test_scripts.py on lines 101..105
          lts/deps/v8/tools/release/test_scripts.py on lines 167..171

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

          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

            def testMakeChangeLogBugReferenceSimple(self):
              self.assertEquals("(issue 987654)",
                                MakeChangeLogBugReference("BUG = v8:987654"))
              self.assertEquals("(Chromium issue 987654)",
                                MakeChangeLogBugReference("BUG=987654 "))
          Severity: Major
          Found in lts/deps/v8/tools/release/test_scripts.py and 2 other locations - About 40 mins to fix
          lts/deps/v8/tools/release/test_scripts.py on lines 101..105
          lts/deps/v8/tools/release/test_scripts.py on lines 107..111

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

          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