-
Notifications
You must be signed in to change notification settings - Fork 132
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-658] Add golang-ci lint #712
[GH-658] Add golang-ci lint #712
Conversation
Hello @carantunes, 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. |
b1f687b
to
a291787
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is amazing work 🎉 Thanks for going through all of these files.
Almost all changes look good. There is one issue with a http header. See my comment below.
I would be fine if you comment out the failing linter and we merge this PR as it is.
# sd is an easier-to-type alias for server-debug | ||
.PHONY: sd | ||
sd: server-debug | ||
|
||
# server-debug builds and deploys a debug version of the plugin for your architecture. | ||
# Then resets the plugin to pick up the changes. | ||
.PHONY: server-debug | ||
server-debug: server-debug-deploy reset |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jfrerich Just to double check: Are we fine with removing these commands?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hanzei I did all the requested changes. Only missing clarification on this point. Should I revert this changes? Copied the makefile from autolink as indicated in the issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should keep and investigate these options. They were implemented some time ago, but the idea being that we could save time by only building the appropriate architecture.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, technically the are stored in Git and saved there. 1/5 that consistency is more important that the build features.
Codecov Report
@@ Coverage Diff @@
## master #712 +/- ##
==========================================
+ Coverage 32.38% 32.46% +0.07%
==========================================
Files 52 52
Lines 5373 5357 -16
==========================================
- Hits 1740 1739 -1
+ Misses 3433 3417 -16
- Partials 200 201 +1
Continue to review full report at Codecov.
|
@jfrerich kind reminder to help with a review of this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing amount of work :) Thanks, @Adovenmuehle!
@hanzei, I think we should keep the makefile commands and investigate them. We should consider adding them to the starter-template plugin.
# sd is an easier-to-type alias for server-debug | ||
.PHONY: sd | ||
sd: server-debug | ||
|
||
# server-debug builds and deploys a debug version of the plugin for your architecture. | ||
# Then resets the plugin to pick up the changes. | ||
.PHONY: server-debug | ||
server-debug: server-debug-deploy reset |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should keep and investigate these options. They were implemented some time ago, but the idea being that we could save time by only building the appropriate architecture.
@DHaussermann Maybe this is a good PR to test in the next review process |
/update-branch |
Error trying to update the PR. |
Thanks @carantunes for this contribution. I have successfully build and deployed the plugin. I have also done some brief regression testing around core functionality Connect/disconnect create and attach issue etc.. and found no issues. @hanzei regarding additional testing, this would get alot of coverage to catch potential regression when I do the release testing once Jira 3.0.1 is ready and we have a version bump PR. Do you feel the risk if fairly low here and we can merge this in before the |
This PR has been automatically labelled "stale" because it hasn't had recent activity. |
@DHaussermann I highly doubt we will release a 3.0.1 from Hence, I think it's fine to merge this PR with low amount of testing and rely on the 3.1.0 release testing to catch any bugs. @carantunes Could you please merge |
This PR has been automatically labelled "stale" because it hasn't had recent activity. |
@DHaussermann Given that 3.0.1 will be not cut from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and passed
I did some significant regression testing here #712 (comment)
There is no need to delay the merge to master
Any other regression risk will get covered in the next round of release testing.
Yes @hanzei please merge.
Huge thanks to @carantunes for this enhancement!
Awesome work @carantunes 🚀 |
Thank you! 🥳 Happy to help again if something comes up! |
Summary
This PR copies most of the golangci-lint configuration from mattermost-community/mattermost-plugin-autolink#108 into this repo. This helps with a consistent code style and should improve code quality over time.
Most changes are straightforward and just style wise. I did comment on the more tricky ones.
Ticket Link
Fixes #658