Skip to content

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

Open

Description

@radhermit

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 (#5).

Activity

  1. thesamesam commented on Feb 28, 2021

    @thesamesam
    Member

    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:

    • blank line after EAPI
    • sorting (some) eclasses (at least those which don't export phases)

    Examples we can't:

    • "block structure" (some variables in a certain order, space, some other variables in a certain order)
    • sort *DEPEND(?)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions