Skip to content

Print scope that matched the name #6

@quasilyte

Description

@quasilyte

This can increase warning messages clarity.

./testdata/main_test.go:5:20: test testing.T: use t for testing.T params
./testdata/main_test.go:6:20: tst testing.T: use t for testing.T params
./testdata/main_test.go:8:24: bench testing.B: use b for testing.B params

=> could omit explanation related to "params"

./testdata/main_test.go:5:20: param test testing.T: rename to t
./testdata/main_test.go:6:20: param tst testing.T: rename to t
./testdata/main_test.go:8:24: param bench testing.B: rename to t

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions