Control formatting with header comments
trunkYou can control whether rubyfmt processes specific files by using header comments at the top of the file. This is useful for opting in or out of formatting on a per-file basis.
- Use the flag
--header-opt-into only format files that contain# rubyfmt: trueat the top. - Use the flag
--header-opt-outto skip files that contain# rubyfmt: falseat the top.