Skip to content

Commit 8d1cebd

Browse files
gapra-msftnakulkar-msft
authored andcommitted
Upgrade linting version (#2105)
1 parent f8d63e7 commit 8d1cebd

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,20 @@ jobs:
1616
golangci:
1717
strategy:
1818
matrix:
19-
go: [1.17]
19+
go: [1.18]
2020
os: [ubuntu-latest, windows-latest, macos-latest]
2121
name: lint
2222
runs-on: ${{ matrix.os }}
2323
steps:
2424
- uses: actions/setup-go@v3
2525
with:
2626
go-version: ${{ matrix.go }}
27-
- uses: actions/checkout@v2
27+
- uses: actions/checkout@v3
2828
- name: golangci-lint
29-
uses: golangci/golangci-lint-action@v2
29+
uses: golangci/golangci-lint-action@v3
3030
with:
3131
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
32-
version: v1.46
32+
version: latest
3333
# Optional: working directory, useful for monorepos
3434
# working-directory: somedir
3535

cmd/copyEnumeratorInit.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -614,11 +614,6 @@ func (cca *CookedCopyCmdArgs) MakeEscapedRelativePath(source bool, dstIsDir bool
614614
return pathEncodeRules(relativePath, cca.FromTo, cca.disableAutoDecoding, source)
615615
}
616616

617-
// user is not placing the source as a subdir
618-
if object.isSourceRootFolder() && !asSubdir {
619-
relativePath = ""
620-
}
621-
622617
// If it's out here, the object is contained in a folder, or was found via a wildcard, or object.isSourceRootFolder == true
623618
if object.isSourceRootFolder() {
624619
relativePath = "" // otherwise we get "/" from the line below, and that breaks some clients, e.g. blobFS

testSuite/scripts/utility.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def execute_azcopy_info(self):
100100
def execute_testsuite_upload(self):
101101
return verify_operation(self.string())
102102

103-
# processes oauth command according to swtiches
103+
# processes oauth command according to switches
104104
def process_oauth_command(
105105
cmd,
106106
fromTo=""):

0 commit comments

Comments
 (0)