mirror of
https://github.com/golangci/golangci-lint-action.git
synced 2025-12-12 22:11:15 +00:00
22 lines
401 B
Go
22 lines
401 B
Go
// Package sample is used as test input for golangci action.
|
|
package sample
|
|
|
|
// comment without a to do
|
|
func SomeFunc1() {
|
|
_ = 1 + 1
|
|
}
|
|
|
|
// TODO: do something // want "TODO comment has no author"
|
|
func SomeFunc2() {
|
|
_ = 1 + 2
|
|
}
|
|
|
|
// TODO(): do something // want "TODO comment has no author"
|
|
func SomeFunc3() {
|
|
_ = 1 + 3
|
|
}
|
|
|
|
// TODO(dbraley): Do something with the value
|
|
func SomeFunc4() {
|
|
_ = 1 + 4
|
|
}
|