Skip to content

Commit 758884c

Browse files
authored
docs: fix misspellings (used typos-cli for detecting) (#35)
1 parent 6dbc21e commit 758884c

File tree

22 files changed

+33
-33
lines changed

22 files changed

+33
-33
lines changed

ci/circleci/runner/src/circlerunner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def security_validation(self, file_path):
116116
"""validate file security for runner execution, besides file existence,
117117
the file needs to pass the following validation:
118118
1. it needs to be owned by root
119-
2. it needs to be only readable (and optionaly executable)
119+
2. it needs to be only readable (and optionally executable)
120120
by owner(root) (mode 500 or 400)
121121
"""
122122
self.logger.debug(f"validating script file {file_path}")

ci/circleci/runner/src/macrunner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def do_the_job(self, job_name, job_params):
9090
for local_path in files:
9191
self.upload_file_to_s3(source_file_path=local_path, s3_path=s3_path)
9292
else:
93-
raise Exception(f"unknow job to execute {job_name}")
93+
raise Exception(f"unknown job to execute {job_name}")
9494

9595
if __name__ == "__main__":
9696
parser = optparse.OptionParser()

cmd/auth/login_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ var mockOrgAuth = types.SlackAuth{
4040
}
4141
var mockOrgAuthURL = "https://url.com"
4242

43-
func TestLoginCommmand(t *testing.T) {
43+
func TestLoginCommand(t *testing.T) {
4444
testutil.TableTestCommand(t, testutil.CommandTests{
4545
"errors when the challenge flag is provided without the ticket flag": {
4646
CmdArgs: []string{"--challenge=achallengestring"},

cmd/datastore/query_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ func TestQueryCommand(t *testing.T) {
278278
Option: "status",
279279
Index: 0,
280280
}, nil)
281-
clientsMock.IO.On("SelectPrompt", mock.Anything, "Slect an attribute for '#task_id'", mock.Anything, iostreams.MatchPromptConfig(iostreams.SelectPromptConfig{
281+
clientsMock.IO.On("SelectPrompt", mock.Anything, "Select an attribute for '#task_id'", mock.Anything, iostreams.MatchPromptConfig(iostreams.SelectPromptConfig{
282282
Flag: clientsMock.Config.Flags.Lookup("attributes"),
283283
})).Return(iostreams.SelectPromptResponse{
284284
Prompt: true,

cmd/manifest/validate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ func newValidateLogger(clients *shared.ClientFactory, cmd *cobra.Command) *logge
124124
)
125125
}
126126

127-
// gatherAuthenticationToken returns some user token and configures authenication
127+
// gatherAuthenticationToken returns some user token and configures authentication
128128
// internals for API use
129129
func gatherAuthenticationToken(ctx context.Context, clients *shared.ClientFactory) (auth types.SlackAuth, err error) {
130130
defer func() {

cmd/project/create_samples.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func filterRepos(sampleRepos []create.GithubRepo, projectType string) []create.G
7474
return filteredRepos
7575
}
7676

77-
// sortRepos sorts the provided repostiories by the
77+
// sortRepos sorts the provided repositories by the
7878
// StargazersCount field in descending order
7979
func sortRepos(sampleRepos []create.GithubRepo) []create.GithubRepo {
8080
sortedRepos := sampleRepos

internal/api/workflows_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,8 +421,8 @@ func Test_API_WorkflowTriggersList(t *testing.T) {
421421
argsLimit: 4,
422422
argsCursor: "",
423423
argsType: "fake_type",
424-
httpResponseJSON: `{"ok":false,"error":"invaild_arguments"}`,
425-
expectedErrorContains: "invaild_arguments",
424+
httpResponseJSON: `{"ok":false,"error":"invalid_arguments"}`,
425+
expectedErrorContains: "invalid_arguments",
426426
},
427427
}
428428

internal/app/app.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ func regexReplaceAppNameInManifest(src []byte, appName string) []byte {
137137
//
138138
// Expression explained:
139139
// (?m) - Multi-line match that enables the use of ^ and $
140-
// #1 - Match $1 captures start of content to the `Manifest({` function with optional whitepsace between the name, bracket `(```, and brace `{`
140+
// #1 - Match $1 captures start of content to the `Manifest({` function with optional whitespace between the name, bracket `(```, and brace `{`
141141
// #2 - Continue match $1 unless a closing brace `}` is encountered
142142
// #3 - Continue match $1 to the `name` key surrounded by optional single or double quotes
143143
// #4 - Continue match $1 ignoring whitespace followed by a colon `:` and the opening single or double quotes of the string's value

internal/app/app_client_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ func TestAppClient_CleanupSlackFolder(t *testing.T) {
638638

639639
require.NoError(t, err)
640640
assert.False(t, ac.config.ProjectConfig.ProjectConfigJSONFileExists(wd),
641-
"an unexepcted config was found")
641+
"an unexpected config was found")
642642

643643
dotSlackFolder := filepath.Dir(pathToAppsJSON)
644644
_, err = ac.fs.Stat(dotSlackFolder)

internal/cmdutil/flags.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const (
2929
)
3030

3131
// OrgGrantWorkspaceDescription is the description for for --org-workspace-grant flag in the run, deploy and install commands
32-
// This vaue is a function so that formatting is applied for the help page (when style is enabled).
32+
// This value is a function so that formatting is applied for the help page (when style is enabled).
3333
var OrgGrantWorkspaceDescription = func() string {
3434
return fmt.Sprintf("grant access to a specific org workspace ID\n %s",
3535
style.Secondary("(or 'all' for all workspaces in the org)"))

0 commit comments

Comments
 (0)