builder/dockerfile/internals_windows.go
Function parseChownFlag
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func parseChownFlag(ctx context.Context, builder *Builder, state *dispatchState, chown, ctrRootPath string, identityMapping idtools.IdentityMapping) (idtools.Identity, error) {
Function getAccountIdentity
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func getAccountIdentity(ctx context.Context, builder *Builder, accountName string, ctrRootPath string, state *dispatchState) (idtools.Identity, error) {
Function lookupNTAccount
has 5 return statements (exceeds 4 allowed). Open
Open
func lookupNTAccount(ctx context.Context, builder *Builder, accountName string, state *dispatchState) (idtools.Identity, error) {
source, _ := filepath.Split(os.Args[0])
target := "C:\\Docker"
targetExecutable := target + "\\containerutility.exe"
Function getAccountIdentity
has 5 return statements (exceeds 4 allowed). Open
Open
func getAccountIdentity(ctx context.Context, builder *Builder, accountName string, ctrRootPath string, state *dispatchState) (idtools.Identity, error) {
// If this is potentially a string SID then attempt to convert it to verify
// this, otherwise continue looking for the account.
if strings.HasPrefix(accountName, "S-") || strings.HasPrefix(accountName, "s-") {
sid, err := windows.StringToSid(accountName)