{"modulePath":"github.com/abd-ulbasit/upgradescope","version":"v0.3.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package codequalitytest\n\nPackage codequalitytest checks GitLab Code Quality reports against what GitLab accepts, for every package that emits one (the CLI's --output gitlab-codequality and the server's /api/v1/gate?format=gitlab-codequality).\n\n## Types\n\n```go\ntype Entry struct {\n\tDescription string `json:\"description\"`\n\tCheckName   string `json:\"check_name\"`\n\tFingerprint string `json:\"fingerprint\"`\n\tSeverity    string `json:\"severity\"`\n\tLocation    struct {\n\t\tPath  string `json:\"path\"`\n\t\tLines struct {\n\t\t\tBegin int `json:\"begin\"`\n\t\t} `json:\"lines\"`\n\t} `json:\"location\"`\n}\n```\nEntry is one report entry as GitLab documents it, decoded independently of the writer's model so a field the writer drops is caught.\n\n```go\nfunc AssertGitLabAcceptable(t *testing.T, raw []byte) []Entry\n```\nAssertGitLabAcceptable fails t unless raw is a report GitLab reads in full: a JSON array whose every entry validates against GitLab's schema (its parser stops at the first entry that does not) and meets the documented requirements the schema leaves out — a check\\_name, a severity GitLab knows, a repository-relative path without \"./\", a line — with no fingerprint repeated (GitLab keys entries by it, so a repeat replaces an entry). It returns the decoded entries.\n\n","path":"github.com/abd-ulbasit/upgradescope/internal/codequality/codequalitytest","name":"codequalitytest","synopsis":"Package codequalitytest checks GitLab Code Quality reports against what GitLab accepts, for every package that emits one (the CLI's --output gitlab-codequality and the server's /api/v1/gate?format=gitlab-codequality).","isRedistributable":true}
