Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions docs/src/docs/usage/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,6 @@ The configuration file can be validated with the JSON Schema: https://golangci-l

{ .ConfigurationExample }

### `version` configuration

```yaml
# Defines the configuration version.
# The only possible value is "2".
version: "2"
```

## Command-Line Options

### run
Expand Down
3 changes: 2 additions & 1 deletion scripts/website/expand_templates/linters.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,8 @@ func (e *ExampleSnippetsExtractor) extractExampleSnippets(example []byte) (*Sett
}

if node.Value == "version" {
node.HeadComment = `See the dedicated "version" documentation section.`
node.HeadComment = `Defines the configuration version.
The only possible value is "2"`
newNode = nextNode
}

Expand Down
Loading