Skip to content

Commit

Permalink
Update Capslock configuration to cover all packages
Browse files Browse the repository at this point in the history
After adding Capslock in 6873167 the
project was split into multiple `package`s to separate the library from
the CLI in 6e9bb3c. This change caused
a loss of coverage by Capslock which, by default, only reports on the
capabilities of the current `package`. Thus, prior to this change, it
missed the package in `./cmd/ades` (hence the large number of lines
removed in the latter referenced commit).

This fixes that leveraging Capslock's `-packages` flag which support the
standard Go './...' syntax to cover all packages under the current dir.

Signed-off-by: Eric Cornelissen <ericornelissen@gmail.com>
  • Loading branch information
ericcornelissen committed Mar 23, 2024
1 parent a5b9363 commit accf39d
Show file tree
Hide file tree
Showing 2 changed files with 2,030 additions and 133 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ audit: audit-capabilities audit-vulnerabilities ## Audit the codebase
audit-capabilities: ## Audit for capabilities
@echo 'Checking capabilities...'
@go run github.com/google/capslock/cmd/capslock \
-packages ./... \
-noisy \
-output=compare capabilities.json

Expand All @@ -44,6 +45,7 @@ audit-vulnerabilities: ## Audit for vulnerabilities
update-capabilities:
@echo 'Updating capabilities...'
@go run github.com/google/capslock/cmd/capslock \
-packages ./... \
-noisy \
-output json >capabilities.json

Expand Down
Loading

0 comments on commit accf39d

Please sign in to comment.