mirror of
https://github.com/mgechev/revive.git
synced 2025-04-21 11:56:55 +02:00
parent
6182489121
commit
a6c7415c67
@ -69,7 +69,7 @@ revive -config revive.toml -exclude file1.go -exclude file2.go -formatter friend
|
|||||||
`revive` can be configured with a TOML file. Here's a sample configuration with explanation for the individual properties:
|
`revive` can be configured with a TOML file. Here's a sample configuration with explanation for the individual properties:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
# Ignores files with "GENERATED" header, similar to golint
|
# When set to false, ignores files with "GENERATED" header, similar to golint
|
||||||
ignoreGeneratedHeader = true
|
ignoreGeneratedHeader = true
|
||||||
|
|
||||||
# Sets the default severity to "warning"
|
# Sets the default severity to "warning"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
ignoreGeneratedHeader = true
|
ignoreGeneratedHeader = false
|
||||||
severity = "warning"
|
severity = "warning"
|
||||||
confidence = 0.8
|
confidence = 0.8
|
||||||
errorCode = 0
|
errorCode = 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user