Skip to content

Commit 35fb9d3

Browse files
eduherminiocmaglie
authored andcommitted
Minor style changes in code documentation
1 parent f8e52e2 commit 35fb9d3

File tree

31 files changed

+65
-65
lines changed

31 files changed

+65
-65
lines changed

arduino/cores/tools.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import (
3030
// Tool represents a single Tool, part of a Package.
3131
type Tool struct {
3232
Name string `json:"name,required"` // The Name of the Tool.
33-
Releases map[string]*ToolRelease `json:"releases"` //Maps Version to Release.
33+
Releases map[string]*ToolRelease `json:"releases"` // Maps Version to Release.
3434
Package *Package `json:"-"`
3535
}
3636

builder_client_helpers/alive.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func (c *Client) PingAlive(ctx context.Context, path string) (*http.Response, er
3838
return c.Client.Do(ctx, req)
3939
}
4040

41-
// NewPingAliveRequest create the request corresponding to the ping action endpoint of the alive resource.
41+
// NewPingAliveRequest creates the request corresponding to the ping action endpoint of the alive resource.
4242
func (c *Client) NewPingAliveRequest(ctx context.Context, path string) (*http.Request, error) {
4343
scheme := c.Scheme
4444
if scheme == "" {

builder_client_helpers/boards.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func (c *Client) ListBoards(ctx context.Context, path string) (*http.Response, e
3838
return c.Client.Do(ctx, req)
3939
}
4040

41-
// NewListBoardsRequest create the request corresponding to the list action endpoint of the boards resource.
41+
// NewListBoardsRequest creates the request corresponding to the list action endpoint of the boards resource.
4242
func (c *Client) NewListBoardsRequest(ctx context.Context, path string) (*http.Request, error) {
4343
scheme := c.Scheme
4444
if scheme == "" {
@@ -69,7 +69,7 @@ func (c *Client) ShowBoards(ctx context.Context, path string) (*http.Response, e
6969
return c.Client.Do(ctx, req)
7070
}
7171

72-
// NewShowBoardsRequest create the request corresponding to the show action endpoint of the boards resource.
72+
// NewShowBoardsRequest creates the request corresponding to the show action endpoint of the boards resource.
7373
func (c *Client) NewShowBoardsRequest(ctx context.Context, path string) (*http.Request, error) {
7474
scheme := c.Scheme
7575
if scheme == "" {

builder_client_helpers/boards_v2.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func ByVidPidBoardsV2Path(vid string, pid string) string {
3333
return fmt.Sprintf("/builder/v2/boards/byVidPid/%s/%s", param0, param1)
3434
}
3535

36-
// Provides the board identified by the :vid and :pid params. Doesn't require authentication.
36+
// ByVidPidBoardsV2 provides the board identified by the :vid and :pid params. Doesn't require authentication.
3737
func (c *Client) ByVidPidBoardsV2(ctx context.Context, path string) (*http.Response, error) {
3838
req, err := c.NewByVidPidBoardsV2Request(ctx, path)
3939
if err != nil {
@@ -42,7 +42,7 @@ func (c *Client) ByVidPidBoardsV2(ctx context.Context, path string) (*http.Respo
4242
return c.Client.Do(ctx, req)
4343
}
4444

45-
// NewByVidPidBoardsV2Request create the request corresponding to the byVidPid action endpoint of the boards_v2 resource.
45+
// NewByVidPidBoardsV2Request creates the request corresponding to the byVidPid action endpoint of the boards_v2 resource.
4646
func (c *Client) NewByVidPidBoardsV2Request(ctx context.Context, path string) (*http.Request, error) {
4747
scheme := c.Scheme
4848
if scheme == "" {
@@ -62,7 +62,7 @@ func ListBoardsV2Path() string {
6262
return fmt.Sprintf("/builder/v2/boards")
6363
}
6464

65-
// Provides a list of all the boards supported by Arduino Create. Doesn't require any authentication.
65+
// ListBoardsV2 provides a list of all the boards supported by Arduino Create. Doesn't require any authentication.
6666
func (c *Client) ListBoardsV2(ctx context.Context, path string, limit *int, offset *int) (*http.Response, error) {
6767
req, err := c.NewListBoardsV2Request(ctx, path, limit, offset)
6868
if err != nil {
@@ -71,7 +71,7 @@ func (c *Client) ListBoardsV2(ctx context.Context, path string, limit *int, offs
7171
return c.Client.Do(ctx, req)
7272
}
7373

74-
// NewListBoardsV2Request create the request corresponding to the list action endpoint of the boards_v2 resource.
74+
// NewListBoardsV2Request creates the request corresponding to the list action endpoint of the boards_v2 resource.
7575
func (c *Client) NewListBoardsV2Request(ctx context.Context, path string, limit *int, offset *int) (*http.Request, error) {
7676
scheme := c.Scheme
7777
if scheme == "" {
@@ -102,7 +102,7 @@ func ShowBoardsV2Path(fqbn string) string {
102102
return fmt.Sprintf("/builder/v2/boards/%s", param0)
103103
}
104104

105-
// Provides the board identified by an fqbn. Doesn't require authentication.
105+
// ShowBoardsV2 provides the board identified by an fqbn. Doesn't require authentication.
106106
func (c *Client) ShowBoardsV2(ctx context.Context, path string) (*http.Response, error) {
107107
req, err := c.NewShowBoardsV2Request(ctx, path)
108108
if err != nil {
@@ -111,7 +111,7 @@ func (c *Client) ShowBoardsV2(ctx context.Context, path string) (*http.Response,
111111
return c.Client.Do(ctx, req)
112112
}
113113

114-
// NewShowBoardsV2Request create the request corresponding to the show action endpoint of the boards_v2 resource.
114+
// NewShowBoardsV2Request creates the request corresponding to the show action endpoint of the boards_v2 resource.
115115
func (c *Client) NewShowBoardsV2Request(ctx context.Context, path string) (*http.Request, error) {
116116
scheme := c.Scheme
117117
if scheme == "" {

builder_client_helpers/compilations.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func (c *Client) StartCompilations(ctx context.Context, path string, payload *Co
4242
return c.Client.Do(ctx, req)
4343
}
4444

45-
// NewStartCompilationsRequest create the request corresponding to the start action endpoint of the compilations resource.
45+
// NewStartCompilationsRequest creates the request corresponding to the start action endpoint of the compilations resource.
4646
func (c *Client) NewStartCompilationsRequest(ctx context.Context, path string, payload *Compilation) (*http.Request, error) {
4747
var body bytes.Buffer
4848
err := c.Encoder.Encode(payload, &body, "*/*")

builder_client_helpers/examples.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func (c *Client) ListExamples(ctx context.Context, path string, maintainer *stri
3838
return c.Client.Do(ctx, req)
3939
}
4040

41-
// NewListExamplesRequest create the request corresponding to the list action endpoint of the examples resource.
41+
// NewListExamplesRequest creates the request corresponding to the list action endpoint of the examples resource.
4242
func (c *Client) NewListExamplesRequest(ctx context.Context, path string, maintainer *string, libType *string) (*http.Request, error) {
4343
scheme := c.Scheme
4444
if scheme == "" {

builder_client_helpers/files.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func (c *Client) ShowFiles(ctx context.Context, path string) (*http.Response, er
3838
return c.Client.Do(ctx, req)
3939
}
4040

41-
// NewShowFilesRequest create the request corresponding to the show action endpoint of the files resource.
41+
// NewShowFilesRequest creates the request corresponding to the show action endpoint of the files resource.
4242
func (c *Client) NewShowFilesRequest(ctx context.Context, path string) (*http.Request, error) {
4343
scheme := c.Scheme
4444
if scheme == "" {

builder_client_helpers/libraries.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func (c *Client) ListLibraries(
4242
return c.Client.Do(ctx, req)
4343
}
4444

45-
// NewListLibrariesRequest create the request corresponding to the list action endpoint of the libraries resource.
45+
// NewListLibrariesRequest creates the request corresponding to the list action endpoint of the libraries resource.
4646
func (c *Client) NewListLibrariesRequest(ctx context.Context, path string, maintainer *string, libType *string, withoutType *string) (*http.Request, error) {
4747
scheme := c.Scheme
4848
if scheme == "" {
@@ -73,7 +73,7 @@ func ShowLibrariesPath(id string) string {
7373
}
7474

7575
// ShowLibraries provides the library identified by the :id and :pid param. Doesn't require authentication.
76-
// Also contains a list of other versions of the library
76+
// Also contains a list of other versions of the library.
7777
func (c *Client) ShowLibraries(ctx context.Context, path string) (*http.Response, error) {
7878
req, err := c.NewShowLibrariesRequest(ctx, path)
7979
if err != nil {
@@ -82,7 +82,7 @@ func (c *Client) ShowLibraries(ctx context.Context, path string) (*http.Response
8282
return c.Client.Do(ctx, req)
8383
}
8484

85-
// NewShowLibrariesRequest create the request corresponding to the show action endpoint of the libraries resource.
85+
// NewShowLibrariesRequest creates the request corresponding to the show action endpoint of the libraries resource.
8686
func (c *Client) NewShowLibrariesRequest(ctx context.Context, path string) (*http.Request, error) {
8787
scheme := c.Scheme
8888
if scheme == "" {

builder_client_helpers/pinned_libraries.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func AddPinnedLibrariesPath(id string) string {
3131
return fmt.Sprintf("/builder/pinned/%s", param0)
3232
}
3333

34-
//AddPinnedLibraries adds a new library to the list of libraries pinned by the user
34+
// AddPinnedLibraries adds a new library to the list of libraries pinned by the user
3535
func (c *Client) AddPinnedLibraries(ctx context.Context, path string) (*http.Response, error) {
3636
req, err := c.NewAddPinnedLibrariesRequest(ctx, path)
3737
if err != nil {
@@ -40,7 +40,7 @@ func (c *Client) AddPinnedLibraries(ctx context.Context, path string) (*http.Res
4040
return c.Client.Do(ctx, req)
4141
}
4242

43-
// NewAddPinnedLibrariesRequest create the request
43+
// NewAddPinnedLibrariesRequest creates the request
4444
// corresponding to the add action endpoint of the pinnedLibraries resource.
4545
func (c *Client) NewAddPinnedLibrariesRequest(ctx context.Context, path string) (*http.Request, error) {
4646
scheme := c.Scheme
@@ -63,7 +63,7 @@ func ListPinnedLibrariesPath() string {
6363
return fmt.Sprintf("/builder/pinned")
6464
}
6565

66-
//ListPinnedLibraries provides a list of all the libraries pinned by the user
66+
// ListPinnedLibraries provides a list of all the libraries pinned by the user
6767
func (c *Client) ListPinnedLibraries(ctx context.Context, path string) (*http.Response, error) {
6868
req, err := c.NewListPinnedLibrariesRequest(ctx, path)
6969
if err != nil {
@@ -72,7 +72,7 @@ func (c *Client) ListPinnedLibraries(ctx context.Context, path string) (*http.Re
7272
return c.Client.Do(ctx, req)
7373
}
7474

75-
// NewListPinnedLibrariesRequest create the request corresponding to the list action endpoint of the pinnedLibraries resource.
75+
// NewListPinnedLibrariesRequest creates the request corresponding to the list action endpoint of the pinnedLibraries resource.
7676
func (c *Client) NewListPinnedLibrariesRequest(ctx context.Context, path string) (*http.Request, error) {
7777
scheme := c.Scheme
7878
if scheme == "" {
@@ -96,7 +96,7 @@ func RemovePinnedLibrariesPath(id string) string {
9696
return fmt.Sprintf("/builder/pinned/%s", param0)
9797
}
9898

99-
//RemovePinnedLibraries removes a library to the list of libraries pinned by the user
99+
// RemovePinnedLibraries removes a library to the list of libraries pinned by the user
100100
func (c *Client) RemovePinnedLibraries(ctx context.Context, path string) (*http.Response, error) {
101101
req, err := c.NewRemovePinnedLibrariesRequest(ctx, path)
102102
if err != nil {
@@ -105,7 +105,7 @@ func (c *Client) RemovePinnedLibraries(ctx context.Context, path string) (*http.
105105
return c.Client.Do(ctx, req)
106106
}
107107

108-
// NewRemovePinnedLibrariesRequest create the request corresponding to the remove action endpoint of the pinnedLibraries resource.
108+
// NewRemovePinnedLibrariesRequest creates the request corresponding to the remove action endpoint of the pinnedLibraries resource.
109109
func (c *Client) NewRemovePinnedLibrariesRequest(ctx context.Context, path string) (*http.Request, error) {
110110
scheme := c.Scheme
111111
if scheme == "" {

commands/commands.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func InitPackageManager() *packagemanager.PackageManager {
105105
return pm
106106
}
107107

108-
// InitLibraryManager initialize the LibraryManager using the underlying packagemanager
108+
// InitLibraryManager initializes the LibraryManager using the underlying packagemanager
109109
func InitLibraryManager(pm *packagemanager.PackageManager) *librariesmanager.LibrariesManager {
110110
logrus.Info("Starting libraries manager")
111111
lm := librariesmanager.NewLibraryManager(

commands/generatedocs/generatedocs.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func generateBashCompletions(cmd *cobra.Command, args []string) {
6565
}
6666
}
6767

68-
// Generate man pages for all commands and puts them in $PROJECT_DIR/docs/manpages.
68+
// Generates man pages for all commands and puts them in $PROJECT_DIR/docs/manpages.
6969
func generateManPages(cmd *cobra.Command, args []string) {
7070
if outputDir == "" {
7171
outputDir = "docs/manpages"

common/formatter/README.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ var test TestType{
2727
2828
var testString = a.Format(test)
2929
fmt.Println(testString) // Prints test.String()
30-
a.Print(test) //does the same.
30+
a.Print(test) // Does the same.
3131
3232
testString = b.Format(test)
3333
fmt.Println(testString) // Prints { field1 : "test", field2 : "42" }
34-
b.Print(test) //Does the same
34+
b.Print(test) // Does the same
3535
----
3636

3737
=== The default formatter

common/formatter/output/common_structs.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"strings"
2323
)
2424

25-
//ProcessResult contains info about a completed process.
25+
// ProcessResult contains info about a completed process.
2626
type ProcessResult struct {
2727
ItemName string `json:"name,required"`
2828
Status string `json:"status,omitempty"`

create_client_helpers/alive.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func PingAlivePath() string {
3030
return fmt.Sprintf("/create/alive")
3131
}
3232

33-
// Returns 200 if the instance is healthy
33+
// Returns 200 if the instance is healthy.
3434
func (c *Client) PingAlive(ctx context.Context, path string) (*http.Response, error) {
3535
req, err := c.NewPingAliveRequest(ctx, path)
3636
if err != nil {
@@ -39,7 +39,7 @@ func (c *Client) PingAlive(ctx context.Context, path string) (*http.Response, er
3939
return c.Client.Do(ctx, req)
4040
}
4141

42-
// NewPingAliveRequest create the request corresponding to the ping action endpoint of the alive resource.
42+
// NewPingAliveRequest creates the request corresponding to the ping action endpoint of the alive resource.
4343
func (c *Client) NewPingAliveRequest(ctx context.Context, path string) (*http.Request, error) {
4444
scheme := c.Scheme
4545
if scheme == "" {

create_client_helpers/files.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func ShowFilesPath(fileType string, id string, name string) string {
3333
return fmt.Sprintf("/create/v1/files/%s/%s/%s", param0, param1, param2)
3434
}
3535

36-
// Provides the content of the file identified by :name and :id
36+
// ShowFiles provides the content of the file identified by :name and :id.
3737
func (c *Client) ShowFiles(ctx context.Context, path string) (*http.Response, error) {
3838
req, err := c.NewShowFilesRequest(ctx, path)
3939
if err != nil {
@@ -42,7 +42,7 @@ func (c *Client) ShowFiles(ctx context.Context, path string) (*http.Response, er
4242
return c.Client.Do(ctx, req)
4343
}
4444

45-
// NewShowFilesRequest create the request corresponding to the show action endpoint of the files resource.
45+
// NewShowFilesRequest creates the request corresponding to the show action endpoint of the files resource.
4646
func (c *Client) NewShowFilesRequest(ctx context.Context, path string) (*http.Request, error) {
4747
scheme := c.Scheme
4848
if scheme == "" {

create_client_helpers/sketches.go

+10-10
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const (
3636
prod = true
3737
)
3838

39-
// CreateSketches Adds a new sketch.
39+
// CreateSketches adds a new sketch.
4040
func (c *Client) CreateSketches(ctx context.Context, path string, payload *Sketch, authorization string) (*http.Response, error) {
4141
req, err := c.NewCreateSketchesRequest(ctx, path, payload, authorization)
4242
if err != nil {
@@ -45,7 +45,7 @@ func (c *Client) CreateSketches(ctx context.Context, path string, payload *Sketc
4545
return c.Client.Do(ctx, req)
4646
}
4747

48-
// NewCreateSketchesRequest create the request corresponding to the create action endpoint of the sketches resource.
48+
// NewCreateSketchesRequest creates the request corresponding to the create action endpoint of the sketches resource.
4949
func (c *Client) NewCreateSketchesRequest(ctx context.Context, path string, payload *Sketch, authorization string) (*http.Request, error) {
5050
var body bytes.Buffer
5151
err := c.Encoder.Encode(payload, &body, "*/*")
@@ -79,7 +79,7 @@ func DeleteSketchesPath(id string) string {
7979
return fmt.Sprintf("/create/v1/sketches/%s", id)
8080
}
8181

82-
// DeleteSketches Removes the sketch identified by the :id param.
82+
// DeleteSketches removes the sketch identified by the :id param.
8383
func (c *Client) DeleteSketches(ctx context.Context, path string, authorization string) (*http.Response, error) {
8484
req, err := c.NewDeleteSketchesRequest(ctx, path, authorization)
8585
if err != nil {
@@ -88,7 +88,7 @@ func (c *Client) DeleteSketches(ctx context.Context, path string, authorization
8888
return c.Client.Do(ctx, req)
8989
}
9090

91-
// NewDeleteSketchesRequest create the request corresponding to the delete action endpoint of the sketches resource.
91+
// NewDeleteSketchesRequest creates the request corresponding to the delete action endpoint of the sketches resource.
9292
func (c *Client) NewDeleteSketchesRequest(ctx context.Context, path string, authorization string) (*http.Request, error) {
9393
scheme := c.Scheme
9494
if scheme == "" {
@@ -118,7 +118,7 @@ func EditSketchesPath(id string) string {
118118
return fmt.Sprintf("/create/v1/sketches/%s", param0)
119119
}
120120

121-
// EditSketches Modifies the sketch identified by the :id param.
121+
// EditSketches modifies the sketch identified by the :id param.
122122
// If a file has a valid data field, it will be modified too.
123123
func (c *Client) EditSketches(ctx context.Context, path string, payload *Sketch, authorization string) (*http.Response, error) {
124124
req, err := c.NewEditSketchesRequest(ctx, path, payload, authorization)
@@ -128,7 +128,7 @@ func (c *Client) EditSketches(ctx context.Context, path string, payload *Sketch,
128128
return c.Client.Do(ctx, req)
129129
}
130130

131-
// NewEditSketchesRequest create the request corresponding to the edit action endpoint of the sketches resource.
131+
// NewEditSketchesRequest creates the request corresponding to the edit action endpoint of the sketches resource.
132132
func (c *Client) NewEditSketchesRequest(ctx context.Context, path string, payload *Sketch, authorization string) (*http.Request, error) {
133133
var body bytes.Buffer
134134
err := c.Encoder.Encode(payload, &body, "*/*")
@@ -162,7 +162,7 @@ func SearchSketchesPath() string {
162162
return fmt.Sprintf("/create/v1/sketches")
163163
}
164164

165-
// SearchSketches Provides a paginated list of sketches filtered according to the params. The page size is 100 items.
165+
// SearchSketches provides a paginated list of sketches filtered according to the params. The page size is 100 items.
166166
func (c *Client) SearchSketches(ctx context.Context, path string, offset *string, owner *string, authorization *string) (*http.Response, error) {
167167
req, err := c.NewSearchSketchesRequest(ctx, path, offset, owner, authorization)
168168
if err != nil {
@@ -171,7 +171,7 @@ func (c *Client) SearchSketches(ctx context.Context, path string, offset *string
171171
return c.Client.Do(ctx, req)
172172
}
173173

174-
// NewSearchSketchesRequest create the request corresponding to the search action endpoint of the sketches resource.
174+
// NewSearchSketchesRequest creates the request corresponding to the search action endpoint of the sketches resource.
175175
func (c *Client) NewSearchSketchesRequest(ctx context.Context, path string, offset *string, owner *string, authorization *string) (*http.Request, error) {
176176
scheme := c.Scheme
177177
if scheme == "" {
@@ -209,7 +209,7 @@ func ShowSketchesPath(id string) string {
209209
return fmt.Sprintf("/create/v1/sketches/%s", param0)
210210
}
211211

212-
// ShowSketches Provides the sketch identified by the :id param.
212+
// ShowSketches provides the sketch identified by the :id param.
213213
func (c *Client) ShowSketches(ctx context.Context, path string, authorization *string) (*http.Response, error) {
214214
req, err := c.NewShowSketchesRequest(ctx, path, authorization)
215215
if err != nil {
@@ -218,7 +218,7 @@ func (c *Client) ShowSketches(ctx context.Context, path string, authorization *s
218218
return c.Client.Do(ctx, req)
219219
}
220220

221-
// NewShowSketchesRequest create the request corresponding to the show action endpoint of the sketches resource.
221+
// NewShowSketchesRequest creates the request corresponding to the show action endpoint of the sketches resource.
222222
func (c *Client) NewShowSketchesRequest(ctx context.Context, path string, authorization *string) (*http.Request, error) {
223223
scheme := c.Scheme
224224
if scheme == "" {

create_client_helpers/user_types.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ type Sketch struct {
5454
Types []string `form:"types,omitempty" json:"types,omitempty" xml:"types,omitempty"`
5555
}
5656

57-
//ConvertFrom converts from a local sketch to an Arduino Create sketch.
57+
// ConvertFrom converts from a local sketch to an Arduino Create sketch.
5858
func ConvertFrom(sketch sketches.Sketch) *Sketch {
5959
_, inoPath := filepath.Split(sketch.Ino.Path)
6060
content, err := ioutil.ReadFile(filepath.Join(sketch.FullPath, inoPath))

vendor/github.com/arduino/arduino-builder/ctags/ctags_to_prototypes.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/arduino/arduino-builder/types/context.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)