gitlabcodequality

package
v0.510.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

README

GitLab Code Quality Output Module

Renders audit results as GitLab Code Quality JSON.

Files

File Responsibility
render.go Converts findings and located parser-error diagnostics into deterministic GitLab Code Quality issues
render_test.go Verifies finding mapping, fingerprints, locations, no-leak behavior, and parser-error issues

Exports

  • Render(report.Result, Options) ([]byte, error)
  • Options — optional source path; defaults to deltascope.sql

Dependencies

  • Upstream: CLI audit format dispatch
  • Downstream: internal/domain/report, internal/domain/rule, internal/domain/spec

Update Rule

  • If members/interfaces/dependencies change, update this file in the same change.

Documentation

Overview

Package gitlabcodequality renders audit results as GitLab Code Quality JSON. input: internal report findings and source-located parser diagnostics from the audit application flow output: GitLab Code Quality finding and parser-error issues for CI pipeline integration pos: infrastructure output adapter for the GitLab Code Quality CI-native renderer note: if this file changes, update this header and module README.md.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(result report.Result, options Options) ([]byte, error)

Render formats an audit result into a GitLab Code Quality JSON array. Unsupported statements are not included; parser-error diagnostics are included.

Types

type Options

type Options struct {
	// Path is the source file path. When empty, the renderer uses "deltascope.sql".
	Path string
}

Options carries renderer configuration.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL