rotblauer / gofmt-att

gofmt -w * ...
Apache License 2.0
6 stars 1 forks source link

gofmt -w all the things

This is a program that walks around Github, grabs Go repos, clones 'em, and runs gofmt -w . on 'em.

If after running the notorious gofmt, changes have been (eg. git status is dirty), then it adds, commits, forks, pushes, and finally puts a PR up.

If you're one of the maintainers or owners of a project and I've bothered you or messed up in my proposed change, please file an issue so this work can be as helpful and positive as possible.

I've been running with some configured blacklisted regex's (like vendor/ dirs) to exclude from the git add portion to try to keep changes pertinent.

Want to run it yourself? Cool!

To run it, you need:

Run:

More about configuration and other stuff.

Rob Pike touching on gofmt: https://www.youtube.com/watch?v=PAAkCSZUG1c&t=8m43s