jenkins-bot has submitted this change and it was merged.
Change subject: Disable beautify on pre-commit hook for now.
......................................................................
Disable beautify on pre-commit hook for now.
Don't mess up with code for now. Also that `git add` has problems if you just
add --patch and try to commit.
Change-Id: Ic67ffe98f658b3743d0e29f78ff9f16b7e663d4c
---
M dev-scripts/pre-commit
1 file changed, 8 insertions(+), 8 deletions(-)
Approvals:
Kaldari: Looks good to me, approved
jenkins-bot: Verified
diff --git a/dev-scripts/pre-commit b/dev-scripts/pre-commit
index 9ee1572..ba3a91b 100755
--- a/dev-scripts/pre-commit
+++ b/dev-scripts/pre-commit
@@ -7,14 +7,14 @@
exit 1
fi
-for file in `git diff --cached --name-only | grep -i ".js\$"`
-do
- echo "Beautifying $file"
- if [ -f $file ]; then
- node_modules/.bin/js-beautify -r "$file"
- git add "$file"
- fi
-done
+# for file in `git diff --cached --name-only | grep -i ".js\$"`
+# do
+# echo "Beautifying $file"
+# if [ -f $file ]; then
+# node_modules/.bin/js-beautify -r "$file"
+# git add "$file"
+# fi
+# done
make jshint || exit 1
make jscs || exit 1
--
To view, visit https://gerrit.wikimedia.org/r/169304
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ic67ffe98f658b3743d0e29f78ff9f16b7e663d4c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Jhernandez <[email protected]>
Gerrit-Reviewer: Kaldari <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits