Skip to content
This repository was archived by the owner on May 9, 2021. It is now read-only.
This repository was archived by the owner on May 9, 2021. It is now read-only.

Exported function/variable mark as deprecated should not require a comment #438

@bogdandrutu

Description

@bogdandrutu
var (
	// Deprecated: Use ClientSentBytes.
	ClientRequestBytes = stats.Int64(
		"opencensus.io/http/client/request_bytes",
		"HTTP request body size if set as ContentLength (uncompressed)",
		stats.UnitBytes)
)

When run golint it returns an error:
comment on exported var ClientRequestBytes should be of the form "ClientRequestBytes ..."

I expect that deprecated exported functions/variable comments to be valid only with a deprecation message like the one I had.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions