Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use US English instead of UK English #1186

Merged
merged 1 commit into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/ifelse/doc.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Package ifelse provides helpers for analysing the control flow in if-else chains,
// Package ifelse provides helpers for analyzing the control flow in if-else chains,
// presently used by the following rules:
// - early-return
// - indent-error-flow
Expand Down
4 changes: 2 additions & 2 deletions rule/bare_return.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ type bareReturnFinder struct {
func (w bareReturnFinder) Visit(node ast.Node) ast.Visitor {
_, ok := node.(*ast.FuncLit)
if ok {
// skip analysing function literals
// they will be analysed by the lintBareReturnRule.Visit method
// skip analyzing function literals
// they will be analyzed by the lintBareReturnRule.Visit method
return nil
}

Expand Down
2 changes: 1 addition & 1 deletion rule/early_return.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func (*EarlyReturnRule) checkIfElse(chain ifelse.Chain, args ifelse.Args) (strin

if chain.HasPriorNonDeviating && !chain.If.IsEmpty() {
// if we de-indent this block then a previous branch
// might flow into it, affecting program behaviour
// might flow into it, affecting program behavior
return "", false
}

Expand Down
2 changes: 1 addition & 1 deletion rule/indent_error_flow.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func (*IndentErrorFlowRule) checkIfElse(chain ifelse.Chain, args ifelse.Args) (s

if chain.HasPriorNonDeviating {
// if we de-indent the "else" block then a previous branch
// might flow into it, affecting program behaviour
// might flow into it, affecting program behavior
return "", false
}

Expand Down
2 changes: 1 addition & 1 deletion rule/superfluous_else.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (*SuperfluousElseRule) checkIfElse(chain ifelse.Chain, args ifelse.Args) (s

if chain.HasPriorNonDeviating {
// if we de-indent the "else" block then a previous branch
// might flow into it, affecting program behaviour
// might flow into it, affecting program behavior
return "", false
}

Expand Down
Loading