Anders Eknert
037101cd7c
Linter configuration cleanup ( #8397 )
...
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 >
2026-03-06 22:07:35 +00:00
Stephan Renatus
b15601876e
go: cleanup old build flags
...
Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com >
2026-02-12 08:42:05 +01:00
Anders Eknert
e43ef0a979
Use any in place of interface{} ( #7566 )
...
Earlier this evening I tried to run the Go
[modernize](https://pkg.go.dev/golang.org/x/tools/gopls/internal/analysis/modernize )
analyzer on OPA. That didn't go as planned:
- https://github.com/golang/go/issues/73661
- https://github.com/golang/go/issues/73663
While we wait for that to be fixed, I figured an old-fashioned
search-and-replace across the repo may work for at least the
`interface{}` to `any` conversion. That should help make it easier
to see the other fixes as applied by the modernize tool once it has
had those issues resolved.
Signed-off-by: Anders Eknert <anders@styra.com >
2025-05-12 13:57:48 +02:00
Johan Fylling
f67b96659f
Moving capabilities json files back to original location before v1 move ( #7227 )
...
for backwards compatibility reasons with 3rd party projects.
Signed-off-by: Johan Fylling <johan.dev@fylling.se >
2024-12-18 13:48:44 +01:00
Johan Fylling
563321d26b
Rego v1 capabilities and keywords update ( #7216 )
...
* Separating v0- and v1 keywords
* Adding `rego_v1` capability feature
Signed-off-by: Johan Fylling <johan.dev@fylling.se >
2024-12-17 11:50:11 +01:00
Johan Fylling
7bb6dbe36b
Preparing for v1 API
...
Moving (most) source to v1 root package to prepare for v0/v1 API separation.
Signed-off-by: Johan Fylling <johan.dev@fylling.se >
2024-12-12 15:09:03 +01:00