Spaces Data

Minimal test - lines (182, 199)

path: .spaces[1].spaces[10].metrics.loc.cloc
old: 2.0
new: 7.0

path: .spaces[1].spaces[10].metrics.loc.sloc
old: 13.0
new: 18.0

path: .spaces[1].spaces[10].metrics.mi.mi_original
old: 105.14073337546026
new: 99.8688904884193

path: .spaces[1].spaces[10].metrics.mi.mi_sei
old: 104.73552583633963
new: 109.71664607651034

path: .spaces[1].spaces[10].metrics.mi.mi_visual_studio
old: 61.48580899149723
new: 58.40285993474812

Code

    def setup_ignore_vcs(self):
        """Generate ignore instructions for version control systems."""
        # mark this folder to be ignored by VCS, handle https://www.python.org/dev/peps/pep-0610/#registered-vcs
        git_ignore = self.dest / ".gitignore"
        if not git_ignore.exists():
            git_ignore.write_text(
                dedent(
                    """
                    # created by virtualenv automatically
                    *
                    """,
                ).lstrip(),
            )
        # Mercurial - does not support the .hgignore file inside a subdirectory directly, but only if included via the
        # subinclude directive from root, at which point on might as well ignore the directory itself, see
        # https://www.selenic.com/mercurial/hgignore.5.html for more details
        # Bazaar - does not support ignore files in sub-directories, only at root level via .bzrignore
        # Subversion - does not support ignore files, requires direct manipulation with the svn tool