( )⚙ D2864 contrib: open a hole in the open().read() ban for open().close()

This is an archive of the discontinued Mercurial Phabricator instance.

contrib: open a hole in the open().read() ban for open().close()
ClosedPublic

Authored by durin42 on Mar 14 2018, 3:53 PM.

Details

Summary

It turns out open().close() is both fine and something we occasionally
do to verify something can be written. The few cases in the codebase
were getting missed due to a regular expression bug (which I discussed
in my previous change), but since I'm about to fix the bug, I need to
fix the patterns.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

durin42 created this revision.Mar 14 2018, 3:53 PM
pulkit accepted this revision.Mar 15 2018, 8:27 AM
This revision was automatically updated to reflect the committed changes.