Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CEL code migration #1

Open
wants to merge 169 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
169 commits
Select commit Hold shift + click to select a range
e2dc904
Initial commit
puerco Jun 8, 2023
ec1e761
Initial commit 🚀
puerco Jun 13, 2023
1f99801
Add edge cleaner utility func
puerco Jun 15, 2023
3dd3a8e
Add edge cleaner test
puerco Jun 15, 2023
4926bcf
Pre-protobom API POC
puerco Jun 22, 2023
38c50ee
Pull protobom@HEAD
puerco Jun 23, 2023
63d7297
Add new document wrapper type
puerco Jun 23, 2023
e4c7864
Change functions to use new upstream document
puerco Jun 23, 2023
0bf660f
Import new document format into CEL environment
puerco Jun 23, 2023
251b861
Shift workload to the shell implementation
puerco Jun 24, 2023
94e6629
Make nodelist value the protobom.NodeList
puerco Jun 24, 2023
0e734a3
First iteartion of document builder
puerco Jun 24, 2023
9cea08a
Support dual binding of nodebyid in both document and nodelist
puerco Jun 24, 2023
9354da1
Spin SBOM loading to own package
puerco Jun 27, 2023
a0b4b8a
Add SBOM loader example
puerco Jun 27, 2023
ec64493
Add LoadSBOM function
puerco Jun 27, 2023
f6c7007
go mod: Pull in charmbracelet
puerco Jun 29, 2023
e1cee25
Check-in of ui/interactive
puerco Jun 29, 2023
a178488
shell: Return eval results instead of print
puerco Jun 29, 2023
468ae7e
Integrate interactive package
puerco Jun 29, 2023
ed4e291
Bootstrap full CLI!!
puerco Jun 29, 2023
b737391
go mod tidy
puerco Jun 29, 2023
53d85a6
Add curl image SBOM to examples
puerco Jun 29, 2023
7e909f3
Add flags to control format
puerco Jul 12, 2023
99cce3f
Add local orphan reconnect function
puerco Jul 12, 2023
c3e244e
Add suport to query by purl type
puerco Jul 12, 2023
3cbcf30
Add more examples!
puerco Jul 12, 2023
a75f76f
go mod tidy
puerco Aug 9, 2023
6f9992d
Support loading multiple SBOMs
puerco Aug 10, 2023
b59114f
Add RelateNodeListAtID overload
puerco Aug 10, 2023
c69c1b4
Add first composing example: compose.cel
puerco Aug 10, 2023
b80d58c
Update some examples to new sbom collection
puerco Aug 10, 2023
7ea8e67
Add examples readme file
puerco Aug 10, 2023
179c3ff
Update rest of examples to new SBOM collection
puerco Aug 10, 2023
3a845d4
Move example compose code to top of example
puerco Aug 10, 2023
9413086
Create global bomshell object, bind LoadSBOM()
puerco Aug 11, 2023
64ee9ac
Rename BomShell→Bomshell. Because weirdness
puerco Aug 11, 2023
b5c6709
Rename exec.go to run.go
puerco Aug 11, 2023
9c3f5ea
Rework CLI commands, make runner default
puerco Aug 12, 2023
743b98d
Update load and packages examples
puerco Aug 12, 2023
0d002ef
Refactor CLI subcommands and exec fns
puerco Aug 12, 2023
0aede24
Implement running of code snippets
puerco Aug 12, 2023
2e702c8
Improve the run subcommand documentation
puerco Aug 12, 2023
9f98396
Add copyright notices
puerco Aug 12, 2023
f58b6b9
Support shebang to execute recipes directly
puerco Aug 12, 2023
45adf7f
Add test for bomshell file opener
puerco Aug 12, 2023
d46a116
Bump go-cel to 1.17.1
puerco Aug 12, 2023
5fe59e0
Support reading SBOMs from STDIN
puerco Aug 12, 2023
ebb2e4c
Fix inconsistent document handling
puerco Aug 12, 2023
0f825bc
Add bomshell run HOWTO
puerco Aug 12, 2023
aa903c4
Add bomshell run HOWTO
puerco Aug 12, 2023
69c1df5
Add golangci-lint config and presubmit
puerco Aug 12, 2023
38c2905
Add dependabot configuration
puerco Aug 12, 2023
d0ebfff
Add go build and test workflow
puerco Aug 12, 2023
8515f90
Clean orphans in packages and files func
puerco Aug 12, 2023
8678198
Go lint fixes, round 1
puerco Aug 12, 2023
79168cf
Go linters, take 2
puerco Aug 12, 2023
fbad942
First check-in of the bomshell tutorial
puerco Aug 15, 2023
6b33aee
Add goreleaser configuration
puerco Aug 15, 2023
96d9ba7
Add bom configuration
puerco Aug 15, 2023
470d9c7
Add release workflow
puerco Aug 15, 2023
ef4967b
Enable SBOM Generation
puerco Aug 15, 2023
0199c1c
Add ldflags script
puerco Aug 15, 2023
b85d881
go.mod: Drop local replacement
puerco Aug 15, 2023
18dfcff
Bump actions/setup-go from 4.0.1 to 4.1.0
dependabot[bot] Aug 16, 2023
7951657
Bump github.com/charmbracelet/bubbletea from 0.24.1 to 0.24.2
dependabot[bot] Aug 16, 2023
ef72ea1
Bump golangci/golangci-lint-action from 3.6.0 to 3.7.0
dependabot[bot] Aug 16, 2023
9a7ceb9
Drop labels from dependabot config
puerco Aug 16, 2023
51da1d9
Expand Readme ahead of release
puerco Aug 16, 2023
ce3ec4e
Drop image build script
puerco Aug 16, 2023
a877a05
Release v0.1.0
puerco Aug 16, 2023
c9ae5b7
Bump goreleaser/goreleaser-action from 4.3.0 to 4.4.0
dependabot[bot] Aug 16, 2023
e9e2905
Bump github.com/google/cel-go from 0.17.1 to 0.17.2
dependabot[bot] Aug 21, 2023
7b5bc06
Bump github.com/charmbracelet/lipgloss from 0.7.1 to 0.8.0
dependabot[bot] Aug 23, 2023
0aeb208
Bump actions/checkout from 3.5.3 to 3.6.0 (#9)
dependabot[bot] Aug 25, 2023
6c5d2d5
Bump sigstore/cosign-installer from 3.1.1 to 3.1.2 (#11)
dependabot[bot] Sep 4, 2023
82b2643
Bump github.com/google/cel-go from 0.17.2 to 0.18.0 (#10)
dependabot[bot] Sep 4, 2023
47bca29
Update planned functions
puerco Sep 5, 2023
0a74a85
Bump actions/checkout from 3.6.0 to 4.0.0 (#12)
dependabot[bot] Sep 5, 2023
5957abb
Create chainguard source (#13)
cpanato Sep 5, 2023
5bf527e
Bump goreleaser/goreleaser-action from 4.4.0 to 4.6.0 (#14)
dependabot[bot] Sep 6, 2023
0188f53
Bump goreleaser/goreleaser-action from 4.6.0 to 5.0.0 (#15)
dependabot[bot] Sep 12, 2023
fd24a03
Bump github.com/google/cel-go from 0.18.0 to 0.18.1 (#17)
dependabot[bot] Oct 5, 2023
df178f3
Bump actions/checkout from 4.0.0 to 4.1.0 (#16)
dependabot[bot] Oct 5, 2023
92d2d1c
Update protobom to v0.2.0 RC
puerco Oct 10, 2023
ee38113
Bump sigs.k8s.io/release-utils from 0.7.4 to 0.7.5 (#18)
dependabot[bot] Oct 10, 2023
45e673a
Bump github.com/charmbracelet/lipgloss from 0.8.0 to 0.9.0 (#19)
dependabot[bot] Oct 11, 2023
805ee01
Bump github.com/charmbracelet/lipgloss from 0.9.0 to 0.9.1 (#20)
dependabot[bot] Oct 12, 2023
bfb9d13
Bump actions/checkout from 4.1.0 to 4.1.1 (#21)
dependabot[bot] Oct 18, 2023
39e79b5
Expand Files, Packages and ToNodeList to all
puerco Oct 14, 2023
d6ad6f6
Make ToDocument() work with all elements
puerco Oct 16, 2023
9b4a277
Bump sigs.k8s.io/release-utils from 0.7.5 to 0.7.6 (#22)
dependabot[bot] Oct 30, 2023
293729b
Fix typo
jspeed-meyers Nov 27, 2023
ec81cbb
Bump github.com/google/cel-go from 0.18.1 to 0.18.2
dependabot[bot] Nov 13, 2023
e853e6f
Bump sigstore/cosign-installer from 3.1.2 to 3.2.0
dependabot[bot] Nov 8, 2023
0252950
Bump github.com/spf13/cobra from 1.7.0 to 1.8.0
dependabot[bot] Nov 6, 2023
dfd5e8f
Bump sigs.k8s.io/release-utils from 0.7.6 to 0.7.7
dependabot[bot] Nov 27, 2023
643e87a
Add description and rework LoadSBOM example
puerco Nov 27, 2023
c40f0c4
Fix bug initializing runner w/opts
puerco Nov 28, 2023
c06fcbe
Pipe output to common renderer
puerco Nov 28, 2023
dc1c181
Overload CEL environment with interactive addition
puerco Nov 28, 2023
564601b
Initialize interactive mode with options
puerco Nov 28, 2023
f7dbc56
Pull protobom v0.2.0
puerco Nov 28, 2023
f96e57a
Interactive mode subshell
puerco Nov 28, 2023
f6321ef
New render engine
puerco Nov 28, 2023
45ac6ce
Bunmp go versions in CI to 1.21
puerco Dec 14, 2023
0be477b
Fix lints
puerco Dec 14, 2023
58ab910
Bump github.com/charmbracelet/bubbletea from 0.24.2 to 0.25.0
dependabot[bot] Dec 14, 2023
bdc76c5
Bump actions/setup-go from 4.1.0 to 5.0.0
dependabot[bot] Dec 14, 2023
901cede
Bump sigstore/cosign-installer from 3.2.0 to 3.3.0
dependabot[bot] Dec 14, 2023
f5b6872
Bump github.com/charmbracelet/bubbles from 0.16.1 to 0.17.1
dependabot[bot] Dec 14, 2023
1624945
Bump google.golang.org/protobuf from 1.31.0 to 1.32.0
dependabot[bot] Dec 25, 2023
fd12ca8
Bump github.com/bom-squad/protobom from 0.2.0 to 0.3.0
dependabot[bot] Dec 29, 2023
40c83d4
Fix bug in node to nodelist translation
puerco Dec 29, 2023
1a6e267
Fix query by id on node
puerco Dec 29, 2023
a10ac23
Add type conversion tests
puerco Dec 29, 2023
6f864ee
Bump github.com/google/cel-go from 0.18.2 to 0.19.0 (#35)
dependabot[bot] Jan 22, 2024
75bbba8
pin to shas and upgrade actions workflows (#34)
jedsalazar Jan 22, 2024
d23bcd6
Fork Point
puerco Feb 9, 2024
4467d76
Bump golangci/golangci-lint-action from 3.7.0 to 4.0.0
dependabot[bot] Feb 12, 2024
e52c0e3
Bump sigstore/cosign-installer from 3.3.0 to 3.4.0
dependabot[bot] Feb 9, 2024
ba841d8
Bump github.com/charmbracelet/bubbles from 0.17.1 to 0.18.0
dependabot[bot] Feb 9, 2024
de7d2cc
Bump google.golang.org/protobuf from 1.32.0 to 1.33.0
dependabot[bot] Mar 6, 2024
7e56aa0
Bump github.com/stretchr/testify from 1.8.4 to 1.9.0
dependabot[bot] Mar 4, 2024
be22d06
Bump actions/checkout from 4.1.1 to 4.1.2
dependabot[bot] Mar 13, 2024
b6dc6cd
Fix latest golangci lints
puerco Apr 5, 2024
2e97669
Bump sigs.k8s.io/release-utils from 0.7.7 to 0.8.0
dependabot[bot] Apr 5, 2024
db671a8
Bump golangci/golangci-lint-action from 4.0.0 to 5.3.0
dependabot[bot] May 6, 2024
e83311b
Migrate to new protobom import path
puerco May 21, 2024
2014cb5
Expose protobom objects to cel env
puerco May 23, 2024
2e9c213
Bump github.com/charmbracelet/bubbletea from 0.25.0 to 0.26.3
dependabot[bot] May 24, 2024
942313c
Bump goreleaser/goreleaser-action from 5.0.0 to 5.1.0
dependabot[bot] May 13, 2024
b4d3edc
Bump actions/checkout from 4.1.2 to 4.1.6
dependabot[bot] May 17, 2024
6837a4c
Bump sigstore/cosign-installer from 3.4.0 to 3.5.0
dependabot[bot] Apr 11, 2024
9406819
Bump golangci/golangci-lint-action from 5.3.0 to 6.0.1
dependabot[bot] May 8, 2024
cfd259e
Bump actions/setup-go from 5.0.0 to 5.0.1
dependabot[bot] May 29, 2024
35806d0
Bump github.com/charmbracelet/lipgloss from 0.9.1 to 0.11.0
dependabot[bot] May 29, 2024
9482583
Bump github.com/google/cel-go from 0.19.0 to 0.20.1
dependabot[bot] May 29, 2024
d3e86ad
Bump github.com/charmbracelet/bubbletea from 0.26.3 to 0.26.5
dependabot[bot] Jun 21, 2024
70cb7aa
Bump github.com/spf13/cobra from 1.8.0 to 1.8.1
dependabot[bot] Jun 17, 2024
54b07c7
Bump actions/checkout from 4.1.6 to 4.1.7
dependabot[bot] Jun 13, 2024
3185249
Bump google.golang.org/protobuf from 1.34.1 to 1.34.2
dependabot[bot] Jun 12, 2024
5ace89c
Bump github.com/protobom/protobom from 0.4.1 to 0.4.3
dependabot[bot] Jun 21, 2024
4eb0db0
Bump goreleaser/goreleaser-action from 5.1.0 to 6.0.0
dependabot[bot] Jun 5, 2024
82f485f
Bump github.com/charmbracelet/bubbletea from 0.26.5 to 0.26.6
dependabot[bot] Jun 25, 2024
f1cd6cd
Initial commit
puerco Nov 6, 2024
5b94339
Delete CLI code
puerco Jan 15, 2025
b87a919
Update readme to module data
puerco Jan 15, 2025
6fa7b89
Rename module
puerco Jan 15, 2025
8ed0d7e
Spin the cel library to its own pacakge
puerco Jan 15, 2025
7ef9ca8
Even out copyright boilerplates
puerco Jan 15, 2025
f1cb8d9
Rename global object bomshell -> protobom
puerco Jan 15, 2025
b6e9112
Fix unconstant errors
puerco Jan 15, 2025
d8bb1ca
Drop needless loader package
puerco Jan 15, 2025
39b7c84
Move runner to own package
puerco Jan 15, 2025
5a23931
Make standalone runner
puerco Jan 15, 2025
60f37fd
Start to rework workflows for project as library
puerco Jan 15, 2025
1aff611
Drop uneeded package shell
puerco Jan 16, 2025
f34ea27
Improve runner function docs
puerco Jan 16, 2025
71297f6
Remove bomshell tutorial
puerco Jan 16, 2025
ebb4670
Update release machinery
puerco Jan 16, 2025
357aca2
Update references to Protobom/CEL in documentation
puerco Jan 16, 2025
2b851bd
Update golangcilint config
puerco Jan 16, 2025
12d427e
Fix linter issues
puerco Jan 16, 2025
7190fed
Use any instead of interface{}
puerco Jan 16, 2025
4ee85e8
Enable revivie linter
puerco Jan 16, 2025
549800f
Use slices.Concat() when building env
puerco Jan 16, 2025
be06f90
Fix native type adapter
puerco Jan 16, 2025
3711fb1
Refactor sbom gen and exclude tmp/
puerco Jan 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .bom.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright 2025 The Protobom Authors
---
license: Apache-2.0
name: github.com/protobom/cel
creator:
person: The Protobom Authors
tool: bom

artifacts:
- type: directory
source: ../
license: Apache-2.0
gomodules: true
18 changes: 18 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright 2025 The Protobom Authors

version: 2

updates:

- package-ecosystem: gomod
directory: "/"
schedule:
interval: "daily"
open-pull-requests-limit: 10

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
open-pull-requests-limit: 10
26 changes: 26 additions & 0 deletions .github/workflows/go-build-and-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright 2025 The Protobom Authors

name: build-and-test

on:
pull_request:
branches: [ "main" ]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Set up Go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version-file: go.mod
cache: false

- name: Test
run: |
go get -d ./...
go test -v ./...
Comment on lines +23 to +26

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you're interested, the Makefile over in protobom/storage has a target to run all the tests and print out a coverage report. Up to you

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll start improving all the machinery once we check-in the code. This are stripped version of the files originally written to release the bomshell binary.

28 changes: 28 additions & 0 deletions .github/workflows/golangci-lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright 2025 The Protobom Authors

name: golangci-lint
on:
pull_request:
branches:
- main

permissions:
contents: read

jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version-file: go.mod
cache: false

- name: Run golangci-lint
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1
with:
version: v1.61

54 changes: 54 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Copyright 2023 The OpenVEX Authors
# SPDX-License-Identifier: Apache-2.0

name: Release

on:
push:
tags:
- 'v*'

jobs:
release:
runs-on: ubuntu-latest

permissions:
contents: write # needed to write releases
id-token: write # needed for keyless signing
packages: write # needed for pushing the images to ghcr.io

env:
GO111MODULE: on
COSIGN_EXPERIMENTAL: "true"

steps:
- name: Check out code onto GOPATH
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version-file: go.mod
cache: false

- name: Install cosign
uses: sigstore/cosign-installer@59acb6260d9c0ba8f4a2f9d9b48431a222b68e20 # v3.5.0

- name: Install bom
uses: kubernetes-sigs/release-actions/setup-bom@a69972745f85aab4ba5d6c681e2a0e7f73eaff2b # v0.3.0

- name: Get TAG
id: get_tag
run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT

- name: Generate SBOM
shell: bash
run: |
bom generate --format=json -o /tmp/protobom-cel-$TAG.spdx.json .

- name: Publish Release
uses: kubernetes-sigs/release-actions/publish-release@a69972745f85aab4ba5d6c681e2a0e7f73eaff2b # v0.3.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
assets: "/tmp/protobom-cel-$TAG.spdx.json"
sbom: false
27 changes: 27 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# If you prefer the allow list template instead of the deny list, see community template:
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
#
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib

# Test binary, built with `go test -c`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Dependency directories (remove the comment below to include it)
# vendor/

# Go workspace file
go.work
dist
go.work.sum

# env file
.env
tmp/
180 changes: 180 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,180 @@
---
run:
concurrency: 6
timeout: 5m
issues:
exclude-dirs:
- tmp/*
exclude-rules:
# counterfeiter fakes are usually named 'fake_<something>.go'
- path: fake_.*\.go
linters:
- gocritic
- golint
- dupl

# Maximum issues count per one linter. Set to 0 to disable. Default is 50.
max-issues-per-linter: 0

# Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
max-same-issues: 0
linters:
disable-all: true
enable:
- asciicheck
- bodyclose
# - depguard
- dogsled
- dupl
- durationcheck
- errcheck
# - goconst Disabled temporarily as we need to const away all the relationships
- gocritic
# - gocyclo Disables until some functions are optimized
- godox
- gofmt
- gofumpt
- goheader
- goimports
- gomoddirectives
- gomodguard
- goprintffuncname
- gosec
- gosimple
- govet
- importas
- ineffassign
- makezero
- misspell
- nakedret
- nolintlint
- prealloc
- predeclared
- promlinter
- revive # Disabled for now as we have lots of uppercase consts
- staticcheck
- stylecheck
- typecheck
- unconvert
- unparam
- unused
- whitespace
# - cyclop
# - errorlint
# - exhaustive
# - exhaustivestruct
# - exportloopref
# - forbidigo
# - forcetypeassert
# - funlen
- gci
# - gochecknoglobals
# - gochecknoinits
# - gocognit
# - godot
# - goerr113
# - gomnd
# - ifshort
# - lll
# - nestif
# - nilerr
# - nlreturn

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you want to enable this, or no? Up to you, just following up from my other comment

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nlreturn? I just tried it and it highlighted a ton of issues, I'm not sure I want to deal with those now :S

# - noctx
# - paralleltest
# - scopelint
# - tagliatelle
# - testpackage
# - thelper
# - tparallel
# - wastedassign
# - wrapcheck
# - wsl
linters-settings:
depguard:
list-type: blacklist
include-go-root: true
include-go-std-lib: true
gci:
no-inline-comments: false
no-prefix-comments: true
sections:
- standard
- default
- prefix(github.com/protobom/cel)

section-separators:
- newLine
godox:
keywords:
- BUG
- FIXME
- HACK
errcheck:
check-type-assertions: true
check-blank: true
gocritic:
enabled-checks:
# Diagnostic
- commentedOutCode
- nilValReturn
- sloppyReassign
- weakCond
- octalLiteral

# Performance
- appendCombine
- equalFold
- hugeParam
- indexAlloc
- rangeExprCopy
- rangeValCopy

# Style
- boolExprSimplify
- commentedOutImport
- docStub
- emptyFallthrough
- emptyStringTest
- hexLiteral
- methodExprCall
- stringXbytes
- typeAssertChain
- unlabelStmt
- yodaStyleExpr
# - ifElseChain

# Opinionated
- builtinShadow
- importShadow
- initClause
- nestingReduce
- paramTypeCombine
- ptrToRefParam
- typeUnparen
- unnamedResult
- unnecessaryBlock
nolintlint:
# Enable to ensure that nolint directives are all used. Default is true.
allow-unused: false
# Disable to ensure that nolint directives don't have a leading space. Default is true.
# TODO(lint): Enforce machine-readable `nolint` directives
allow-leading-space: true
# Exclude following linters from requiring an explanation. Default is [].
allow-no-explanation: []
# Enable to require an explanation of nonzero length after each nolint directive. Default is false.
# TODO(lint): Enforce explanations for `nolint` directives
require-explanation: false
# Enable to require nolint directives to mention the specific linter being suppressed. Default is false.
require-specific: true
revive:
enable-all-rules: true
rules:
- name: add-constant
arguments:
- allowInts: "0,1,2,3,4,5,6,7,8,9"
- name: line-length-limit
disabled: true
- name: function-length
disabled: true
- name: cognitive-complexity
disabled: true
Loading