builder/dockerfile/evaluator.go
Function dispatch
has 64 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func dispatch(ctx context.Context, d dispatchRequest, cmd instructions.Command) (err error) {
if c, ok := cmd.(instructions.PlatformSpecific); ok {
err := c.CheckPlatform(d.state.operatingSystem)
if err != nil {
return errdefs.InvalidParameter(err)
Function dispatch
has 6 return statements (exceeds 4 allowed). Open
Open
func dispatch(ctx context.Context, d dispatchRequest, cmd instructions.Command) (err error) {
if c, ok := cmd.(instructions.PlatformSpecific); ok {
err := c.CheckPlatform(d.state.operatingSystem)
if err != nil {
return errdefs.InvalidParameter(err)
Function newDispatchRequest
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func newDispatchRequest(builder *Builder, escapeToken rune, source builder.Source, buildArgs *BuildArgs, stages *stagesBuildResults) dispatchRequest {