Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: add standard scripts for git hooks #3174

Merged
merged 2 commits into from Oct 19, 2018

Conversation

schroederc
Copy link
Contributor

Initially, the pre-commit hook runs the legacy arcanist unit/lint
commands (see #3173) and the commit-msg hook runs commitlint to
check for the Conventional Commit format.

See http://go/gh/marionebl/commitlint#getting-started for the new
commitlint tool dependency.

Initially, the `pre-commit` hook runs the legacy arcanist unit/lint
commands (see kythe#3173) and the `commit-msg` hook runs `commitlint` to
check for the Conventional Commit format.

See http://go/gh/marionebl/commitlint#getting-started for the new
`commitlint` tool dependency.
@schroederc schroederc requested a review from a team October 19, 2018 17:59
google-java-format -n "$file" | sed 's/^/google-java-format::error:1 /'
fi ;;
*.go)
if command -v gofmt &>/dev/null; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If they don't have the formatter installed, can we output a warning message instead of silently skipping the formatting step?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can do that per-file but not once per arc lint invocation.

@schroederc schroederc merged commit 63031be into kythe:master Oct 19, 2018
@schroederc schroederc deleted the lint-hook branch October 19, 2018 19:50
schroederc added a commit to schroederc/kythe that referenced this pull request Nov 8, 2018
Initially, the `pre-commit` hook runs the legacy arcanist unit/lint
commands (see kythe#3173) and the `commit-msg` hook runs `commitlint` to
check for the Conventional Commit format.

See http://go/gh/marionebl/commitlint#getting-started for the new
`commitlint` tool dependency.
schroederc added a commit to schroederc/kythe that referenced this pull request Nov 8, 2018
Initially, the `pre-commit` hook runs the legacy arcanist unit/lint
commands (see kythe#3173) and the `commit-msg` hook runs `commitlint` to
check for the Conventional Commit format.

See http://go/gh/marionebl/commitlint#getting-started for the new
`commitlint` tool dependency.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants