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

🌱 lint update #1036

Merged
merged 4 commits into from
Jul 12, 2024
Merged

Conversation

perdasilva
Copy link
Contributor

@perdasilva perdasilva commented Jul 11, 2024

Description

Updates golangci-lint to its latest version and updates the config to remove a todo.
Adds a Makefile target make fix-fmt that runs golangci-lint --fix to (hopefully) fix (most) of the issues automagically.
Addresses a gosec lint issue where the perms for a file (in a directory that the operator-controller creates) were too broad (0777) -> 0600. I think this should be ok.

Reviewer Checklist

  • API Go Documentation
  • Tests: Unit Tests (and E2E Tests, if appropriate)
  • Comprehensive Commit Messages
  • Links to related GitHub Issue(s)

Per Goncalves da Silva added 2 commits July 11, 2024 17:03
Signed-off-by: Per Goncalves da Silva <pegoncal@redhat.com>
Signed-off-by: Per Goncalves da Silva <pegoncal@redhat.com>
@perdasilva perdasilva requested a review from a team as a code owner July 11, 2024 15:08
Copy link

netlify bot commented Jul 11, 2024

Deploy Preview for olmv1 ready!

Name Link
🔨 Latest commit 6e1b28f
🔍 Latest deploy log https://app.netlify.com/sites/olmv1/deploys/6690e648f4be990008662376
😎 Deploy Preview https://deploy-preview-1036--olmv1.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@perdasilva perdasilva changed the title 🌱 some linting updates 🌱 lint update Jul 11, 2024
Copy link

codecov bot commented Jul 11, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 77.00%. Comparing base (fe591d4) to head (6e1b28f).
Report is 5 commits behind head on main.

Files Patch % Lines
internal/catalogmetadata/cache/cache.go 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1036      +/-   ##
==========================================
- Coverage   77.60%   77.00%   -0.60%     
==========================================
  Files          18       19       +1     
  Lines        1268     1357      +89     
==========================================
+ Hits          984     1045      +61     
- Misses        202      222      +20     
- Partials       82       90       +8     
Flag Coverage Δ
e2e 56.44% <0.00%> (ø)
unit 53.86% <0.00%> (+1.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Makefile Outdated Show resolved Hide resolved
Per Goncalves da Silva added 2 commits July 12, 2024 10:15
Signed-off-by: Per Goncalves da Silva <pegoncal@redhat.com>
Signed-off-by: Per Goncalves da Silva <pegoncal@redhat.com>
Copy link
Contributor

@tmshort tmshort left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@perdasilva perdasilva added this pull request to the merge queue Jul 12, 2024
@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jul 12, 2024
Merged via the queue into operator-framework:main with commit 60d26ed Jul 12, 2024
15 of 17 checks passed
perdasilva added a commit to LalatenduMohanty/operator-controller that referenced this pull request Aug 13, 2024
* update golangci-lint version

Signed-off-by: Per Goncalves da Silva <pegoncal@redhat.com>

* update golangci-lint configuration

Signed-off-by: Per Goncalves da Silva <pegoncal@redhat.com>

* update make fmt target

Signed-off-by: Per Goncalves da Silva <pegoncal@redhat.com>

* fix lint issues

Signed-off-by: Per Goncalves da Silva <pegoncal@redhat.com>

---------

Signed-off-by: Per Goncalves da Silva <pegoncal@redhat.com>
Co-authored-by: Per Goncalves da Silva <pegoncal@redhat.com>
perdasilva added a commit to kevinrizza/operator-controller that referenced this pull request Aug 13, 2024
* update golangci-lint version

Signed-off-by: Per Goncalves da Silva <pegoncal@redhat.com>

* update golangci-lint configuration

Signed-off-by: Per Goncalves da Silva <pegoncal@redhat.com>

* update make fmt target

Signed-off-by: Per Goncalves da Silva <pegoncal@redhat.com>

* fix lint issues

Signed-off-by: Per Goncalves da Silva <pegoncal@redhat.com>

---------

Signed-off-by: Per Goncalves da Silva <pegoncal@redhat.com>
Co-authored-by: Per Goncalves da Silva <pegoncal@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants