• kamen@lemmy.world
    link
    fedilink
    arrow-up
    27
    arrow-down
    1
    ·
    6 months ago

    The pipeline should handle formatting. No matter how you screw it up, once you commit, it gets formatted to an agreed upon standard.

    • sunbytes@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      6 months ago

      Some diff tools don’t handle indentation by default.

      So if you add a wrapper, it counts everything inside it as “changed”

      • kamen@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        6 months ago

        Pre-commit hooks is a common approach to this, so that whatever is committed gets processed. Another possibility would be to set a bot on the repo to do automated commits after human-made ones, but that can get a little noisy.