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

fixed code quality issues #1694

Merged
merged 2 commits into from
Jan 9, 2021
Merged

fixed code quality issues #1694

merged 2 commits into from
Jan 9, 2021

Conversation

withshubh
Copy link
Contributor

Summary of Changes

  • Replaced strings.Index with strings.Contains
  • Removed unnecessary use of slice
  • Combined multiple appends into a single call
  • Added .deepsource.toml

@CLAassistant
Copy link

CLAassistant commented Dec 22, 2020

CLA assistant check
All committers have signed the CLA.

@@ -210,7 +210,7 @@ func (g *Group) Error() (s string) {
}

func (g *Group) getAllErrors() []error {
list := g.Errors[:]
list := g.Errors

Choose a reason for hiding this comment

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

I don't think this change is equivocal.

Copy link
Contributor Author

@withshubh withshubh Dec 22, 2020

Choose a reason for hiding this comment

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

Hey @AlbinoGeek

I am not sure what you mean. You can have a look at the description of the issue being resolved here.

@kataras
Copy link
Owner

kataras commented Dec 27, 2020

@withshubh I've added deepsource on this repository as well, I didn't know you are part of their team, good job mate. However, not all provided "fixes" are really fixes, Go support is not totally completed yet, right?

@withshubh
Copy link
Contributor Author

withshubh commented Jan 6, 2021

@kataras Thanks 💖

DeepSource Go analyzer identifies more than 200+ code quality issues and supports autofix for most commonly occurring issues. Our team actively updates all the analyzers with new rules. Learn more about Go analyzer here.

Regarding the fixes, the first two fixes the anti-patterns while the third one boosts minor performance.

Also, If you have suggestions regarding the improvement of our Go analyzer then you can post them in the slack user group or in the DeepSource Community Forum.

withshubh and others added 2 commits January 6, 2021 16:36
* Combine multiple `append`s into a single call

* Remove unnecessary use of slice

* Replace `strings.Index` with `strings.Contains`

* Added .deepsource.toml config file for DeepSource integration
@kataras
Copy link
Owner

kataras commented Jan 9, 2021

I've already joined to the slack @withshubh ^_^ but I don't have enough time lately to integrate with you guys yet :/ Your product looks legit and very promising though, good job!

@kataras kataras merged commit 1258cee into kataras:master Jan 9, 2021
@withshubh
Copy link
Contributor Author

I've already joined to the slack @withshubh ^_^ but I don't have enough time lately to integrate with you guys yet :/ Your product looks legit and very promising though, good job!

Thanks! @kataras ✨ 💖

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.

4 participants