-
Notifications
You must be signed in to change notification settings - Fork 4
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
Explain the rules #28
Comments
If you want them in the README in another format, a PR is welcome :-) |
No it doesn't? It runs Go benchmarks:
I see no explanations here |
I am sorry, but I do not know what you expect as an "explanation". |
Something similar to what Go-critic does: https://go-critic.com/overview#argorder: # strconv.FormatUint
Use strconv.FormatUint
Before:
```go
a := fmt.Sprint(uint(42))
fmt.Println(a)
```
After:
```go
a := strconv.FormatUint(42, 10)
fmt.Println(a)
```
However, if you don't think this is necessary, then feel free to close this issue. My reason for opening this issue was that I found it hard to know what messages like |
Apparently everything is fine for you. I think the best for us who complain about the lack of explanation is to open a PR with suggestions. Then the discussion could continue. Respectfully. |
Tbh. I didn't really understand https://github.com/catenacyber/perfsprint?tab=readme-ov-file#replacements when I first saw it, so I sort of ignored it.. It might be enough to close this issue, but the explanation could probably be a little more clear if I couldn't understand it coming with no knowledge of
I know something like this could be a bit easier to discuss with more practical examples (like a PR with changes to the README), but the author and community might not agree with my changes for whatever reason and close it, which would make my work completely wasted. For that reason I rarely open PRs before having the discussion in an issue, since I've had my PRs closed before simply because the author didn't agree with it. |
That is most welcome :-)
I think documentation can be improved, and I do not think I am the best to do it as I do not have a fresh perspective |
It would be nice with a short explanation of what each rule is, why it is useful, and how an example solution could be.
Since the number of checks are quite small, it could just be a hardcoded list in the README.
The text was updated successfully, but these errors were encountered: