As a developer, I'd like linted code to help with quality #65

Closed
opened 2019-10-28 12:45:32 +00:00 by asdf · 5 comments
Collaborator

There are around 40 warnings currently coming up on the code base from GoMetaLinter. These are things like:

  • exported functions requiring comments
  • replace num -= 1 with num--
  • if block ending with return statement, so drop else and outdent its block

I'd like to clean up some of these warnings for the 2.0.0 release.

I'd also like to ensure that all files are formatted for the release.

Maybe there are other static analysis steps required?

There are around 40 warnings currently coming up on the code base from GoMetaLinter. These are things like: - exported functions requiring comments - replace `num -= 1` with `num--` - if block ending with return statement, so drop else and outdent its block I'd like to clean up some of these warnings for the 2.0.0 release. I'd also like to ensure that all files are formatted for the release. Maybe there are other static analysis steps required?
asdf self-assigned this 2019-10-28 12:45:32 +00:00
sloum was assigned by asdf 2019-10-28 12:45:32 +00:00
asdf added the
non-functional
label 2019-10-28 12:45:32 +00:00
Owner

I think this is a good idea. Is GoMetaLinter a vim package? Or provided with the go toolchain? I have generally been running go fmt on things, but that is about it. I definitely agree a consistent code style would be good to have by release time.

EDIT: It seems that GoMetaLinter is deprecated in favor of golangci-lint.

I think this is a good idea. Is GoMetaLinter a vim package? Or provided with the go toolchain? I have generally been running `go fmt` on things, but that is about it. I definitely agree a consistent code style would be good to have by release time. **EDIT**: It seems that GoMetaLinter is deprecated in favor of [golangci-lint](https://github.com/golangci/golangci-lint).
Author
Collaborator

Thanks for the heads up on GoMetaLinter being deprecated. vim-go changed the command :GoMetaLinter to use golangci-lint very recently, so it changed without my noticing...

Thanks for the heads up on GoMetaLinter being deprecated. vim-go changed the command `:GoMetaLinter` to use golangci-lint very recently, so it changed without my noticing...
Owner

This, I think, gets closed by #83 but there may be more to do. Not sure. What do you think @asdf ?

This, I think, gets closed by #83 but there may be more to do. Not sure. What do you think @asdf ?
Author
Collaborator

Resolved by #83 , with some small documentation in #84. Thanks for the efforts, it looks really nice now.

Resolved by #83 , with some small documentation in #84. Thanks for the efforts, it looks really nice now.
asdf closed this issue 2019-11-12 03:25:59 +00:00
Owner

Yay! No problem. Thanks for making the issue and shepherding me into doing things I know I should do, but often just choose laziness.

Yay! No problem. Thanks for making the issue and shepherding me into doing things I know I should do, but often just choose laziness.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sloum/bombadillo#65
No description provided.