Skip to content

Commit 2aed1eb

Browse files
committed
add tests
1 parent 4ecabef commit 2aed1eb

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
linters-settings:
2+
gofumpt:
3+
extra-rules: true
4+
gocritic:
5+
enabled-checks:
6+
- commentedOutCode
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
//golangcitest:args -Egocritic,gofumpt
2+
//golangcitest:config_path testdata/configs/gocritic-gofumpt-fix.yml
3+
//golangcitest:expected_exitcode 0
4+
package p
5+
6+
import "fmt"
7+
8+
func main() {
9+
//standard greeting
10+
fmt.Println("hello world")
11+
}
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
//golangcitest:args -Egocritic,gofumpt
2+
//golangcitest:config_path testdata/configs/gocritic-gofumpt-fix.yml
3+
//golangcitest:expected_exitcode 0
4+
package p
5+
6+
import "fmt"
7+
8+
func main() {
9+
// standard greeting
10+
fmt.Println("hello world")
11+
}

0 commit comments

Comments
 (0)