mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-25 01:35:18 -06:00
037101cd7c
And enable more staticcheck linters. I saw staticcheck failures mentioned in another PR, so thought I'd check it out. - `WriteString(fmt.Sprintf)` -> `fmt.Fprintf` - Rewrite calls to deprecated `*Rule.Path()` - Don't use `==` to compare `time.Time` - Use inline ignores over config exclusions of paths - Remove 'varcheck' ignores as no longer used - Remove v0 topdown/graphql.go (!) Signed-off-by: Anders Eknert <anders.eknert@apple.com>
16 lines
487 B
Go
16 lines
487 B
Go
// Copyright 2021 The OPA Authors. All rights reserved.
|
|
// Use of this source code is governed by an Apache2
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package capabilities
|
|
|
|
import (
|
|
v0 "github.com/open-policy-agent/opa/capabilities" //nolint:staticcheck
|
|
)
|
|
|
|
// FS contains the embedded capabilities/ directory of the built version,
|
|
// which has all the capabilities of previous versions:
|
|
// "v0.18.0.json" contains the capabilities JSON of version v0.18.0, etc
|
|
|
|
var FS = v0.FS
|