# HG changeset patch # User Mads Kiilerich # Date 2016-05-02 23:45:26 # Node ID f0b9706d8d7e763bb03d2b753f9e2f0b42b196da # Parent d170cf8cf5b1024b55db973b3b7815b3aec3fe53 scripts: introduce scripts/run-all-cleanup - run this before committing to make sure some aspects of the coding style is maintained diff --git a/docs/contributing.rst b/docs/contributing.rst --- a/docs/contributing.rst +++ b/docs/contributing.rst @@ -118,6 +118,9 @@ multiline functions should be indented t ``{}``. Variables holding jQuery objects should be named with a leading ``$``. +Run ``scripts/run-all-cleanup`` before committing to ensure some basic code +formatting consistency. + Commit messages should have a leading short line summarizing the changes. For bug fixes, put ``(Issue #123)`` at the end of this line. diff --git a/scripts/run-all-cleanup b/scripts/run-all-cleanup new file mode 100755 --- /dev/null +++ b/scripts/run-all-cleanup @@ -0,0 +1,10 @@ +#!/usr/bin/sh + +# Convenience script for running various idempotent source code cleanup scripts + +set -e +set -x + +scripts/docs-headings.py +scripts/generate-ini.py +scripts/whitespacecleanup.sh