Patchwork D6979: contrib: stop whining about whitespace around =

login
register
mail settings
Submitter phabricator
Date Oct. 6, 2019, 1:55 p.m.
Message ID <8b61794ec1cb61709ebd031db155af81@localhost.localdomain>
Download mbox | patch
Permalink /patch/42008/
State Not Applicable
Headers show

Comments

phabricator - Oct. 6, 2019, 1:55 p.m.
Closed by commit rHG9bfd083bc6ee: contrib: stop whining about whitespace around = (authored by durin42).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6979?vs=16828&id=16874

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

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

AFFECTED FILES
  contrib/check-code.py

CHANGE DETAILS




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

Patch

diff --git a/contrib/check-code.py b/contrib/check-code.py
--- a/contrib/check-code.py
+++ b/contrib/check-code.py
@@ -252,7 +252,6 @@ 
     (r"[^_]_\([ \t\n]*(?:'[^']+'[ \t\n+]*)+%", "don't use % inside _()"),
     (r'(\w|\)),\w', "missing whitespace after ,"),
     (r'(\w|\))[+/*\-<>]\w', "missing whitespace in expression"),
-    (r'^\s+(\w|\.)+=\w[^,()\n]*$', "missing whitespace in assignment"),
     (r'\w\s=\s\s+\w', "gratuitous whitespace after ="),
     ((
         # a line ending with a colon, potentially with trailing comments