6.1.4.10. Perforce

Integration with Perforce VCS

Support for Perforce VCS.

VCSIntegration Perforce supports line-by-line blame information.

Options

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

binary

binary : str = 'p4'

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.
 

client

client : str | None = None

Client workspace (P4CLIENT).

Automatically detected from workspace when no value is entered.

 

encoding

encoding : str = 'utf-8'

Encoding of files in the repository.
 

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.
 

server

server : str | None = None

Perforce server (P4PORT).

Automatically detected from workspace when no value is entered.

 

skip_blame

skip_blame : bool = False

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

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.