mirror of
https://github.com/mgechev/revive.git
synced 2024-11-21 17:16:40 +02:00
18 lines
519 B
Go
18 lines
519 B
Go
package fixtures
|
|
|
|
import "fmt"
|
|
|
|
func foo(a, b int) {
|
|
fmt.Printf("single line characters out of limit") // MATCH /line is 105 characters, out of limit 100/
|
|
}
|
|
|
|
// revive:disable-next-line:line-length-limit
|
|
// The length of this comment line is over 80 characters, this is bad for readability.
|
|
|
|
// Warn: the testing framework does not allow to check for failures in comments
|
|
|
|
func toto() {
|
|
// revive:disable-next-line:line-length-limit
|
|
fmt.Println("This line is way too long. In my opinion, it should be shortened.")
|
|
}
|