github.com/songshiyun/revive@v1.1.5-0.20220323112655-f8433a19b3c5/testdata/line-length-limit.go (about)

     1  package fixtures
     2  
     3  import "fmt"
     4  
     5  func foo(a, b int) {
     6  	fmt.Printf("single line characters out of limit") // MATCH /line is 105 characters, out of limit 100/
     7  }
     8  
     9  // revive:disable-next-line:line-length-limit
    10  // The length of this comment line is over 80 characters, this is bad for readability.
    11  
    12  // Warn: the testing framework does not allow to check for failures in comments
    13  
    14  func toto() {
    15  	// revive:disable-next-line:line-length-limit
    16  	fmt.Println("This line is way too long. In my opinion, it should be shortened.")
    17  }