mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 11:03:34 +00:00
chore: reformat code
This commit is contained in:
@@ -108,8 +108,8 @@ $(LINT_TARGETS): _lint
|
|||||||
lint: ARGS=
|
lint: ARGS=
|
||||||
lint-and-fix: ARGS=--fix
|
lint-and-fix: ARGS=--fix
|
||||||
_lint:
|
_lint:
|
||||||
# Explicitly set OS to Linux to not skip *_linux.go files when running on macOS.
|
# Explicitly set OS to Linux to not skip *_linux.go files when running on macOS.
|
||||||
# Uncloud daemon won't likely support OS other than Linux anytime soon, so for now we can rely on that.
|
# Uncloud daemon won't likely support OS other than Linux anytime soon, so for now we can rely on that.
|
||||||
GOOS=linux golangci-lint run $(ARGS)
|
GOOS=linux golangci-lint run $(ARGS)
|
||||||
|
|
||||||
.PHONY: docs-image-push
|
.PHONY: docs-image-push
|
||||||
|
|||||||
@@ -30,7 +30,6 @@ func TestMachineRename(t *testing.T) {
|
|||||||
// Select the second machine to rename
|
// Select the second machine to rename
|
||||||
originalMachine := machines[1]
|
originalMachine := machines[1]
|
||||||
originalName := originalMachine.Machine.Name
|
originalName := originalMachine.Machine.Name
|
||||||
// nolint:goconst
|
|
||||||
newName := "renamed-machine-1"
|
newName := "renamed-machine-1"
|
||||||
|
|
||||||
// Rename the machine
|
// Rename the machine
|
||||||
@@ -223,8 +222,6 @@ func TestUpdateMachine(t *testing.T) {
|
|||||||
// Select a machine to update
|
// Select a machine to update
|
||||||
targetMachine := machines[1]
|
targetMachine := machines[1]
|
||||||
originalName := targetMachine.Machine.Name
|
originalName := targetMachine.Machine.Name
|
||||||
//TODO: From my point of view, the most correct option is to use exclusions.rules list for `_test\.go$` files
|
|
||||||
// nolint:goconst
|
|
||||||
newName := "updated-machine-name"
|
newName := "updated-machine-name"
|
||||||
|
|
||||||
// Update the machine name using UpdateMachine directly
|
// Update the machine name using UpdateMachine directly
|
||||||
|
|||||||
Reference in New Issue
Block a user