D7683: examples: add an example configuration for go source files

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Tue Dec 17 14:05:54 EST 2019


durin42 updated this revision to Diff 18827.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7683?vs=18826&id=18827

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7683/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7683

AFFECTED FILES
  contrib/examples/fix.hgrc

CHANGE DETAILS

diff --git a/contrib/examples/fix.hgrc b/contrib/examples/fix.hgrc
--- a/contrib/examples/fix.hgrc
+++ b/contrib/examples/fix.hgrc
@@ -7,3 +7,8 @@
 
 black:command = black --config=black.toml -
 black:pattern = set:**.py - mercurial/thirdparty/** - "contrib/python-zstandard/**"
+
+# Mercurial doesn't have any Go code, but if we did this is how we
+# would configure `hg fix` for Go:
+go:command = gofmt
+go:pattern = set:**.go



To: durin42, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list