You may stumble upon some unfamiliar terms in Teamscale's documentation. This gloassary lists the common terms using throughout the documentation.
# Analysis Group
An analysis group is an aspect of a quality indicator that exposes options for passing data in order to influence analysis of code in Teamscale. The options may be of metrics or running of custom checks.
# Analysis Profile
An analysis profile comprises a set of analyses and their configurations. For each language, there is a default analysis profile, but Teamscale users can also configure their individual profiles tailored to suit their needs.
# Ant Pattern
A pattern, as used by Ant and other tools, to match one or more paths.
A question mark (
?) matches a single character within a path component but not the path separator.
Likewise, a single asterisk (*) matches zero or more characters within a path component but not the path separator.
In contrast, a double asterisk (
**) matches zero or more characters including the path separator.
Examples if Ant patterns are
# Assessment Metric
An assessment metric is a metric which divides the system into parts belonging to the green assessment, the yellow and the red one. Example: The metric File Size is an assessment metric. Green files are, for example, those with less than 300 SLOC, yellow are those with less then 750 SLOC and the remaining ones are red.
A baseline is a point in time defined by the user. A baseline is often used as reference point to compare the current quality status against, for example in the delta analysis. In Teamscale, a baseline is defined with a calendar date and a corresponding label. It is thereby independent of the underlying branch in case branch support is enabled.
# Branch Support
If enabled, the branch support feature allows Teamscale to not only analyze the »master« or »trunk« of a repository, but also its branches.
# Clone Coverage
The clone coverage indicates the percentage of code lines which are covered by at least one clone. It can be interpreted as the probability that a random (evenly distributed) change to a code line needs to be propagated to at least one other clone instance.
In an architecture specification, a system is modeled as a hierarchy of components. A component has a unique name and may have sub-components and mappings.
# Custom Check
A custom check is an analysis implemented by the user which can be integrated in Teamscale. Teamscale also comes with a large set of pre-written checks.
The delta between two snapshots contains the changes from the repository between a start date and an end date as well as differences in the quality status. It also contains the differences in metric values and assessments as well as the finding churn, for example. Often, the start date is referred to as baseline for the delta.
# Delta Analysis
The delta analysis computes the delta.
A dialog is a UI element of Teamscale’s web interface. It dynamically pop ups if the user executes a certain task and closes when the user is done with the task. The user has to press a button in order to close a dialog.
# External Finding
An external metric is one created by users.
# External Metric
In contrast to metrics created internally by Teamscale, an external metric is a code metric created by users.
# External Upload Commit
These commits are not present in the version control system of the project, but artificially added to Teamscale. They provide data from external analysis tools, such as test coverage tools, for example. Often these commits are created by the nightly build system.
# False Positive Finding
To flag a finding as false positive means that this finding will be put in the false positive findings section and not shown directly anymore. In the Code Detail View or in the IDE integration, it will be not shown at all. It can, however, still be inspected in the False Positive View.
# File Dependency
In a file-based architecture, the path to the source code files are used for dependencies.
A finding refers to a specific region in the code, that is likely to hamper software quality. The region in the code is referred to as finding location. Generally, a finding belongs to one finding group. A finding can occur when a metric and its corresponding threshold are violated, for example, when a file exceeds the size limit of 300 SLOC. Then this overly long file becomes a finding. Alternatively, a finding can directly results from a quality analysis. The code clone detection, for example, reveals clones as findings. These clones do not result from a threshold violation of the corresponding clone coverage metric, but are findings themselves. Each finding has a introduction date in Teamscale.
# Finding Description
A finding description provides information about the nature of the finding and its impact on quality. For external findings, finding descriptions are used to associate findings with their findings group.
# Finding Group
A finding group describes a single analysis or a group of analyses creating findings. For example, there are three different finding groups »File Size«, »Method Length« and »Nesting Depth« which represent one analysis each. The finding group »Comment quality« comprises several analyses, detecting unrelated member comments or empty interface comments, for example. A finding group is always associated with one finding category.
# Finding Category
A finding category combines several finding groups. For example, the finding category »Structure« contains the three groups »File Size«, »Method Length« and »Nesting Depth«. A finding category represents a quality indicator.
# Finding Location
The location can span several files (e.g., a code clone), a single file (e.g., an overly long file), a method (e.g., an unused method) or a single line (e.g., a naming convention violation).
# Findings Count
This metric denotes the number of all findings for a project. Naturally, it depends on which analyses are configured.
# Findings Churn
A finding churn indicates for a given time internal, how many findings were added to or removed from the system.
# Impacted Test
An Impacted Test for a given set of changes is a test that executes some of the changed methods.
# Introduction Date
The introduction date refers to the revision in which a finding was first detected by Teamscale. For internal analysis, this refers to the revision with which the developer introduced the finding in the code base. For external analysis, which are integrated via a nightly build, this refers to the revision with which the finding was first uploaded to Teamscale. Hence, the introduction date then refers to the first detection time, not the actual introduction time.
# Issue Metric
An issue metric is the numeric result of an issue query which can be saved in Teamscale and, thus, be used continuously.
# Java timestamp / Unix Timestamp
The Unix epoch time (time since January 1, 1970 00:00:00.000 GMT) in milliseconds.
# Lines of Code
This metric counts all lines of code of a file as displayed to the developer. The count includes empty lines and comments.
Mappings between code and architecture define which implementation artifacts belong to which component in the architecture definition. If the architecture is based on file dependencies, a mapping specifies which files belong a component. For type dependencies, it specifies which types map to a component.
# Mapping File
Contain mappings from the information in a coverage file to the original source code lines, e.g., line number translation tables or mappings from method IDs to source code lines.
# Method Length
This metric is an assessment metric and denotes the distribution of code in short (green), long (yellow) and very long (red) methods. The length of each method category is configured by a threshold in the analysis profile.
A metric captures an automatically measurable aspect of software quality. In can either be a numeric metric or an assessment metric.
# Nesting Depth
This metric is an assessment metric and denotes the distribution of code over methods with shallow (green), deep (yellow) and very deep (red) nesting. Each nesting category is configured by a threshold in the analysis profile.
# Non-Code Metric
A metric that cannot (directly) be derived from source code, e.g., the build status of your system. Teamscale offers a flexible mechanism to integrate show such custom metrics.
# Numeric Metric
A numeric metric is a metric that consists of a single numeric value. Example: The clone coverage is an example of a numeric metric. Its value could be 20%. Another example is the metric number of files. Its value could be 4000.
If a file or a type are not mapped to any component in an architecture specification, they are marked as orphan.
A page is a UI element of Teamscale’s web interface. If a perspective has a sidebar on the right hand side, then each entry in this sidebar represents a page.
A perspective is the main UI element in Teamscale. Toplevel, Teamscale consists of serveral different perspective which can be navigated in the top header row of the web UI.
A policy in an architecture specification determines which components may be in a relationship (allow, deny, tolerate) with each other.
# Pre-Commit Analysis
Pre-commit analysis allows a Teamscale client like an IDE plug-in to submit source code for analysis to the Teamscale server even though the code hasn’t been committed to a version control system yet. The server then analyzes the code changes on-the-fly and informs the client about any change to the number of findings that would occur were the code changes actually committed.
# Quality Report
A quality report is a document reflecting the overall quality of a project and the trends in project quality since a baseline. A quality report may contain findings from project code, metrics, tasks and other aspects of project quality. A Teamscale-generated quality report is a collection of slides, each reflecting a certain aspect of project quality.
# Quality Indicator
A quality indicator denotes a certain quality aspect. For example, »Structure« or »Code Duplication« represent quality indicators.
# Quality Goal
A quality goal represents the target line for the quality status of a system. It can have one of the following four values: perfect (no findings at all), improving (no new findings and no findings in modified code), preserving (no new findings) or none (any number of findings).
A revision uniquely identifies a commit, i.e., a change to one or more files, in a version control system. As an example, in Git, commits are identified by their SHA-1 Hash. Instead of using the whole hash value, a unique prefix is enough to identify the commit.
A section is a part of a view that is independent of the other content of that view, e.g., one of the main tables of the Metrics perspective.
The severity of a finding is expressed by either a yellow or a red color. It can be configured in the analysis profile and used to filter findings.
# Size Metric
A size metric indicates the size of a system. It can either count the number of files, lines of code, or source lines of code.
A task in Teamscale is a concept to schedule findings for removal and keep track of the process. Multiple findings can be grouped together to one task.
# Test Gap Analysis
The Test Gap Analysis (TGA) can detect holes in the test process by uncovering code that was not tested after its latest modification. The TGA can combine test coverage from different origins (e.g., manual tests and unit tests). The start date after which code modifications are considered is called ”Baseline” and is an important parameter of each TGA inspection.
# Test Impact Analysis
The Test Impact Analysis (TIA) can select and prioritize regression tests given a concrete changeset. The TIA uses testwise coverage for the test selection. Test covering the given changes are called impacted tests.
# Test Gap Ratio
This metric denouts the amount of modified or new methods covered by tests divided by the total amount of modified or new methods.
# Test Gap
A test gap is a method that has been changed but not tested since the change.
# Testwise Coverage
Testwise Coverage is the name of a report format based on JSON. It contains a list of tests contained in the set of all available tests, as well as optional coverage per test and execution results of the test.
A threshold can be used to derive findings from metrics. For example, the metric »File Size« has two thresholds, set to 300 (yellow) and 750 (red) as default. Hence, files which are longer than 300 SLOC, become a yellow finding. Files longer than 750 SLOC become a red finding.
# Threshold Configuration
An threshold configuration comprises a set of thresholds for the analyses.
The timetravel is a feature of Teamscale which makes it possible to show all of Teamscale’s content in a historized form, i.e., to display all information at any point in time of the project’s history.
# Tolerated Finding
To tolerate a finding means that this finding will be put in the tolerated findings section and not shown directly anymore. In the Code Detail View or in the IDE integration, it will be not shown at all. It can, however, still be inspected in the Tolerated Findings View.
Treemaps visualize individual metrics in relation to the source code structure and file sizes. Therefore, directories or source code files of the analyzed system are drawn as rectangles. The area of the rectangle corresponds to the number of lines contained in the file (or for directories all the files included in the directory). The position of the rectangle follows the directory structure, i. e. rectangles for files in the same directory are drawn next to each other. The shading of the rectangles indicates the hierarchical nesting of the files and directories.
A trend indicates the evolution of a metric over time. A trend can be calculated both for a numeric metric as well as for an assessment metric. In this first case, the trend is just a simple function in the mathematical sense. In the second case, the trend chart indicates three values per time: the green, the yellow, and the red value and shows how the system distribution over these three categories evolves. If branch support is disabled, the history of the system and, hence, a metric trend, is linear by default. If branch support is enabled, however, the history of a branch is not necessarily linear. To display a linear trend, the »first-parent« strategy is used to pick one parent for each commit.
# Type Dependency
In a type-based architecture, the full-qualified names of all types (classes, structs, enums etc.) in the codebase are used for dependencies.
A view is a UI element of Teamscale’s web interface. In contrast to pages, it cannot be references by the sidebar but appears and disappears as the user navigates and performs certain tasks.
If a dependency contradicts a modeled policy, it will be treated as an architecture violation.