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:
miagilepner
2023-07-06 15:18:42 +02:00
committed by GitHub
parent 02f43ecbc2
commit 8c18f24b9d
19 changed files with 122 additions and 198 deletions

Binary file not shown.

14
tools/codechecker/main.go Normal file
View 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)
}

View File

@@ -1,7 +1,7 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package analyzer
package godoctests
import (
"go/ast"

View File

@@ -1,7 +1,7 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package analyzer
package godoctests
import (
"os"

View File

@@ -1,7 +1,7 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package analyzer
package gonilnilfunctions
import (
"go/ast"

View File

@@ -1,7 +1,7 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package analyzer
package gonilnilfunctions
import (
"os"

View File

@@ -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)
}

View File

@@ -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)
}