Skip to content

Commit

Permalink
Merge 165323f into f114ab4
Browse files Browse the repository at this point in the history
  • Loading branch information
mtlynch committed Apr 23, 2019
2 parents f114ab4 + 165323f commit 1239038
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions third_party/docstringchecker/update.sh
@@ -1,15 +1,17 @@
#!/bin/bash
# Downloads the latest copy of the DocStringChecker plugin.

# Exit build script on first failure
set -e

# Echo commands to stdout.
set -x

OUTPUT_DIR=$(dirname "$0")
OUTPUT_FILE="${OUTPUT_DIR}/lint.py"

# Modify DocStringChecker to expect 4-space indents instead of 2 to match Google
# Python style guide.
wget \
https://chromium.googlesource.com/chromiumos/chromite/+/master/cli/cros/lint.py?format=TEXT \
-O - | \
base64 --decode | sed "s/return node.col_offset + 2/return node.col_offset + 4/" \
base64 --decode \
> "$OUTPUT_FILE"

0 comments on commit 1239038

Please sign in to comment.