kate clang-format

Albert Astals Cid aacid at kde.org
Sun Oct 6 12:29:42 BST 2019


El diumenge, 6 d’octubre de 2019, a les 13:17:54 CEST, Mark Nauwelaerts va escriure:
> Hi All,
> 
> Recently a .clang-format file was added to kate repo along with a reformat.sh 
> helper script to suitably format all files. However, applying the latter script 
> (again) shows a diff, where presumably the ideal intention is that there is no diff.
> 
> So, maybe some sort of format/linting should or could be added? Perhaps by means 
> of a git-commit hook, or some automated job (like translations) that 
> auto-formats in case some author did not format accordingly?

Since kate is in invent.kde.org a CI job that makes sure the formatting is correct is the solution.

That way no commit will go in without being checked.

Except for the people that do direct pushes ;)

Cheers,
  Albert

> 
> Regards,
> Mark
> 






More information about the KWrite-Devel mailing list