Skip to content

Commit 2c5239f

Browse files
committed
Use full stops at the end of diagnostics messages
1 parent a7a10de commit 2c5239f

File tree

6 files changed

+106
-106
lines changed

6 files changed

+106
-106
lines changed

go/extractor/diagnostics/diagnostics.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ func emitDiagnostic(sourceid, sourcename, markdownMessage string, severity diagn
117117
func EmitPackageDifferentOSArchitecture(pkgPath string) {
118118
emitDiagnostic("go/autobuilder/package-different-os-architecture",
119119
"Package "+pkgPath+" is intended for a different OS or architecture",
120-
"Make sure the `GOOS` and `GOARCH` [environment variables are correctly set](https://docs.github.com/en/actions/learn-github-actions/variables#defining-environment-variables-for-a-single-workflow). Alternatively, [change your OS and architecture](https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#using-a-github-hosted-runner)",
120+
"Make sure the `GOOS` and `GOARCH` [environment variables are correctly set](https://docs.github.com/en/actions/learn-github-actions/variables#defining-environment-variables-for-a-single-workflow). Alternatively, [change your OS and architecture](https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#using-a-github-hosted-runner).",
121121
severityWarning, false,
122122
true, true, true,
123123
"", 0, 0, 0, 0,
@@ -127,7 +127,7 @@ func EmitPackageDifferentOSArchitecture(pkgPath string) {
127127
func EmitCannotFindPackage(pkgPath string) {
128128
emitDiagnostic("go/autobuilder/package-not-found",
129129
"Package "+pkgPath+" could not be found",
130-
"Check that the path is correct. If it is a private package, make sure it can be accessed. If it is contained in the repository then you may need a [custom build command](https://docs.github.com/en/github-ae@latest/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-the-codeql-workflow-for-compiled-languages#adding-build-steps-for-a-compiled-language)",
130+
"Check that the path is correct. If it is a private package, make sure it can be accessed. If it is contained in the repository then you may need a [custom build command](https://docs.github.com/en/github-ae@latest/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-the-codeql-workflow-for-compiled-languages#adding-build-steps-for-a-compiled-language).",
131131
severityError, false,
132132
true, true, true,
133133
"", 0, 0, 0, 0,
@@ -137,7 +137,7 @@ func EmitCannotFindPackage(pkgPath string) {
137137
func EmitNewerGoVersionNeeded() {
138138
emitDiagnostic("go/autobuilder/newer-go-version-needed",
139139
"Newer Go version needed",
140-
"The version of Go available in the environment is lower than the version specified in the `go.mod` file. [Install a newer version](https://github.com/actions/setup-go#basic)",
140+
"The version of Go available in the environment is lower than the version specified in the `go.mod` file. [Install a newer version](https://github.com/actions/setup-go#basic).",
141141
severityError, false,
142142
true, true, true,
143143
"", 0, 0, 0, 0,

go/ql/integration-tests/all-platforms/go/diagnostics/build-constraints-exclude-all-go-files/diagnostics.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"internal": false,
3-
"markdownMessage": "Make sure the `GOOS` and `GOARCH` [environment variables are correctly set](https://docs.github.com/en/actions/learn-github-actions/variables#defining-environment-variables-for-a-single-workflow). Alternatively, [change your OS and architecture](https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#using-a-github-hosted-runner)",
3+
"markdownMessage": "Make sure the `GOOS` and `GOARCH` [environment variables are correctly set](https://docs.github.com/en/actions/learn-github-actions/variables#defining-environment-variables-for-a-single-workflow). Alternatively, [change your OS and architecture](https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#using-a-github-hosted-runner).",
44
"severity": "warning",
55
"source": {
66
"extractorName": "go",

0 commit comments

Comments
 (0)