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

refactor-lint #188

Merged
merged 4 commits into from
Sep 12, 2024
Merged

Conversation

Victoremepunto
Copy link
Collaborator

@Victoremepunto Victoremepunto commented Sep 5, 2024

This PR aims to:

  • refactor the linter config out of the GHA and into a file so that the same config is usable outside of GHA
  • add a lint target to run lints using make
  • fix the issues the linter found

UPDATE: need to disable G115 from gosec since the linter still complains after applying and apparently valid fix. will revisit as securego/gosec#1212 gets fixed

@Victoremepunto
Copy link
Collaborator Author

fixes introduced should solve the issues raised by the linter, however we're hitting a known bug from gosec, one of the linters used. golangci-lint needs to release a new version with the fix. see this

@Victoremepunto Victoremepunto requested review from psav and adamrdrew and removed request for psav September 12, 2024 17:27
@Victoremepunto
Copy link
Collaborator Author

fixes introduced should solve the issues raised by the linter, however we're hitting a known bug from gosec, one of the linters used. golangci-lint needs to release a new version with the fix. see this

Ok, unfortunately, the latest release didn't help and the linter keeps shouting about G115 - I've disabled it, if only temporarily, to move on and get this merged - I'm leaving the fix in though.

@Victoremepunto Victoremepunto merged commit 8e920d6 into RedHatInsights:main Sep 12, 2024
9 checks passed
@Victoremepunto Victoremepunto deleted the refactor-lint branch September 12, 2024 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant