Skip to content

Commit

Permalink
Adding spellcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
safaci2000 committed Sep 28, 2023
1 parent 8421dfa commit aedf7b0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ tasks:
desc: "Install required Dev tools by GDG"
cmds:
- go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
- go install github.com/client9/misspell/cmd/misspell@latest
format:
desc: "Format code"
cmds:
Expand All @@ -27,6 +28,10 @@ tasks:
desc: "Lint project, skipping test files."
cmds:
- golangci-lint run --skip-dirs "(^|/)test($|/)" --skip-files "_test.go" ./...
spellcheck:
desc: "Check Spelling across code"
cmds:
- misspell . | grep -v "website"
lint_tests:
desc: "Lint project, including test files."
cmds:
Expand Down
2 changes: 1 addition & 1 deletion cmd/tools/organizations.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func newSetOrgCmd() simplecobra.Commander {
if err != nil {
log.WithError(err).Fatal("unable to set Org ID")
}
log.Infof("Succesfully set Org ID for context: %s", config.Config().AppConfig.GetContext())
log.Infof("Successfully set Org ID for context: %s", config.Config().AppConfig.GetContext())
return nil

},
Expand Down
2 changes: 1 addition & 1 deletion internal/service/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func CreateDestinationPath(v string) {
}
}

// getFolderFromResourcePath if a use encodes a path seperator in path, we can't determine the folder name. This strips away
// getFolderFromResourcePath if a use encodes a path separator in path, we can't determine the folder name. This strips away
// all the known components of a resource type leaving only the folder name.
func getFolderFromResourcePath(storageEngine string, filePath string, resourceType config.ResourceType) (string, error) {
basePath := fmt.Sprintf("%s/", config.Config().GetDefaultGrafanaConfig().GetPath(config.DashboardResource))
Expand Down
2 changes: 1 addition & 1 deletion internal/service/organizations.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func (s *DashNGoImpl) UploadOrganizations() []string {
continue
}
if _, ok := orgMap[newOrg.Name]; ok {
log.Infof("Organizaiton %s already exists, skipping", newOrg.Name)
log.Infof("Organization %s already exists, skipping", newOrg.Name)
continue
}

Expand Down

0 comments on commit aedf7b0

Please sign in to comment.