• kamen@lemmy.world
      link
      fedilink
      arrow-up
      33
      arrow-down
      1
      ·
      7 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
        3
        ·
        7 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
          ·
          7 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.