Skip to content

Commit 62a1c54

Browse files
committed
chore: fix acronyms case
acronyms should be in uppercase
1 parent e4c1cf3 commit 62a1c54

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

docs/src/docs/plugins/go-plugins.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ An example linter can be found at [here](https://github.com/golangci/example-plu
4848
If you're looking for instructions on how to configure your own custom linter, they can be found further down.
4949

5050
1. If the project you want to lint does not have one already, copy the [.golangci.yml](https://github.com/golangci/golangci-lint/blob/master/.golangci.yml) to the root directory.
51-
2. Adjust the yaml to appropriate `linters-settings.custom` entries as so:
51+
2. Adjust the YAML to appropriate `linters-settings.custom` entries as so:
5252
```yaml title=.golangci.yml
5353
linters-settings:
5454
custom:

pkg/commands/run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ func computeBinarySalt(version string) ([]byte, error) {
674674
func computeConfigSalt(cfg *config.Config) ([]byte, error) {
675675
lintersSettingsBytes, err := yaml.Marshal(cfg.LintersSettings)
676676
if err != nil {
677-
return nil, fmt.Errorf("failed to json marshal config linter settings: %w", err)
677+
return nil, fmt.Errorf("failed to JSON marshal config linter settings: %w", err)
678678
}
679679

680680
configData := bytes.NewBufferString("linters-settings=")

pkg/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"github.com/ldez/gomoddirectives"
1010
)
1111

12-
// Config encapsulates the config data specified in the golangci-lint yaml config file.
12+
// Config encapsulates the config data specified in the golangci-lint YAML config file.
1313
type Config struct {
1414
cfgDir string // The directory containing the golangci-lint config file.
1515

scripts/website/expand_templates/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func processDoc(path string, replacements map[string]string, madeReplacements ma
6666
nextContent := content
6767
nextContent = strings.ReplaceAll(nextContent, fmt.Sprintf("{.%s}", key), replacement)
6868

69-
// Yaml formatter in mdx code section makes extra spaces, need to match them too.
69+
// YAML formatter in mdx code section makes extra spaces, need to match them too.
7070
nextContent = strings.ReplaceAll(nextContent, fmt.Sprintf("{ .%s }", key), replacement)
7171

7272
if nextContent != content {

test/configuration_file_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ func decodeYamlFile(filename string) (any, error) {
113113
var m any
114114
err = yaml.NewDecoder(yamlFile).Decode(&m)
115115
if err != nil {
116-
return nil, fmt.Errorf("[%s] yaml decode: %w", filename, err)
116+
return nil, fmt.Errorf("[%s] YAML decode: %w", filename, err)
117117
}
118118

119119
return m, nil

0 commit comments

Comments
 (0)