Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Milchev <[email protected]>
  • Loading branch information
imilchev committed Oct 31, 2023
1 parent a185b7b commit 95bc46b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
1 change: 0 additions & 1 deletion .github/.golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ linters:
- unused
- gofmt
- staticcheck
# deactivated for now since its slow in github actions
- govet

linters-settings:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pr-extended-linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: Extended Linting
## Only trigger tests if source is changing
on:
pull_request:
# paths:
# - '**.go'
# - '**.mod'
# - 'go.sum'
paths:
- '**.go'
- '**.mod'
- 'go.sum'

jobs:
golangci-lint:
Expand Down
5 changes: 0 additions & 5 deletions apps/cnspec/cmd/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,6 @@ To manually configure a policy, use this:
os.Exit(0)
}

name := viper.GetString("name")
if name == "" {
name = "test"
}

viper.BindPFlag("platform-id", cmd.Flags().Lookup("platform-id"))

viper.BindPFlag("inventory-file", cmd.Flags().Lookup("inventory-file"))
Expand Down

0 comments on commit 95bc46b

Please sign in to comment.