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

Upgrade frameworks version of golangci-lint #139

Merged
merged 8 commits into from
Sep 28, 2021
Merged

Conversation

willbeason
Copy link
Member

Use the same linters we use in gatekeeper/ for consistency.

Remove usage of deprecated/now-unsupported linters.

Make changes to make linting pass.

Signed-off-by: Will Beason willbeason@google.com

Use the same linters we use in gatekeeper/ for consistency.

Remove usage of deprecated/now-unsupported linters.

Make changes to make linting pass.

Signed-off-by: Will Beason <willbeason@google.com>
@codecov-commenter
Copy link

codecov-commenter commented Sep 27, 2021

Codecov Report

Merging #139 (10ca257) into master (2924b2c) will increase coverage by 0.13%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #139      +/-   ##
==========================================
+ Coverage   42.39%   42.52%   +0.13%     
==========================================
  Files          49       49              
  Lines        2951     2958       +7     
==========================================
+ Hits         1251     1258       +7     
+ Misses       1321     1320       -1     
- Partials      379      380       +1     
Flag Coverage Δ
unittests 42.52% <ø> (+0.13%) ⬆️

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

Impacted Files Coverage Δ
...eworks/constraint/pkg/regorewriter/regorewriter.go 54.32% <0.00%> (-0.40%) ⬇️
...-agent/frameworks/constraint/pkg/client/backend.go 68.75% <0.00%> (ø)
...t/frameworks/constraint/pkg/client/rego_helpers.go 82.60% <0.00%> (ø)
.../frameworks/constraint/pkg/regorewriter/sources.go 17.07% <0.00%> (ø)
...frameworks/constraint/pkg/apis/templates/scheme.go 20.00% <0.00%> (ø)
...frameworks/constraint/pkg/regorewriter/filepath.go 100.00% <0.00%> (ø)
...meworks/constraint/pkg/regorewriter/ast_helpers.go 55.55% <0.00%> (ø)
...eworks/constraint/pkg/apis/templates/crd_schema.go 50.00% <0.00%> (ø)
...works/constraint/pkg/apis/templates/v1/register.go 0.00% <0.00%> (ø)
...rks/constraint/pkg/apis/templates/v1/conversion.go 80.00% <0.00%> (ø)
... and 8 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 2924b2c...10ca257. Read the comment docs.

Will Beason added 4 commits September 27, 2021 13:14
Signed-off-by: Will Beason <willbeason@google.com>
Also fix a few typos I found

Signed-off-by: Will Beason <willbeason@google.com>
Signed-off-by: Will Beason <willbeason@google.com>
Signed-off-by: Will Beason <willbeason@google.com>
Copy link
Contributor

@maxsmythe maxsmythe left a comment

Choose a reason for hiding this comment

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

LGTM with nits

constraint/pkg/client/backend.go Outdated Show resolved Hide resolved
constraint/pkg/client/drivers/local/local.go Outdated Show resolved Hide resolved
Copy link
Member

@sozercan sozercan left a comment

Choose a reason for hiding this comment

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

Thank you! LGTM pending @maxsmythe's comments

In some cases I've reworded errors so they do not begin with a proper
noun

Signed-off-by: Will Beason <willbeason@google.com>
Will Beason added 2 commits September 28, 2021 07:49
Signed-off-by: Will Beason <willbeason@google.com>
Signed-off-by: Will Beason <willbeason@google.com>
@sozercan
Copy link
Member

@willbeason good to merge?

@willbeason willbeason merged commit ca4abdb into master Sep 28, 2021
@willbeason willbeason deleted the upgrade-linting branch September 28, 2021 19:06
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.

None yet

4 participants