Skip to content

Commit 24afb2d

Browse files
add space after comment //
1 parent d063f30 commit 24afb2d

File tree

9 files changed

+13
-13
lines changed

9 files changed

+13
-13
lines changed

arduino/builder/preprocessor/internal/ctags/ctags_parser.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
const kindPrototype = "prototype"
2626
const kindFunction = "function"
2727

28-
//const KIND_PROTOTYPE_MODIFIERS = "prototype_modifiers"
28+
// const KIND_PROTOTYPE_MODIFIERS = "prototype_modifiers"
2929

3030
const keywordTemplate = "template"
3131
const keywordStatic = "static"
@@ -101,7 +101,7 @@ func addPrototype(tag *Tag) {
101101
}
102102
tag.Prototype = code + ";"
103103
} else {
104-
//tag.Code is 99% multiline, recreate it
104+
// tag.Code is 99% multiline, recreate it
105105
code := findTemplateMultiline(tag)
106106
tag.Prototype = code + ";"
107107
}
@@ -128,7 +128,7 @@ func (p *Parser) removeDefinedProtypes() {
128128

129129
for _, tag := range p.tags {
130130
if definedPrototypes[tag.Prototype] {
131-
//if ctx.DebugLevel >= 10 {
131+
// if ctx.DebugLevel >= 10 {
132132
// ctx.GetLogger().Fprintln(os.Stdout, constants.LOG_LEVEL_DEBUG, constants.MSG_SKIPPING_TAG_ALREADY_DEFINED, tag.FunctionName)
133133
//}
134134
tag.SkipMe = true
@@ -154,7 +154,7 @@ func (p *Parser) skipTagsWhere(skipFunc skipFuncType) {
154154
for _, tag := range p.tags {
155155
if !tag.SkipMe {
156156
skip := skipFunc(tag)
157-
//if skip && p.debugLevel >= 10 {
157+
// if skip && p.debugLevel >= 10 {
158158
// ctx.GetLogger().Fprintln(os.Stdout, constants.LOG_LEVEL_DEBUG, constants.MSG_SKIPPING_TAG_WITH_REASON, tag.FunctionName, runtime.FuncForPC(reflect.ValueOf(skipFunc).Pointer()).Name())
159159
//}
160160
tag.SkipMe = skip

arduino/libraries/loader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func makeNewLibrary(libraryDir *paths.Path, location LibraryLocation) (*Library,
103103
version := strings.TrimSpace(libProperties.Get("version"))
104104
if v, err := semver.Parse(version); err != nil {
105105
// FIXME: do it in linter?
106-
//fmt.Printf("invalid version %s for library in %s: %s", version, libraryDir, err)
106+
// fmt.Printf("invalid version %s for library in %s: %s", version, libraryDir, err)
107107
} else {
108108
library.Version = v
109109
}

commands/debug/debug_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func TestGetCommandLine(t *testing.T) {
6666
defer release()
6767
command, err := getCommandLine(req, pme)
6868
require.Nil(t, err)
69-
commandToTest := strings.Join(command[:], " ")
69+
commandToTest := strings.Join(command, " ")
7070
require.Equal(t, filepath.FromSlash(goldCommand), filepath.FromSlash(commandToTest))
7171

7272
// Other samd boards such as mkr1000 can be debugged using an external tool such as Atmel ICE connected to
@@ -88,6 +88,6 @@ func TestGetCommandLine(t *testing.T) {
8888

8989
command2, err := getCommandLine(req2, pme)
9090
assert.Nil(t, err)
91-
commandToTest2 := strings.Join(command2[:], " ")
91+
commandToTest2 := strings.Join(command2, " ")
9292
assert.Equal(t, filepath.FromSlash(goldCommand2), filepath.FromSlash(commandToTest2))
9393
}

internal/cli/arguments/post_install.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626
// this information are consistent with each other.
2727
type PostInstallFlags struct {
2828
runPostInstall bool // force the execution of installation scripts
29-
skipPostInstall bool //skip the execution of installation scripts
29+
skipPostInstall bool // skip the execution of installation scripts
3030
}
3131

3232
// AddToCommand adds flags that can be used to force running or skipping

internal/cli/completion/completion.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
)
2626

2727
var (
28-
completionNoDesc bool //Disable completion description for shells that support it
28+
completionNoDesc bool // Disable completion description for shells that support it
2929
tr = i18n.Tr
3030
)
3131

internal/integrationtest/board/hardware_loading_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ func TestHardwareLoading(t *testing.T) {
151151
require.NoError(t, err)
152152
jsonOut := requirejson.Parse(t, out)
153153
if runtime.GOOS == "windows" {
154-
//a package is a symlink, and windows does not support them
154+
// a package is a symlink, and windows does not support them
155155
jsonOut.LengthMustEqualTo(2)
156156
} else {
157157
jsonOut.LengthMustEqualTo(3)

internal/integrationtest/core/core_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,7 @@ func TestCoreUpgradeWarningWithPackageInstalledButNotIndexed(t *testing.T) {
10561056
// install 3rd-party core outdated version
10571057
_, _, err = cli.Run("core", "install", "test:[email protected]", "--additional-urls="+url)
10581058
require.NoError(t, err)
1059-
//upgrade without index fires a warning
1059+
// upgrade without index fires a warning
10601060
jsonStdout, _, _ := cli.Run("core", "upgrade", "test:x86", "--format", "json")
10611061
requirejson.Query(t, jsonStdout, ".warnings[]", `"missing package index for test:x86, future updates cannot be guaranteed"`)
10621062
})

internal/integrationtest/outdated/outdated_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func TestOutdated(t *testing.T) {
2727
env, cli := integrationtest.CreateArduinoCLIWithEnvironment(t)
2828
defer env.CleanUp()
2929

30-
//Updates index for cores and libraries
30+
// Updates index for cores and libraries
3131
_, _, err := cli.Run("core", "update-index")
3232
require.NoError(t, err)
3333
_, _, err = cli.Run("lib", "update-index")

internal/integrationtest/upload/upload_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ type board struct {
4141
func detectedBoards(t *testing.T, cli *integrationtest.ArduinoCLI) []board {
4242
// This fixture provides a list of all the boards attached to the host.
4343
// This fixture will parse the JSON output of `arduino-cli board list --format json`
44-
//to extract all the connected boards data.
44+
// to extract all the connected boards data.
4545

4646
// :returns a list `Board` objects.
4747

0 commit comments

Comments
 (0)