Skip to content

chore: enable perfsprint linter (backport #2291) - #2345

Merged
melekes merged 2 commits into
v1.xfrom
mergify/bp/v1.x/pr-2291
Feb 15, 2024
Merged

melekes merged 2 commits into
v1.xfrom
mergify/bp/v1.x/pr-2291

Conversation

@mergify

@mergify mergify Bot commented Feb 15, 2024

Copy link
Copy Markdown
Contributor

This is an automatic backport of pull request #2291 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

This PR enables the perfsprint linter, which replaces fmt.Errorf's with
errors.New, and also encourages using string addition, to boost
performance.

- enable perfsprint linter
- don't copy locks when copying a bit array

---

#### PR checklist

- [ ] Tests written/updated
- [ ] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
- [ ] Updated relevant documentation (`docs/` or `spec/`) and code
comments
- [ ] Title follows the [Conventional
Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec

---------

Co-authored-by: Anton Kaliaev <[email protected]>
(cherry picked from commit c920404)
@mergify
mergify Bot requested a review from a team as a code owner February 15, 2024 14:26
@mergify
mergify Bot requested a review from a team February 15, 2024 14:26
@melekes
melekes merged commit d0b2327 into v1.x Feb 15, 2024
@melekes
melekes deleted the mergify/bp/v1.x/pr-2291 branch February 15, 2024 15:00
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.

2 participants