Skip to content

Commit

Permalink
chore: run synth fixes on unversioned protos (#2660)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdpedrie authored Feb 3, 2020
1 parent 03219fd commit 5935ea9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions OsLogin/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,21 +89,21 @@

# roll back to private properties.
s.replace(
"src/**/V*/**/*.php",
["src/**/V*/**/*.php", "src/Common/**/*.php"],
r"Generated from protobuf field ([^\n]{0,})\n\s{5}\*/\n\s{4}protected \$",
r"""Generated from protobuf field \1
*/
private $""")

# prevent proto messages from being marked final
s.replace(
"src/**/V*/**/*.php",
["src/**/V*/**/*.php", "src/Common/**/*.php"],
r"final class",
r"class")

# Replace "Unwrapped" with "Value" for method names.
s.replace(
"src/**/V*/**/*.php",
["src/**/V*/**/*.php", "src/Common/**/*.php"],
r"public function ([s|g]\w{3,})Unwrapped",
r"public function \1Value"
)
Expand Down

0 comments on commit 5935ea9

Please sign in to comment.