Skip to content

Added lint as action#30

Merged
mhutchinson merged 2 commits intotransparency-dev:mainfrom
mhutchinson:lintaction
May 27, 2022
Merged

Added lint as action#30
mhutchinson merged 2 commits intotransparency-dev:mainfrom
mhutchinson:lintaction

Conversation

@mhutchinson
Copy link
Copy Markdown
Contributor

This gives cleaner integration compared to digging around in cloudbuild output. We still may need to do GCB integration to perform further checks though. https://github.com/golangci/golangci-lint-action

This gives cleaner integration compared to digging around in cloudbuild output. We still may need to do GCB integration to perform further checks though. https://github.com/golangci/golangci-lint-action
@mhutchinson mhutchinson requested a review from a team as a code owner May 27, 2022 12:56
@mhutchinson mhutchinson requested review from AlCutter and pav-kv May 27, 2022 12:56
Comment on lines +4 to +7
tags:
- v*
branches:
- main
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I this a required section? Can this be just "any" for short?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

What's the benefit?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Shortness, and fewer assumptions about how branches are named.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I've removed all the filters. Any push to any branch, off fires the linter.

I don't see the benefit, but we can always change it.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 27, 2022

Codecov Report

Merging #30 (89e3386) into main (ff6e921) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #30   +/-   ##
=======================================
  Coverage   88.93%   88.93%           
=======================================
  Files           7        7           
  Lines         497      497           
=======================================
  Hits          442      442           
  Misses         50       50           
  Partials        5        5           

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 ff6e921...89e3386. Read the comment docs.

@mhutchinson mhutchinson merged commit 3d7510c into transparency-dev:main May 27, 2022
@mhutchinson mhutchinson deleted the lintaction branch May 27, 2022 13:22
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.

3 participants