From 8be687dd048ed0e0b7b175d0c76116ed5e3c50f1 Mon Sep 17 00:00:00 2001 From: haya14busa Date: Sun, 15 Sep 2019 09:57:27 +0000 Subject: [PATCH 1/2] test golangci-lint with reviewdog --- testdata/main.go | 9 ++++++--- testdata/newfile.go | 11 +++++++++++ 2 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 testdata/newfile.go diff --git a/testdata/main.go b/testdata/main.go index a593e4a4..8a2d5b0f 100644 --- a/testdata/main.go +++ b/testdata/main.go @@ -1,14 +1,14 @@ package testdata import ( - "os" "fmt" + "os" ) -func Main( ) { +func Main() { // langauge - x := 1 + x := 1 x += 1 fmt.Sprintf("%d") @@ -19,4 +19,7 @@ func unused(unusedParam int) error { return nil + x := 1 + x += 1 + return nil } diff --git a/testdata/newfile.go b/testdata/newfile.go new file mode 100644 index 00000000..6403da45 --- /dev/null +++ b/testdata/newfile.go @@ -0,0 +1,11 @@ +package testdata + +import "fmt" + +func unusedFunc() { + + fmt.Sprintf("haya%dbusa", 14, 15) + +} + +var X = 14 From cec33be69f6a354c95c7ac48931a72090ea4f422 Mon Sep 17 00:00:00 2001 From: haya14busa Date: Sun, 15 Sep 2019 10:02:09 +0000 Subject: [PATCH 2/2] Remove dockerimage to get example picture --- .github/workflows/dockerimage.yml | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 .github/workflows/dockerimage.yml diff --git a/.github/workflows/dockerimage.yml b/.github/workflows/dockerimage.yml deleted file mode 100644 index a924ec71..00000000 --- a/.github/workflows/dockerimage.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: Docker Image CI - -on: [push] - -jobs: - - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v1 - - name: Build the Docker image - run: docker build . --file Dockerfile --tag reviewdog-golangci-lint:$(date +%s)