Guides

GitlabViolationFormat
in package
implements ViolationFormat

FinalYes

Writes the violations to a code quality report, which GitLab shows in a merge request and on the lines of its diff.

GitLab reads the report from the file declared as "artifacts:reports:codequality" of the CI job.

Tags
link
https://docs.gitlab.com/ci/testing/code_quality/#code-quality-report-format

Table of Contents

Interfaces

ViolationFormat
A format to report the problems found in the documentation source in, in addition to the log.

Constants

DEFAULT_FILE  : mixed = 'gl-code-quality-report.json'

Properties

$details  : AnnotationDetails
$issues  : array<int, array{description: string, check_name: string, fingerprint: string, severity: string, location: array{path: string, lines: array{begin: int}}}>
$settingsManager  : SettingsManager

Methods

__construct()  : mixed
finish()  : void
Called once at the end of the run, to write the collected violations wherever this format needs them, like the output of the command, a file or the API of a code review tool.
report()  : void

Constants

Properties

$issues

private array<int, array{description: string, check_name: string, fingerprint: string, severity: string, location: array{path: string, lines: array{begin: int}}}> $issues = []

Methods

finish()

Called once at the end of the run, to write the collected violations wherever this format needs them, like the output of the command, a file or the API of a code review tool.

public finish(OutputInterface $output) : void
Parameters
$output : OutputInterface
On this page

Search results