This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| defmodule HendricksFormatter do | |
| @moduledoc """ | |
| This module is a formatter plugin for Elixir's `mix format` task | |
| that converts leading whitespace to tabs. | |
| It tries to intelligently determine the tab width based on the most common | |
| counts of leading space runs in the file. | |
| It allows additional space characters for minor adjustments that are below the tab width. | |
| OK, why tabs? Why resurrect this age-old nerd debate again? | |
| Very simple: It's an accessibility issue: | |
| https://adamtuttle.codes/blog/2021/tabs-vs-spaces-its-an-accessibility-issue/ |