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

Add super-linter + fix lint issues #650

Merged
merged 8 commits into from
May 3, 2021
Merged

Conversation

catthehacker
Copy link
Member

Add super-linter to lint other languages.
Go linter is disabled because it's currently broken:
https://github.com/github/super-linter/pull/370
Replacing scopelint with exportloopref: "[runner] The linter
'scopelint' is deprecated (since v1.39.0) due to: The repository of the
linter has been deprecated by the owner. Replaced by exportloopref."
Fixed formatting in .golangci.yml
Add addtional linters:
misspell: purely style, detects typos in comments
whitespace: detects leading and trailing whitespace
goimports: it's gofmt + checks unused imports

@catthehacker catthehacker requested review from a team and cplee and removed request for a team May 1, 2021 19:24
@codecov
Copy link

codecov bot commented May 1, 2021

Codecov Report

Merging #650 (b5a871b) into master (806bc4d) will increase coverage by 0.06%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #650      +/-   ##
==========================================
+ Coverage   49.59%   49.66%   +0.06%     
==========================================
  Files          23       23              
  Lines        2365     2370       +5     
==========================================
+ Hits         1173     1177       +4     
- Misses       1066     1067       +1     
  Partials      126      126              
Impacted Files Coverage Δ
pkg/common/file.go 0.00% <ø> (ø)
pkg/common/git.go 59.79% <ø> (ø)
pkg/container/docker_build.go 0.00% <ø> (ø)
pkg/container/docker_pull.go 18.18% <ø> (ø)
pkg/container/docker_run.go 1.92% <ø> (ø)
pkg/model/workflow.go 25.71% <0.00%> (ø)
pkg/runner/logger.go 64.15% <ø> (ø)
pkg/runner/run_context.go 77.45% <ø> (+0.03%) ⬆️
pkg/runner/runner.go 94.28% <ø> (ø)
pkg/runner/step_context.go 70.93% <ø> (ø)
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 806bc4d...b5a871b. Read the comment docs.

hackercat and others added 5 commits May 1, 2021 19:35
Bump `golangci-lint` version.
Add `super-linter` to lint other languages.
Go linter is disabled because it's currently broken:
https://github.com/github/super-linter/pull/370
Replacing `scopelint` with `exportloopref`: "[runner] The linter
'scopelint' is deprecated (since v1.39.0) due to: The repository of the
linter has been deprecated by the owner.  Replaced by exportloopref."
Fixed formatting in `.golangci.yml`
Add addtional linters:
  `misspell`: purely style, detects typos in comments
  `whitespace`: detects leading and trailing whitespace
  `goimports`: it's gofmt + checks unused imports
@cplee
Copy link
Contributor

cplee commented May 3, 2021

thanks @catthehacker for the quick save 😅

@cplee cplee merged commit cec6348 into nektos:master May 3, 2021
@catthehacker catthehacker deleted the golangci-lint branch May 7, 2021 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants