6.1.4.16. TFS

Integration with Microsoft Team Foundation Server (TFS)

Support for Microsoft Team Foundation Server (TFS).

VCSIntegration TFS supports line-by-line blame information if TFS Power Tools are installed and configured accordingly (tfpt_binary and tfpt_options), otherwise only file blame information is supported.

Options

The following places define options that affect this rule: VCSIntegration, Project-GlobalOptions

binary

binary : str = 'tf'

Name of the VCS command-line binary.
 

blame_mode

blame_mode : BlameMode = 'all_authors'

If set to last_author_only, issues for code regions are only attributed to the author of the latest changes in that region. Otherwise, all authors of that code region are considered responsible.
 

collectionurl

collectionurl : str | None = None

URL of the collection as specified with -collection:... (i.e. http://host:port/tfs/collection). Overrides setting of servername.
 

encoding

encoding : str = 'utf-8'

Encoding of files in the repository.
 

getall

getall : bool = False

If true, all files are get each time, otherwise just the changed files are get.
 

options

options : str | None = None

Additional command-line parameters
 

rootpath

rootpath : bauhaus.analysis.config.ProjectRelativePath = '.'

Repository root for this VCS instance. If more than one VCS rule is activated, all their rootpath options have to be set differently. The value of rootpath must not be outside of /Project/directory for source code to be visible in the dashboard and for local_mode to work correctly.
 

serverfolder

serverfolder : str = 'None (value must be set)'

Server folder, i.e. project path on server (absolute, starting with $/).
 

servername

servername : str | None = None

Name of the server as specified with -server:... (may contain a port and the name of the collection separated with a slash from the server name as well, i.e. host:port/collection). Setting collectionurl as well ignores servername.
 

skip_blame

skip_blame : bool = False

Does not run blame operations with this VCS if this option is set to true.
 

tfpt_binary

tfpt_binary : str | None = None

Name of the optional tfpt binary. If specified, annotate information can be queried during a continuous integration run and be used on line-by-line granularity and not just per-file (only relevant for CI, not for dashboard).
 

tfpt_options

tfpt_options : str | None = None

Additional command-line parameters for tfpt (if configured).
 

Option Types

These types are used by options listed above:

BlameMode

Enumeration of possible blame approaches for code regions.
 

all_authors

All authors of a code region are considered responsible.

last_author_only

Attribute issues only to the author of the latest change in the code region.