mirror of
https://github.com/containers/podman.git
synced 2025-08-06 03:19:52 +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:
@ -29,7 +29,6 @@ func exclusiveOptions(opt1, opt2 string) error {
|
||||
// Validate verifies that the given SpecGenerator is valid and satisfies required
|
||||
// input for creating a container.
|
||||
func (s *SpecGenerator) Validate() error {
|
||||
|
||||
if rootless.IsRootless() && len(s.CNINetworks) == 0 {
|
||||
if s.StaticIP != nil || s.StaticIPv6 != nil {
|
||||
return ErrNoStaticIPRootless
|
||||
|
Reference in New Issue
Block a user