bitbucket-code-report: log the filter mode warning only when it's needed
@@ -357,6 +357,7 @@ github-pr-check reporter as a fallback.
cs = bbservice.NewReportAnnotator(client,
build.Owner, build.Repo, build.SHA, getRunnersList(opt, projectConf))
+ if !(opt.filterMode == filter.ModeDefault || opt.filterMode == filter.ModeNoFilter) {
// by default scan whole project with out diff (filter.ModeNoFilter)
// Bitbucket pipelines doesn't give an easy way to know
// which commit run pipeline before so we can compare between them
@@ -364,7 +365,8 @@ github-pr-check reporter as a fallback.
// filtering of annotations dividing them in two groups:
// - This pull request (10)
// - All (50)
- log.Printf("reviewdog: [bitbucket-code-report] supports only with filter.ModeNoFilter for now\n")
+ log.Printf("reviewdog: [bitbucket-code-report] supports only with filter.ModeNoFilter for now")
+ }
opt.filterMode = filter.ModeNoFilter
ds = &reviewdog.EmptyDiff{}
case "local":
