pkgcore / pkgdev

collection of tools for Gentoo development
https://pkgcore.github.io/pkgdev/
BSD 3-Clause "New" or "Revised" License
30 stars 12 forks source link

pkgdev fmt: add subcommand for mangling ebuilds/files #7

Open radhermit opened 3 years ago

radhermit commented 3 years ago

Without proper bash parsing support, this could still do things like updating file headers and fixing EOF lines and the functionality should be available for external use so pkgdev commit would auto-fix files if requested (https://github.com/pkgcore/pkgdev/issues/5).

thesamesam commented 3 years ago

Bash parsing support could let us do some neat things like fixing *DEPEND whitespace and preferred style for specifying dependencies (newlines where appropriate, and so on -- and possibly making it easier to sort them?).

Examples we should be able to do w/o parsing:

Examples we can't: