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

lint: enable (some) gocritic checks #3238

Merged
merged 10 commits into from
Sep 17, 2024

gofumpt

5b484b6
Select commit
Loading
Failed to load commit list.
Merged

lint: enable (some) gocritic checks #3238

gofumpt
5b484b6
Select commit
Loading
Failed to load commit list.
Codecov / codecov/patch succeeded Sep 17, 2024 in 1s

41.37% of diff hit (target 0.00%)

View this Pull Request on Codecov

41.37% of diff hit (target 0.00%)

Annotations

Check warning on line 446 in cmd/crowdsec-cli/clibouncer/bouncers.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/crowdsec-cli/clibouncer/bouncers.go#L446

Added line #L446 was not covered by tests

Check warning on line 38 in cmd/crowdsec-cli/clihub/utils_table.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/crowdsec-cli/clihub/utils_table.go#L38

Added line #L38 was not covered by tests

Check warning on line 58 in cmd/crowdsec-cli/clihub/utils_table.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/crowdsec-cli/clihub/utils_table.go#L58

Added line #L58 was not covered by tests

Check warning on line 83 in cmd/crowdsec-cli/clihub/utils_table.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/crowdsec-cli/clihub/utils_table.go#L83

Added line #L83 was not covered by tests

Check warning on line 126 in cmd/crowdsec-cli/climachine/machines.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/crowdsec-cli/climachine/machines.go#L126

Added line #L126 was not covered by tests

Check warning on line 614 in cmd/crowdsec-cli/climachine/machines.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/crowdsec-cli/climachine/machines.go#L614

Added line #L614 was not covered by tests

Check warning on line 41 in cmd/crowdsec-cli/climetrics/statacquis.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/crowdsec-cli/climetrics/statacquis.go#L40-L41

Added lines #L40 - L41 were not covered by tests

Check warning on line 38 in cmd/crowdsec-cli/climetrics/statappsecengine.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/crowdsec-cli/climetrics/statappsecengine.go#L37-L38

Added lines #L37 - L38 were not covered by tests

Check warning on line 44 in cmd/crowdsec-cli/climetrics/statappsecrule.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/crowdsec-cli/climetrics/statappsecrule.go#L44

Added line #L44 was not covered by tests

Check warning on line 39 in cmd/crowdsec-cli/climetrics/statbucket.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/crowdsec-cli/climetrics/statbucket.go#L38-L39

Added lines #L38 - L39 were not covered by tests

Check warning on line 40 in cmd/crowdsec-cli/climetrics/statparser.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/crowdsec-cli/climetrics/statparser.go#L39-L40

Added lines #L39 - L40 were not covered by tests

Check warning on line 56 in cmd/crowdsec-cli/climetrics/statstash.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/crowdsec-cli/climetrics/statstash.go#L55-L56

Added lines #L55 - L56 were not covered by tests

Check warning on line 40 in cmd/crowdsec-cli/climetrics/statwhitelist.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/crowdsec-cli/climetrics/statwhitelist.go#L39-L40

Added lines #L39 - L40 were not covered by tests

Check warning on line 281 in pkg/acquisition/modules/journalctl/journalctl.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/acquisition/modules/journalctl/journalctl.go#L281

Added line #L281 was not covered by tests

Check warning on line 163 in pkg/apiserver/controllers/v1/decisions.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/apiserver/controllers/v1/decisions.go#L163

Added line #L163 was not covered by tests

Check warning on line 215 in pkg/apiserver/controllers/v1/decisions.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/apiserver/controllers/v1/decisions.go#L215

Added line #L215 was not covered by tests

Check warning on line 247 in pkg/apiserver/controllers/v1/decisions.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/apiserver/controllers/v1/decisions.go#L247

Added line #L247 was not covered by tests

Check warning on line 255 in pkg/apiserver/controllers/v1/decisions.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/apiserver/controllers/v1/decisions.go#L255

Added line #L255 was not covered by tests

Check warning on line 261 in pkg/apiserver/controllers/v1/decisions.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/apiserver/controllers/v1/decisions.go#L261

Added line #L261 was not covered by tests

Check warning on line 266 in pkg/apiserver/controllers/v1/decisions.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/apiserver/controllers/v1/decisions.go#L266

Added line #L266 was not covered by tests

Check warning on line 272 in pkg/apiserver/controllers/v1/decisions.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/apiserver/controllers/v1/decisions.go#L272

Added line #L272 was not covered by tests

Check warning on line 278 in pkg/apiserver/controllers/v1/decisions.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/apiserver/controllers/v1/decisions.go#L278

Added line #L278 was not covered by tests

Check warning on line 284 in pkg/apiserver/controllers/v1/decisions.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/apiserver/controllers/v1/decisions.go#L284

Added line #L284 was not covered by tests

Check warning on line 289 in pkg/apiserver/controllers/v1/decisions.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/apiserver/controllers/v1/decisions.go#L289

Added line #L289 was not covered by tests

Check warning on line 295 in pkg/apiserver/controllers/v1/decisions.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/apiserver/controllers/v1/decisions.go#L295

Added line #L295 was not covered by tests