Shadow¶
Shadow repository for otherwise untracked files
This VCS integration can be used to track files that are generated during the build and not otherwise present in the other configured VCS. This is required to see source code in the dashboard and be able to track issues when they are moving inside the generated files.
Internally, this VCS is implemented using Fossil.
Options¶
The following places define options that affect this rule: VCSIntegration, Project-GlobalOptions
binary¶
binary : str | None = None
PATH or otherwise you have to specify an
appropriate absolute path here which works for both, CI and Dashboard.
blame_mode¶
blame_mode : BlameMode = 'all_authors'
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.
encoding¶
encoding : str = 'utf-8'
exclude_globbings¶
exclude_globbings : set[bauhaus.analysis.config.FileGlobPattern] = set()
file_owner¶
file_owner : str = '__none__'
file_owner_callback¶
file_owner_callback : bauhaus.analysis.config.LayerRelativePath | None = None
include_globbings¶
include_globbings
Globbing patterns of files to include in the shadow repository.Type: set[bauhaus.analysis.config.FileGlobPattern]
Default:
{'*.[ch]', '*.[ch]++', '*.[ch]pp', '*.[ch]xx', '*.cc', '*.cs', '*.cu', '*.cuh', '*.hh', '*.qml'}
rootpath¶
rootpath : bauhaus.analysis.config.ProjectRelativePath = '.'
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.
shadow_directory¶
shadow_directory : bauhaus.analysis.config.ProjectRelativePath | None = None
Directory to keep master shadow repository.
If /Results/Dashboard/database_mode
is set to managed_upload, this will only be used for migration
purposes and the master shadow repository will reside on the dashboard server.
If you set up a new project with
database_mode set to
managed_upload mode and a ShadowVCS, you can leave this option unset.
skip_blame¶
skip_blame : bool = False
sourceserver_remote_url¶
sourceserver_remote_url : str | None = None
sourceserver_repository¶
sourceserver_repository : str | None = None
Shadow repository clone (shadow.fossil file), accessible from the dashboard sourcecode server.
Any relative path (which is recommended) will be interpreted relative to the
dashboard's configuration subfolder repositories.
Any absolute path will stay absolute unless you set
ForceRelativeRepositoryPath to true inside
dashboard2.config in which case absolute paths are also forced to
be interpreted relative to the dashboard's configuration subfolder
repositories.
If analysis and dashboard are running on the same machine, you can choose a path beneath your dashboard configuration folder as shadow_directory and leave this option empty.
This option is unnecessary if
/Results/Dashboard/database_mode is
set to managed_upload.
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.