Skip to content

Commit

Permalink
Refactor sbom gen and exclude tmp/
Browse files Browse the repository at this point in the history
Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
  • Loading branch information
puerco committed Jan 16, 2025
1 parent 8e9bce4 commit 75d4ed1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ go.work.sum

# env file
.env
tmp/
4 changes: 3 additions & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ run:
concurrency: 6
timeout: 5m
issues:
exclude-dirs:
- tmp/*
exclude-rules:
# counterfeiter fakes are usually named 'fake_<something>.go'
- path: fake_.*\.go
Expand Down Expand Up @@ -169,7 +171,7 @@ linters-settings:
rules:
- name: add-constant
arguments:
- allowInts: "0"
- allowInts: "0,1,2,3,4,5,6,7,8,9"
- name: line-length-limit
disabled: true
- name: function-length
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ test:

.PHONY: sbom
sbom:
cd dist && bom generate -c ../.bom.yaml -o sbom.spdx.json --format=json
mkdir dist || :
bom generate -c .bom.yaml -o dist/protobom-cel.spdx.json --format=json

0 comments on commit 75d4ed1

Please sign in to comment.