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

Bump mvdan.cc/gofumpt from 0.1.0 to 0.2.1 in /tools #22

Closed

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Dec 18, 2021

Bumps mvdan.cc/gofumpt from 0.1.0 to 0.2.1.

Release notes

Sourced from mvdan.cc/gofumpt's releases.

v0.2.1

This bugfix release resolves a number of issues:

  • Add deprecated flags -s and -r once again, now giving useful errors
  • Avoid a panic with certain function declaration styles
  • Don't group interface members of different kinds
  • Account for leading comments in composite literals

Binaries built on go version go1.17.5 linux/amd64 via a shell script.

Consider becoming a sponsor if you benefit from the work that went into this release!

v0.2.0

This is gofumpt's second major release, based on Go 1.17's gofmt. The jump from Go 1.15's gofmt should bring a mild speed-up, as walking directories with filepath.WalkDir uses fewer syscalls.

gofumports is now removed, after being deprecated in v0.1.0. Its main purpose was IDE integration; it is now recommended to use gopls, which in turn implements goimports and supports gofumpt natively. IDEs which don't integrate with gopls (such as GoLand) implement goimports too, so it is safe to use gofumpt as their "format on save" command. See the installation instructions for more details.

The following formatting rules are added:

  • Composite literals should not have leading or trailing empty lines
  • No empty lines following an assignment operator
  • Functions using an empty line for readability should use a ) { line instead
  • Remove unnecessary empty lines from interfaces

Finally, the following changes are made to the gofumpt tool:

  • Initial support for Go 1.18's type parameters is added
  • The -r flag is removed in favor of gofmt -r
  • The -s flag is removed as it is always enabled
  • Vendor directories are skipped unless given as explicit arguments
  • The added rules are not applied to generated Go files
  • The format Go API now also applies the gofmt -s simplification
  • Add support for //gofumpt:diagnose comments

Binaries built on go version go1.17.3 linux/amd64 via a shell script.

Consider becoming a sponsor if you benefit from the work that went into this release!

v0.1.1

This bugfix release backports fixes for a few issues:

  • Keep leading empty lines in func bodies if they help readability
  • Avoid breaking comment alignment on empty field lists
  • Add support for //go-sumtype: directives

Binaries built on go version go1.16.1 linux/amd64 via a shell script.

Changelog

Sourced from mvdan.cc/gofumpt's changelog.

[0.2.1] - 2021-12-12

This bugfix release resolves a number of issues:

  • Add deprecated flags -s and -r once again, now giving useful errors
  • Avoid a panic with certain function declaration styles
  • Don't group interface members of different kinds
  • Account for leading comments in composite literals

[0.2.0] - 2021-11-10

This is gofumpt's second major release, based on Go 1.17's gofmt. The jump from Go 1.15's gofmt should bring a mild speed-up, as walking directories with filepath.WalkDir uses fewer syscalls.

gofumports is now removed, after being deprecated in [0.1.0]. Its main purpose was IDE integration; it is now recommended to use gopls, which in turn implements goimports and supports gofumpt natively. IDEs which don't integrate with gopls (such as GoLand) implement goimports too, so it is safe to use gofumpt as their "format on save" command. See the installation instructions for more details.

The following formatting rules are added:

  • Composite literals should not have leading or trailing empty lines
  • No empty lines following an assignment operator
  • Functions using an empty line for readability should use a ) { line instead
  • Remove unnecessary empty lines from interfaces

Finally, the following changes are made to the gofumpt tool:

  • Initial support for Go 1.18's type parameters is added
  • The -r flag is removed in favor of gofmt -r
  • The -s flag is removed as it is always enabled
  • Vendor directories are skipped unless given as explicit arguments
  • The added rules are not applied to generated Go files
  • The format Go API now also applies the gofmt -s simplification
  • Add support for //gofumpt:diagnose comments

[0.1.1] - 2021-03-11

This bugfix release backports fixes for a few issues:

  • Keep leading empty lines in func bodies if they help readability
  • Avoid breaking comment alignment on empty field lists
  • Add support for //go-sumtype: directives
Commits
  • ba9bdf9 write changelog for v0.2.1
  • 83c82b7 README: add Eglot (Emacs) instructions
  • 4e57a27 format: treat noinspection as comment directive
  • 53340e7 doc and comment spelling fixes
  • 55d7eb4 mod: bump dependencies
  • ea37f49 README: add Emacs install instructions
  • cf88391 add deprecated flags once again
  • 872763c format: account for leading comments in composite literals
  • 93927ca format: don't group interface members of different kinds
  • 7ca7e6c isCgoImport accounts for back-quoted "C" import
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [mvdan.cc/gofumpt](https://github.com/mvdan/gofumpt) from 0.1.0 to 0.2.1.
- [Release notes](https://github.com/mvdan/gofumpt/releases)
- [Changelog](https://github.com/mvdan/gofumpt/blob/master/CHANGELOG.md)
- [Commits](mvdan/gofumpt@v0.1.0...v0.2.1)

---
updated-dependencies:
- dependency-name: mvdan.cc/gofumpt
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Dec 18, 2021
@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Feb 26, 2022

Superseded by #26.

@dependabot dependabot bot closed this Feb 26, 2022
@dependabot dependabot bot deleted the dependabot/go_modules/tools/mvdan.cc/gofumpt-0.2.1 branch February 26, 2022 01:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants