diff --git a/tools/analysis/diagnostic.go b/tools/analysis/diagnostic.go index 2eb21cc85d..8d1bee9ef0 100644 --- a/tools/analysis/diagnostic.go +++ b/tools/analysis/diagnostic.go @@ -33,6 +33,8 @@ type Diagnostic struct { Category string Message string SecondaryMessage string + Code string // Diagnostic code (e.g. "unused-variable") + URL string // URL to documentation SuggestedFixes []SuggestedFix ast.Range }