From 97701e8fab7f77f255d8e7b0f266a9ab69f3acbe Mon Sep 17 00:00:00 2001 From: Aisuko Date: Thu, 8 Jun 2023 13:46:52 +0000 Subject: [PATCH 1/3] feat: Add custom configuration file path to args Signed-off-by: Aisuko --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f6efc6580b..f4bfd1917e 100644 --- a/README.md +++ b/README.md @@ -52,8 +52,8 @@ jobs: # Optional: working directory, useful for monorepos # working-directory: somedir - # Optional: golangci-lint command line arguments. - # args: --issues-exit-code=0 + # Optional: golangci-lint command line arguments. Note that the `.golangci.yml` file should be in the root of the repository. + # args: --config=.golangci.yml --issues-exit-code=0 # Optional: show only new issues if it's a pull request. The default value is `false`. # only-new-issues: true @@ -112,8 +112,8 @@ jobs: # Optional: working directory, useful for monorepos # working-directory: somedir - # Optional: golangci-lint command line arguments. - # args: --issues-exit-code=0 + # Optional: golangci-lint command line arguments. Note that the `.golangci.yml` file should be in the root of the repository. + # args: --config=.golangci.yml --issues-exit-code=0 # Optional: show only new issues if it's a pull request. The default value is `false`. # only-new-issues: true From 160d03692d82a49581404de82f26118118334f7b Mon Sep 17 00:00:00 2001 From: Aisuko Date: Fri, 9 Jun 2023 00:32:37 +1000 Subject: [PATCH 2/3] Update README.md Co-authored-by: Ludovic Fernandez --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f4bfd1917e..e51497625f 100644 --- a/README.md +++ b/README.md @@ -52,8 +52,11 @@ jobs: # Optional: working directory, useful for monorepos # working-directory: somedir - # Optional: golangci-lint command line arguments. Note that the `.golangci.yml` file should be in the root of the repository. - # args: --config=.golangci.yml --issues-exit-code=0 + # Optional: golangci-lint command line arguments. + # + # Note: by default the `.golangci.yml` file should be at the root of the repository. + # The location of the configuration file can be changed by using `--config=` + # args: --config=/my/path/.golangci.yml --issues-exit-code=0 # Optional: show only new issues if it's a pull request. The default value is `false`. # only-new-issues: true From b9207ff4b74ca8667d56281105e7e1733e353d99 Mon Sep 17 00:00:00 2001 From: Aisuko Date: Fri, 9 Jun 2023 00:32:44 +1000 Subject: [PATCH 3/3] Update README.md Co-authored-by: Ludovic Fernandez --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e51497625f..4b3ca130df 100644 --- a/README.md +++ b/README.md @@ -115,8 +115,11 @@ jobs: # Optional: working directory, useful for monorepos # working-directory: somedir - # Optional: golangci-lint command line arguments. Note that the `.golangci.yml` file should be in the root of the repository. - # args: --config=.golangci.yml --issues-exit-code=0 + # Optional: golangci-lint command line arguments. + # + # Note: by default the `.golangci.yml` file should be at the root of the repository. + # The location of the configuration file can be changed by using `--config=` + # args: --config=/my/path/.golangci.yml --issues-exit-code=0 # Optional: show only new issues if it's a pull request. The default value is `false`. # only-new-issues: true