Skip to content
This repository was archived by the owner on Jun 2, 2023. It is now read-only.

just testing #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,4 @@ go run app/scripts/emulate_webhook/main.go --repo golangci/golangci-worker --pr
## Contributing

See [CONTRIBUTING](https://github.com/golangci/golangci-worker/blob/master/CONTRIBUTING.md).

9 changes: 9 additions & 0 deletions app/analyze/linters/linter.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package linters

import (
"context"
"fmt"

"github.com/golangci/golangci-worker/app/analyze/linters/result"
"github.com/golangci/golangci-worker/app/lib/executors"
Expand All @@ -13,3 +14,11 @@ type Linter interface {
Run(ctx context.Context, exec executors.Executor) (*result.Result, error)
Name() string
}

func Test() {
if true {
return
} else {

Choose a reason for hiding this comment

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

if block ends with a return statement, so drop this else and outdent its block

fmt.Printf("ssd")
}
}