Giter Club home page Giter Club logo

Comments (2)

glouvigny avatar glouvigny commented on June 15, 2024

Hi @delgyd,

You should be able to use the library directly, without running make.

It seems that the linter doesn't recognize our test helpers correctly.

I will have a look at it later.


Linked log:

golangci-lint run --verbose ./...
INFO [config_reader] Config search paths: [./ /root/go-orbit-db /root /]
INFO [config_reader] Used config file .golangci.yml
INFO [lintersdb] Active 12 linters: [deadcode errcheck goconst gofmt golint ineffassign misspell staticcheck structcheck unconvert unused varcheck]
INFO [lintersdb] Active 12 linters: [deadcode errcheck goconst gofmt golint ineffassign misspell staticcheck structcheck unconvert unused varcheck]
INFO [loader] Go packages loading at mode 575 (deps|exports_file|types_sizes|compiled_files|files|imports|name) took 529.08514ms
INFO [runner/filename_unadjuster] Pre-built 0 adjustments in 4.482628ms
INFO [runner/unused/goanalysis] analyzers took 0s with no stages
INFO [runner/goanalysis_metalinter/goanalysis] analyzers took 0s with no stages
INFO [runner] Issues before processing: 135, after processing: 5
INFO [runner] Processors filtering stat (out/in): path_prettifier: 135/135, skip_dirs: 135/135, diff: 5/5, max_per_file_from_linter: 5/5, exclude: 9/135, max_same_issue                                                                     s: 5/5, source_code: 5/5, cgo: 135/135, filename_unadjuster: 135/135, autogenerated_exclude: 135/135, identifier_marker: 135/135, skip_files: 135/135, exclude-rules: 9/                                                                     9, nolint: 9/9, uniq_by_line: 5/9, max_from_linter: 5/5, path_shortener: 5/5
INFO [runner] processing took 12.601258ms with stages: exclude: 7.144452ms, identifier_marker: 3.712936ms, path_prettifier: 662.071µs, autogenerated_exclude: 655.364µs,                                                                      skip_dirs: 188.765µs, nolint: 130.189µs, cgo: 38.901µs, skip_files: 26.197µs, source_code: 25.826µs, filename_unadjuster: 5.618µs, max_same_issues: 3.909µs, uniq_by_li                                                                     ne: 2.376µs, path_shortener: 1.746µs, max_from_linter: 1.47µs, max_per_file_from_linter: 875ns, exclude-rules: 290ns, diff: 273ns
INFO [runner] linters took 178.604529ms with stages: unused: 149.670868ms, goanalysis_metalinter: 16.247173ms
tests/testing.go:29:6: func `testingIPFSNode` is unused (unused)
func testingIPFSNode(ctx context.Context, t *testing.T, m mocknet.Mocknet) (*ipfsCore.IpfsNode, cleanFunc) {
     ^
tests/testing.go:64:6: func `testingTempDir` is unused (unused)
func testingTempDir(t *testing.T, name string) (string, cleanFunc) {
     ^
tests/testing.go:49:6: func `testingCoreAPI` is unused (unused)
func testingCoreAPI(t *testing.T, core *ipfsCore.IpfsNode) (api iface.CoreAPI) {
     ^
tests/testing.go:24:6: type `cleanFunc` is unused (unused)
type cleanFunc func()
     ^
tests/testing.go:60:6: func `testingMockNet` is unused (unused)
func testingMockNet(ctx context.Context) mocknet.Mocknet {
     ^
INFO File cache stats: 1 entries of total size 1.5KiB
INFO Memory: 9 samples, avg is 68.9MB, max is 68.9MB
INFO Execution took 718.308637ms
make: *** [lint] Error 1

from go-orbit-db.

glouvigny avatar glouvigny commented on June 15, 2024

Can you tell which version of golangci-lint you are using?

from go-orbit-db.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.