Skip to content

Conversation

haya14busa
Copy link
Member

@haya14busa haya14busa commented Aug 1, 2024

With reviwedog project config, comment service can be called multiple
times with each tool.
reviewdog should report result with appropriate tool name for each tool
correctly.
@@ -78,9 +78,15 @@ func (ch *Check) GetResult() *CheckResult {
return ch.result
}

func (ch *Check) SetTool(toolName string, level string) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[golint-circleci] reported by reviewdog 🐶
exported method Check.SetTool should have comment or be unexported

@@ -78,9 +78,15 @@
return ch.result
}

func (ch *Check) SetTool(toolName string, level string) {

Check warning

Code scanning / golint

exported method Check.SetTool should have comment or be unexported

exported method Check.SetTool should have comment or be unexported
@@ -123,6 +124,11 @@ func (g *PullRequest) Flush(ctx context.Context) error {
return g.postAsReviewComment(ctx)
}

func (g *PullRequest) SetTool(toolName string, level string) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[golint-circleci] reported by reviewdog 🐶
exported method PullRequest.SetTool should have comment or be unexported

@@ -123,6 +124,11 @@
return g.postAsReviewComment(ctx)
}

func (g *PullRequest) SetTool(toolName string, level string) {

Check warning

Code scanning / golint

exported method PullRequest.SetTool should have comment or be unexported

exported method PullRequest.SetTool should have comment or be unexported
@@ -78,9 +78,15 @@ func (ch *Check) GetResult() *CheckResult {
return ch.result
}

func (ch *Check) SetTool(toolName string, level string) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[golint-by-project-conf] reported by reviewdog 🐶
exported method Check.SetTool should have comment or be unexported

@@ -123,6 +124,11 @@ func (g *PullRequest) Flush(ctx context.Context) error {
return g.postAsReviewComment(ctx)
}

func (g *PullRequest) SetTool(toolName string, level string) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[golint-by-project-conf] reported by reviewdog 🐶
exported method PullRequest.SetTool should have comment or be unexported

format: rdjson
test-project-conf:
cmd: |
echo '.reviewdog.yml:17: test project conf (errorformat)'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[test-project-conf] reported by reviewdog 🐶
test project conf (errorformat)

@haya14busa haya14busa changed the title Fix github-[pr-]check reporter with project run Fix project config based run with github-[pr-]check and github-pr-review reporters Aug 1, 2024
Co-authored-by: ICHINOSE Shogo <shogo82148@gmail.com>
Co-authored-by: ICHINOSE Shogo <shogo82148@gmail.com>
@haya14busa
Copy link
Member Author

Oops, thank you for the suggestion! PTAL.

@haya14busa
Copy link
Member Author

@shogo82148 Can you take another look at this PR? Do you think it's ok to merge this? Thanks in advance!

Copy link
Contributor

@shogo82148 shogo82148 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@haya14busa haya14busa enabled auto-merge August 31, 2024 02:15
@haya14busa haya14busa merged commit 9e5864d into master Aug 31, 2024
35 checks passed
@haya14busa haya14busa deleted the project-check branch August 31, 2024 02:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants