qmk fileformat: only print complaints, and fix some of them (#11278)

This commit is contained in:
Ryan
2020-12-24 13:36:44 +11:00
committed by Drashna Jael're
parent 074147a74a
commit edc6a30ccc

View File

@@ -0,0 +1,13 @@
"""Format files according to QMK's style.
"""
from milc import cli
import subprocess
@cli.subcommand("Format files according to QMK's style.", hidden=True)
def fileformat(cli):
"""Run several general formatting commands.
"""
dos2unix = subprocess.run(['bash', '-c', 'git ls-files -z | xargs -0 dos2unix'], stdout=subprocess.DEVNULL)
return dos2unix.returncode