Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
Signed-off-by: maxlandon <[email protected]>
  • Loading branch information
deining authored and maxlandon committed Aug 17, 2024
1 parent f290f1d commit 1db4ae0
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
steps:
# Checkout the repository to the GitHub Actions runner
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

# Execute Codacy Analysis CLI and generate a SARIF output with the security issues identified during the analysis
- name: Run Codacy Analysis CLI
Expand All @@ -56,6 +56,6 @@ jobs:

# Upload the SARIF file generated in the previous step
- name: Upload SARIF results file
uses: github/codeql-action/upload-sarif@v2
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: results.sarif
8 changes: 4 additions & 4 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -58,7 +58,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
Expand All @@ -71,6 +71,6 @@ jobs:
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
4 changes: 2 additions & 2 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: 'Dependency Review'
uses: actions/dependency-review-action@v2
uses: actions/dependency-review-action@v4
10 changes: 5 additions & 5 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,26 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.20.4
go-version: 1.22.6

- name: Build
run: go build -v ./...

- name: Run coverage
run: go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4

# windows:
# runs-on: windows-latest
#
# steps:
# - uses: actions/checkout@v3
# - uses: actions/checkout@v4
#
# - name: Set up Go
# uses: actions/setup-go@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ jobs:
pull-requests: write

steps:
- uses: actions/labeler@v4
- uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
2 changes: 1 addition & 1 deletion internal/completion/insert.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func (e *Engine) TrimSuffix() {
}

// But when the key is a space, we also drop the suffix matcher,
// beause the user is done with this precise completion (or group of).
// because the user is done with this precise completion (or group of).
if unicode.IsSpace(key) {
e.sm = SuffixMatcher{}
}
Expand Down
6 changes: 3 additions & 3 deletions internal/core/line.go
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ func (l *Line) Tokenize(cpos int) ([]string, int, int) {
}
}

// ... so we ajust here for this case.
// ... so we adjust here for this case.
if cpos == len(line) {
index = len(split) - 1
pos = len(split[index])
Expand Down Expand Up @@ -554,7 +554,7 @@ func (l *Line) TokenizeSpace(cpos int) ([]string, int, int) {
}
}

// ... so we ajust here for this case.
// ... so we adjust here for this case.
if cpos == len(line) {
index = len(split) - 1
pos = len(split[index])
Expand Down Expand Up @@ -692,7 +692,7 @@ func (l *Line) checkRange(bpos, epos int) (int, int, bool) {
return -1, -1, false
}

// Check positions out of bounnd
// Check positions out of bound
if epos > l.Len() {
epos = l.Len()
}
Expand Down
4 changes: 2 additions & 2 deletions internal/core/selection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1209,15 +1209,15 @@ func TestSelection_SelectKeyword(t *testing.T) {
wantMatch: true,
},
{
name: "Multiple subgroups cyle, forward",
name: "Multiple subgroups cycle, forward",
fields: fieldsWith(urlLine, &urlCur),
args: args{cpos: 32, bpos: 0, epos: 0, next: true, cycles: 2},
wantKbpos: 19,
wantKepos: 12 + 57,
wantMatch: true,
},
{
name: "Multiple subgroups cyle, reverse",
name: "Multiple subgroups cycle, reverse",
fields: fieldsWith(urlLine, &urlCur),
args: args{cpos: 32, bpos: 0, epos: 0, next: false, cycles: 2},
wantKbpos: 39,
Expand Down
2 changes: 1 addition & 1 deletion internal/keymap/dispatch.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func MatchMain(eng *Engine) (bind inputrc.Bind, command func(), prefix bool) {
}

// In the main menu, all keys that have been tested against
// the binds will be dropped after command execution (wether
// the binds will be dropped after command execution (whether
// or not there's actually a command to execute).
if prefix {
core.MatchedPrefix(eng.keys, read...)
Expand Down
2 changes: 1 addition & 1 deletion internal/strutil/surround.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func AdjustSurroundQuotes(dBpos, dEpos, sBpos, sEpos int) (mark, cpos int) {
return
}

doubleFirstAndValid := (dBpos < sBpos && // Outtermost
doubleFirstAndValid := (dBpos < sBpos && // Outermost
dBpos >= 0 && // Double found
sBpos >= 0 && // compared with a found single
dEpos > sEpos) // ensuring that we are not comparing unfound
Expand Down

0 comments on commit 1db4ae0

Please sign in to comment.