github.com/vanstinator/golangci-lint@v0.0.0-20240223191551-cc572f00d9d1/test/testdata/default_exclude.go (about)

     1  //golangcitest:args -Estylecheck,golint --internal-cmd-test
     2  //golangcitest:config_path testdata/configs/default_exclude.yml
     3  
     4  /*Package testdata ...*/
     5  package testdata
     6  
     7  // InvalidFuncComment, both golint and stylecheck will complain about this, // want stylecheck:`ST1020: comment on exported function ExportedFunc1 should be of the form "ExportedFunc1 ..."`
     8  // if include EXC0011, only the warning from golint will be ignored.
     9  // And only the warning from stylecheck will start with "ST1020".
    10  func ExportedFunc1() {
    11  }
    12  
    13  // InvalidFuncComment // want stylecheck:`ST1020: comment on exported function ExportedFunc2 should be of the form "ExportedFunc2 ..."`
    14  //
    15  //nolint:golint
    16  func ExportedFunc2() {
    17  }
    18  
    19  //nolint:stylecheck
    20  func IgnoreAll() {
    21  }