Skip to content

Commit

Permalink
Add a buildfix.sh script to autoformat.
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerwilliams committed Feb 15, 2020
1 parent 8b580d1 commit 3cff564
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions server/buildfix.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
set -e

# buildifier format all BUILD files
echo "Formatting WORKSPACE files..."
find . -name WORKSPACE -exec buildifier {} \;
echo "Formatting BUILD files..."
find . -name BUILD -exec buildifier {} \;

# go fmt all .go files
echo "Formatting .go files..."
find . -name "*.go" -exec go fmt {} \;

echo "All Done!"

0 comments on commit 3cff564

Please sign in to comment.