mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-03 15:16:29 +00:00
82fd65665f
bidichk checks for dangerous unicode character sequences (https://github.com/golangci/golangci-lint/pull/2330)
19 lines
395 B
Go
19 lines
395 B
Go
package ruleguard
|
|
|
|
import (
|
|
"path/filepath"
|
|
|
|
"github.com/quasilyte/go-ruleguard/internal/golist"
|
|
)
|
|
|
|
func findBundleFiles(pkgPath string) ([]string, error) { // nolint
|
|
pkg, err := golist.JSON(pkgPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
files := make([]string, 0, len(pkg.GoFiles))
|
|
for _, f := range pkg.GoFiles {
|
|
files = append(files, filepath.Join(pkg.Dir, f))
|
|
}
|
|
return files, nil
|
|
}
|