DockerCLI/cli/compose/loader
Sebastiaan van Stijn 42ad2446e0
cli/compose/loader: Using a reference for the variable on range scope `overrideService` (scopelint)
```
cli/compose/loader/merge.go:64:41: Using a reference for the variable on range scope `overrideService` (scopelint)
			if err := mergo.Merge(&baseService, &overrideService, mergo.WithAppendSlice, mergo.WithOverride, mergo.WithTransformers(specials)); err != nil {
			                                     ^
cli/compose/loader/loader_test.go:1587:28: Using the variable on range scope `testcase` in function literal (scopelint)
			config, err := loadYAML(testcase.yaml)
			                        ^
cli/compose/loader/loader_test.go:1590:58: Using the variable on range scope `testcase` in function literal (scopelint)
			assert.Check(t, is.DeepEqual(config.Services[0].Init, testcase.init))
			                                                      ^
```

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 96ec7299d8)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-01-06 13:16:53 +01:00
..
example1.env Import docker/docker/cli 2017-04-17 17:40:59 -04:00
example2.env Import docker/docker/cli 2017-04-17 17:40:59 -04:00
full-example.yml Add systctl support for services 2019-03-19 13:33:32 +01:00
full-struct_test.go Add systctl support for services 2019-03-19 13:33:32 +01:00
interpolate.go Rollback config type interpolation on fields "parallelism" and "max_failure_ratio" were missing, as it uses the same type as update_config. 2019-07-03 19:20:41 +02:00
loader.go compose/loader: define type for transformer-functions 2020-01-06 13:16:40 +01:00
loader_test.go cli/compose/loader: Using a reference for the variable on range scope `overrideService` (scopelint) 2020-01-06 13:16:53 +01:00
merge.go cli/compose/loader: Using a reference for the variable on range scope `overrideService` (scopelint) 2020-01-06 13:16:53 +01:00
merge_test.go Update tests to use gotest.tools 👼 2018-06-08 18:24:26 +02:00
types_test.go Allow marshalling of Compose config to JSON 2018-09-10 11:16:05 -07:00
volume.go Support parsing of named pipes for compose volumes. 2017-09-26 11:24:23 -04:00
volume_test.go Update tests to use gotest.tools 👼 2018-06-08 18:24:26 +02:00
windows_path.go Detect Windows absolute paths on non-Windows CLI 2019-07-10 23:40:22 +02:00
windows_path_test.go compose/loader: fix TestIsAbs not testing all combinations 2020-01-06 13:16:21 +01:00