influxdata / telegraf

Agent for collecting, processing, aggregating, and writing metrics, logs, and other arbitrary data.
https://influxdata.com/telegraf
MIT License
14.11k stars 5.51k forks source link

testifylint->blank-import - Should we enable it? #15533

Closed zak-pawel closed 1 day ago

zak-pawel commented 1 week ago

Description

This issue starts a discussion about enabling:

Example

Before:

import (
    "testing"

    _ "github.com/stretchr/testify"
    _ "github.com/stretchr/testify/assert"
    _ "github.com/stretchr/testify/http"
    _ "github.com/stretchr/testify/mock"
    _ "github.com/stretchr/testify/require"
    _ "github.com/stretchr/testify/suite"
)

After:

import (
    "testing"
)

Expected output

Decision about enabling or not enabling this checker.

Findings

For this checker, no findings were found in the current codebase.

Additional configuration

For this checker, no additional configuration can be provided.

zak-pawel commented 1 week ago

Useful, revive->blankimports (which we have been using) doesn't find such imports for tests.

srebhan commented 1 week ago

Fine with me to enable this linter.

powersj commented 1 week ago

+1