Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Unified Diff: pre-commit-go.yml

Issue 1334833002: Add pcg to ignore impl/prod (Closed) Base URL: https://github.com/luci/gae.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pre-commit-go.yml
diff --git a/pre-commit-go.yml b/pre-commit-go.yml
new file mode 100644
index 0000000000000000000000000000000000000000..40e492849b0a2f76f27bf6e9944f1287effdae09
--- /dev/null
+++ b/pre-commit-go.yml
@@ -0,0 +1,75 @@
+# https://github.com/maruel/pre-commit-go configuration file to run checks
+# automatically on commit, on push and on continuous integration service after
+# a push or on merge of a pull request.
+#
+# See https://godoc.org/github.com/maruel/pre-commit-go/checks for more
+# information.
+
+coverage_settings: &COVERAGE_SETTINGS
+ use_global_inference: false
+ use_coveralls: false
+ global:
+ min_coverage: 50
+ max_coverage: 100
+ per_dir_default:
+ min_coverage: 1
+ max_coverage: 100
+ per_dir:
+ impl/prod: null
+
+min_version: 0.4.7
+modes:
+ continuous-integration:
+ checks:
+ build:
+ - build_all: false
+ extra_args: []
+ coverage:
+ - <<: *COVERAGE_SETTINGS
+ use_coveralls: true
+ gofmt:
+ - {}
+ goimports:
+ - {}
+ test:
+ - extra_args:
+ - -v
+ - -race
+ max_duration: 120
+ lint:
+ checks:
+ errcheck:
+ - ignores: Close
+ golint:
+ - blacklist: []
+ govet:
+ - blacklist:
+ - ' composite literal uses unkeyed fields'
+ max_duration: 15
+ pre-commit:
+ checks:
+ build:
+ - build_all: false
+ extra_args: []
+ gofmt:
+ - {}
+ test:
+ - extra_args:
+ - -short
+ max_duration: 5
+ pre-push:
+ checks:
+ coverage:
+ - <<: *COVERAGE_SETTINGS
+ goimports:
+ - {}
+ test:
+ - extra_args:
+ - -v
+ - -race
+ max_duration: 15
+ignore_patterns:
+- .*
+- _*
+- '*.pb.go'
+- '*_string.go'
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698