mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-29 17:52:32 +00:00
VAULT-17734, VAULT-17735: Combine linters (#21611)
* combine into one checker * combine and simplify ci checks * add to test package list * remove testing test * only run deprecations check * only run deprecations check * remove unneeded repo check * fix bash options
This commit is contained in:
BIN
tools/codechecker/.bin/codechecker
Executable file
BIN
tools/codechecker/.bin/codechecker
Executable file
Binary file not shown.
14
tools/codechecker/main.go
Normal file
14
tools/codechecker/main.go
Normal file
@@ -0,0 +1,14 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/hashicorp/vault/tools/codechecker/pkg/godoctests"
|
||||
"github.com/hashicorp/vault/tools/codechecker/pkg/gonilnilfunctions"
|
||||
"golang.org/x/tools/go/analysis/multichecker"
|
||||
)
|
||||
|
||||
func main() {
|
||||
multichecker.Main(gonilnilfunctions.Analyzer, godoctests.Analyzer)
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package analyzer
|
||||
package godoctests
|
||||
|
||||
import (
|
||||
"go/ast"
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package analyzer
|
||||
package godoctests
|
||||
|
||||
import (
|
||||
"os"
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package analyzer
|
||||
package gonilnilfunctions
|
||||
|
||||
import (
|
||||
"go/ast"
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package analyzer
|
||||
package gonilnilfunctions
|
||||
|
||||
import (
|
||||
"os"
|
||||
@@ -1,13 +0,0 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/hashicorp/vault/tools/godoctests/pkg/analyzer"
|
||||
"golang.org/x/tools/go/analysis/singlechecker"
|
||||
)
|
||||
|
||||
func main() {
|
||||
singlechecker.Main(analyzer.Analyzer)
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/hashicorp/vault/tools/gonilnilfunctions/pkg/analyzer"
|
||||
"golang.org/x/tools/go/analysis/singlechecker"
|
||||
)
|
||||
|
||||
func main() {
|
||||
singlechecker.Main(analyzer.Analyzer)
|
||||
}
|
||||
Reference in New Issue
Block a user