Skip to content

File tree

5 files changed

+0
-68
lines changed

5 files changed

+0
-68
lines changed
 

‎NOTICE.txt

-37
Original file line numberDiff line numberDiff line change
@@ -14415,43 +14415,6 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1441514415
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1441614416

1441714417

14418-
--------------------------------------------------------------------------------
14419-
Dependency : golang.org/x/lint
14420-
Version: v0.0.0-20210508222113-6edffad5e616
14421-
Licence type (autodetected): BSD-3-Clause
14422-
--------------------------------------------------------------------------------
14423-
14424-
Contents of probable licence file $GOMODCACHE/golang.org/x/lint@v0.0.0-20210508222113-6edffad5e616/LICENSE:
14425-
14426-
Copyright (c) 2013 The Go Authors. All rights reserved.
14427-
14428-
Redistribution and use in source and binary forms, with or without
14429-
modification, are permitted provided that the following conditions are
14430-
met:
14431-
14432-
* Redistributions of source code must retain the above copyright
14433-
notice, this list of conditions and the following disclaimer.
14434-
* Redistributions in binary form must reproduce the above
14435-
copyright notice, this list of conditions and the following disclaimer
14436-
in the documentation and/or other materials provided with the
14437-
distribution.
14438-
* Neither the name of Google Inc. nor the names of its
14439-
contributors may be used to endorse or promote products derived from
14440-
this software without specific prior written permission.
14441-
14442-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
14443-
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
14444-
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
14445-
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
14446-
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
14447-
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
14448-
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
14449-
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
14450-
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
14451-
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
14452-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
14453-
14454-
1445514418
--------------------------------------------------------------------------------
1445614419
Dependency : golang.org/x/sync
1445714420
Version: v0.7.0

‎go.mod

-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ require (
6363
go.elastic.co/go-licence-detector v0.6.1
6464
go.uber.org/zap v1.27.0
6565
golang.org/x/crypto v0.24.0
66-
golang.org/x/lint v0.0.0-20210508222113-6edffad5e616
6766
golang.org/x/sync v0.7.0
6867
golang.org/x/sys v0.21.0
6968
golang.org/x/term v0.21.0

‎go.sum

-1
Original file line numberDiff line numberDiff line change
@@ -1739,7 +1739,6 @@ golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRu
17391739
golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
17401740
golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
17411741
golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
1742-
golang.org/x/lint v0.0.0-20210508222113-6edffad5e616 h1:VLliZ0d+/avPrXXH+OakdXhpJuEoBZuwh1m2j7U6Iug=
17431742
golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
17441743
golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE=
17451744
golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o=

‎magefile.go

-28
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ import (
6666
)
6767

6868
const (
69-
goLintRepo = "golang.org/x/lint/golint"
7069
goLicenserRepo = "github.com/elastic/go-licenser"
7170
buildDir = "build"
7271
metaDir = "_meta"
@@ -262,11 +261,6 @@ func (Prepare) InstallGoLicenser() error {
262261
return GoInstall(goLicenserRepo)
263262
}
264263

265-
// InstallGoLint for the code.
266-
func (Prepare) InstallGoLint() error {
267-
return GoInstall(goLintRepo)
268-
}
269-
270264
// All build all the things for the current projects.
271265
func (Build) All() {
272266
mg.Deps(Build.Binary)
@@ -367,28 +361,6 @@ func (Check) All() {
367361
mg.SerialDeps(Check.License, Integration.Check)
368362
}
369363

370-
// GoLint run the code through the linter.
371-
func (Check) GoLint() error {
372-
mg.Deps(Prepare.InstallGoLint)
373-
packagesString, err := sh.Output("go", "list", "./...")
374-
if err != nil {
375-
return err
376-
}
377-
378-
packages := strings.Split(packagesString, "\n")
379-
for _, pkg := range packages {
380-
if strings.Contains(pkg, "/vendor/") {
381-
continue
382-
}
383-
384-
if e := sh.RunV("golint", "-set_exit_status", pkg); e != nil {
385-
err = multierror.Append(err, e)
386-
}
387-
}
388-
389-
return err
390-
}
391-
392364
// License makes sure that all the Golang files have the appropriate license header.
393365
func (Check) License() error {
394366
mg.Deps(Prepare.InstallGoLicenser)

‎tools/tools.go

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import (
1919
_ "gotest.tools/gotestsum/cmd"
2020

2121
_ "github.com/mitchellh/gox"
22-
_ "golang.org/x/lint/golint"
2322

2423
_ "go.elastic.co/go-licence-detector"
2524

0 commit comments

Comments
 (0)
Please sign in to comment.