Report the use of deprecated stuff #238

Open
rakyll opened this Issue Sep 7, 2016 · 2 comments

Projects

None yet

2 participants

@rakyll
Member
rakyll commented Sep 7, 2016

golint should be able to report cases user is depending on deprecated things. For the case below, it should be able to output "Deprecated: Use Client or Transport in package net/http instead".

$ cat main.go
package main

import (
    "net/http/httputil"
)

func main() {
    httputil.NewClientConn(nil, nil)
}
@rakyll rakyll changed the title from Report use of deprecated stuff to Report the use of deprecated stuff Sep 7, 2016
@dsnet
Member
dsnet commented Sep 7, 2016

For reference: golang/go#10909

@rakyll
Member
rakyll commented Sep 7, 2016

This change will also encourage the use of the same deprecation message formatting in the third party packages.

@dominikh dominikh added a commit to dominikh/go-staticcheck that referenced this issue Dec 3, 2016
@dominikh dominikh Flag uses of deprecated objects
Might interest the folks at golang/lint#238
7110281
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment