mirror of
https://github.com/containers/buildah.git
synced 2025-07-31 15:24:26 +03:00
CI: enable the whitespace linter
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
This commit is contained in:
@ -13,3 +13,4 @@ linters:
|
||||
- revive
|
||||
- unconvert
|
||||
- unparam
|
||||
- whitespace
|
||||
|
1
add.go
1
add.go
@ -689,7 +689,6 @@ func (b *Builder) userForRun(mountPoint string, userspec string) (specs.User, st
|
||||
} else {
|
||||
u.AdditionalGids = groups
|
||||
}
|
||||
|
||||
}
|
||||
return u, homeDir, err
|
||||
}
|
||||
|
@ -386,7 +386,6 @@ func updateHealthcheck(builder *buildah.Builder, c *cobra.Command, iopts configR
|
||||
healthcheck.Retries = iopts.healthcheckRetries
|
||||
args = args + "--retries=" + strconv.Itoa(iopts.healthcheckRetries) + " "
|
||||
// args = fmt.Sprintf("%s --retries=%d ", args, iopts.healthcheckRetries)
|
||||
|
||||
}
|
||||
if c.Flag("healthcheck-start-period").Changed {
|
||||
duration, err := time.ParseDuration(iopts.healthcheckStartPeriod)
|
||||
|
@ -70,7 +70,6 @@ func init() {
|
||||
if err != nil {
|
||||
logrus.Error(err.Error())
|
||||
os.Exit(1)
|
||||
|
||||
}
|
||||
|
||||
if len(storageOptions.GraphDriverOptions) > 0 {
|
||||
|
@ -505,7 +505,6 @@ func (b *Builder) Commit(ctx context.Context, dest types.ImageReference, options
|
||||
return imgID, nil, "", err
|
||||
}
|
||||
logrus.Debugf("added imgID %s to manifestID %s", imgID, manifestID)
|
||||
|
||||
}
|
||||
return imgID, ref, manifestDigest, nil
|
||||
}
|
||||
|
1
new.go
1
new.go
@ -243,7 +243,6 @@ func newBuilder(ctx context.Context, store storage.Store, options BuilderOptions
|
||||
|
||||
suffixDigitsModulo := 100
|
||||
for {
|
||||
|
||||
var flags map[string]interface{}
|
||||
// check if we have predefined ProcessLabel and MountLabel
|
||||
// this could be true if this is another stage in a build
|
||||
|
@ -60,7 +60,6 @@ func GenBuildOptions(c *cobra.Command, inputArgs []string, iopts BuildOptions) (
|
||||
if c.Flag("dns-search").Changed {
|
||||
return options, nil, nil, errors.New("the --dns-search option cannot be used with --network=none")
|
||||
}
|
||||
|
||||
}
|
||||
if c.Flag("tag").Changed {
|
||||
tags = iopts.Tag
|
||||
|
@ -23,7 +23,6 @@ func testFlagCompletion(t *testing.T, flags pflag.FlagSet, flagCompletions compl
|
||||
t.Errorf(`Flag %q is a bool flag but has a shell completion function set.
|
||||
You have to remove this shell completion function.`, f.Name)
|
||||
return
|
||||
|
||||
}
|
||||
})
|
||||
|
||||
|
@ -250,7 +250,6 @@ func parseSecurityOpts(securityOpts []string, commonOpts *define.CommonBuildOpti
|
||||
default:
|
||||
return fmt.Errorf("invalid --security-opt 2: %q", opt)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if commonOpts.SeccompProfilePath == "" {
|
||||
@ -1293,7 +1292,6 @@ func Secrets(secrets []string) (map[string]define.Secret, error) {
|
||||
SourceType: typ,
|
||||
}
|
||||
parsed[id] = newSecret
|
||||
|
||||
}
|
||||
return parsed, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user