-
Notifications
You must be signed in to change notification settings - Fork 15
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
linting: added errcheck, gocritic, goimports, golint, govet & megacheck #49
Conversation
Just a first pass. Needs revision, maybe adjustements, and a explanation of how to install golangci-lint. Maybe add instructions to README? Integration of sanity-check target with CI? CC @F21 |
@lopezator Thank you so much for working on this!
Definitely a good idea to add instructions for running golangci-lint to the readme. I think we can add a section before the License section.
For this one, you'd need to edit wercker.yml. I'd suggest adding another |
1681398
to
31c83a7
Compare
PTAL @F21 Feel free to suggest/change anything. English is not my native language and the description in the README.md file for example, might not be clear enough. I left the Makefile although it is calling only Cannot make the build pass, looks something related to go modules, not sure. |
@lopezator Thanks again for working on this! There are a few minor changes I'd like for the README.md file, but let's see if we can fix the go modules error first. I did a quick search and it appears that I believe what we need to do is add In essence, you'll need to create a In the wercker.yml file, rather than installing the I haven't had the chance to give this a shot, but I think it should work. |
9002f2e
to
f5fcbef
Compare
0a573ab
to
4c8647e
Compare
after messing around with this wercker thing for a while it seems I've been able to pass the checks. PTAL @F21 let's see if we can polish this :) |
1a4ba28
to
029d451
Compare
@lopezator Thanks for your work on this! The problem with using I have pushed a commit that does the following:
The commit is on the The CI for my fork also passes except for code climate (due to some missing config): https://app.wercker.com/F21/migration/runs/build/5c37cb980f540f0025857fb8?step=5c37cbc2cfa0fc000779b757 Can you squash my commit with yours into 1 commit (you should be set as the author of the commit)? I think we should be ready to merge 👍 |
I've cherry-picked that commit and squashed it into mine, thanks for the help @F21 PTAL again 🙂 |
README.md
Outdated
@@ -207,5 +207,17 @@ Phoenix driver, which uses the scheme to determine if we should connect over `ht | |||
project is structured, it was also almost impossible to add support for embeddable migration files without major | |||
changes. | |||
|
|||
## Contributing | |||
We run automatically some linters using [golangci-lint](https://github.com/golangci/golangci-lint) to check code quality |
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.
Looks like I messed up a bit here. Can you change it to We automatically run
?
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.
sure.
Many thanks for pulling in the changes. I messed up a bit with the README, do you mind making the change and squashing? |
added linters using golangci. fix linted errors.
Thanks @lopezator ! |
added linters using golangci. fix linted errors.
references #47