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

BUG: fix linter errors #104

Open
azeemshaikh38 opened this issue Jun 2, 2022 · 4 comments
Open

BUG: fix linter errors #104

azeemshaikh38 opened this issue Jun 2, 2022 · 4 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@azeemshaikh38
Copy link
Contributor

azeemshaikh38 commented Jun 2, 2022

We have lot of linter errors from our current GolangCI config, and many useful linters have been disabled. We need to fix these errors and enable them for future.

@azeemshaikh38 azeemshaikh38 added good first issue Good for newcomers help wanted Extra attention is needed labels Jun 2, 2022
@gaonkar-adi-wipro
Copy link

Hi Azeem,
I have fixed the linter issues and created a pull request for review (#128 )

Would appreciate your feedback on the same!

@azeemshaikh38
Copy link
Contributor Author

Thanks for your contribution @gaonkar-adi-wipro. Although, this issue is meant for the Golang linter errors coming from the GolangCI config here. I have updated my previous comment to clarify this.

@gliptak
Copy link

gliptak commented Feb 14, 2024

is this still outstanding?

https://github.com/ossf/scorecard-webapp/actions/runs/7905693652/job/21578875246

  Running [/home/runner/golangci-lint-1.56.1-linux-amd64/golangci-lint run --out-format=github-actions --config=.golangci.yml] in [] ...
  golangci-lint found no issues
  Ran golangci-lint in 37110ms

@spencerschrock
Copy link
Member

is this still outstanding?

My understanding is that some of the linters were disabled in #105, and then deleted in #159 before they could be re-enabled. So there may be issues still. While we recently reviewed the ossf/scorecard .golangci.yml file, I'm not sure this one has been reviewed in a while.

Of the deleted linters:

  • Probably worthwhile:
    • errcheck, probably useful to fix and turn on
    • govet is usually good, although we may want to disable the fieldalignment portion or fix the occurences.
  • debatable value:
    • gocritic, some of these are fine. some are eh
    • revive
    • gocognit, would. need to fix some of the problematic functions
    • wrapcheck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants