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

GH-30 initial integration of golangci-lint #44

Merged

Conversation

hectorgabucio
Copy link
Contributor

Summary

Integrates GolangCI-Lint in mattermost jenkins plugin.

Ticket Link

Fixes #30

@mattermod
Copy link

Hello @hectorgabucio,

Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.

@codecov-io
Copy link

codecov-io commented Oct 9, 2020

Codecov Report

Merging #44 into master will decrease coverage by 0.02%.
The diff coverage is 3.33%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #44      +/-   ##
=========================================
- Coverage    5.82%   5.80%   -0.03%     
=========================================
  Files           6       6              
  Lines         738     741       +3     
=========================================
  Hits           43      43              
- Misses        677     680       +3     
  Partials       18      18              
Impacted Files Coverage Δ
server/api.go 0.00% <0.00%> (ø)
server/command.go 0.00% <0.00%> (ø)
server/configuration.go 25.00% <0.00%> (ø)
server/plugin.go 4.24% <0.00%> (-0.03%) ⬇️
server/utils.go 43.13% <33.33%> (ø)

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 20876f8...6f5a9b8. Read the comment docs.

@hanzei hanzei added 2: Dev Review Requires review by a core committer 3: QA Review Requires review by a QA tester labels Oct 9, 2020
@hanzei hanzei requested review from mickmister and hanzei October 9, 2020 10:11
Copy link
Contributor

@hanzei hanzei left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution 👍

Plugins use p.API.Log* instead of log. See https://developers.mattermost.com/extend/plugins/server/reference/#API.LogWarn for the docs. Would you please change that?

server/api.go Outdated Show resolved Hide resolved
server/plugin.go Outdated Show resolved Hide resolved
@hectorgabucio hectorgabucio requested a review from hanzei October 9, 2020 10:45
Copy link
Contributor

@hanzei hanzei left a comment

Choose a reason for hiding this comment

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

One nit pick, the rest looks good 👍

server/plugin.go Outdated Show resolved Hide resolved
Copy link
Contributor

@hanzei hanzei left a comment

Choose a reason for hiding this comment

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

Great work 🎉

@hanzei
Copy link
Contributor

hanzei commented Oct 16, 2020

@hectorgabucio Could you please resolve the merge conflict?

@hanzei hanzei added the Awaiting Submitter Action Blocked on the author label Oct 16, 2020
Copy link
Contributor

@mickmister mickmister left a comment

Choose a reason for hiding this comment

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

Awesome work @hectorgabucio!

@hectorgabucio
Copy link
Contributor Author

@hectorgabucio
Copy link
Contributor Author

@hanzei @mickmister conflicts resolved and CI passed

@hanzei hanzei removed the Awaiting Submitter Action Blocked on the author label Oct 21, 2020
@hanzei hanzei requested a review from DHaussermann October 21, 2020 09:55
@hanzei hanzei removed the 2: Dev Review Requires review by a core committer label Oct 21, 2020
@hanzei
Copy link
Contributor

hanzei commented Oct 21, 2020

Awesome, thanks @hectorgabucio 👍

@DHaussermann There are no function changes in this PR. I've successfully build and deployed the plugin locally. Any additional tests you want to make?

Copy link

@DHaussermann DHaussermann left a comment

Choose a reason for hiding this comment

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

Tested and passed

  • Built from this branch - no lint issues with full make
  • Enabled the plugin and tested that slash commands seem functional
  • I will this during end to end testing before the next release for a thorough regression test

LGTM!
Thanks @hectorgabucio for this enhancement!

@DHaussermann DHaussermann added 4: Reviews Complete All reviewers have approved the pull request and removed 3: QA Review Requires review by a QA tester labels Oct 22, 2020
@jasonblais jasonblais added the AutoMerge Used by Mattermod to merge PR automatically label Oct 26, 2020
@mattermod
Copy link

Will try to auto merge this PR once all tests and checks are passing. This might take up to an hour.

@jasonblais
Copy link
Contributor

cc @mickmister @hanzei please help with merging if Automerge label is unsuccessful.

@mattermod
Copy link

Trying to auto merge this PR.

@mattermod mattermod merged commit 75a7f7d into mattermost-community:master Oct 26, 2020
@mattermod
Copy link

Pull Request successfully merged
SHA: 75a7f7d

@mattermod mattermod removed the AutoMerge Used by Mattermod to merge PR automatically label Oct 26, 2020
@hanzei hanzei added this to the v1.2.0 milestone Oct 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4: Reviews Complete All reviewers have approved the pull request Hacktoberfest hacktoberfest-accepted
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integrate GolangCI-Lint
7 participants