mirror of
https://github.com/containers/podman.git
synced 2025-10-17 03:04:21 +08:00
Enable more golangci-lint linters
Cleanup the golangci.yml file and enable more linters. `pkg/spec` and `iopodman.io` is history. The vendor directory is excluded by default. The dependencies dir was listed twice. Fix the reported problems in `pkg/specgen` because that was also excluded by `pkg/spec`. Enable the structcheck, typecheck, varcheck, deadcode and depguard linters. [NO TESTS NEEDED] Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
This commit is contained in:
@ -19,7 +19,6 @@ func exclusivePodOptions(opt1, opt2 string) error {
|
||||
|
||||
// Validate verifies the input is valid
|
||||
func (p *PodSpecGenerator) Validate() error {
|
||||
|
||||
if rootless.IsRootless() && len(p.CNINetworks) == 0 {
|
||||
if p.StaticIP != nil {
|
||||
return ErrNoStaticIPRootless
|
||||
|
Reference in New Issue
Block a user