Added new linter that enforces Qt5 SIGNAL/SLOT connection style.
Partial backport of Core PR13529 (adjusted to work with arcanist)
https://github.com/bitcoin/bitcoin/pull/13529/commits/3567b247f43decb6fc102d5b0989d1746fce0441
Differential D4306
test: Add lint to prevent SIGNAL/SLOT connect style nakihito on Oct 29 2019, 20:30. Authored by Tags None Subscribers None
Details
Added new linter that enforces Qt5 SIGNAL/SLOT connection style. Partial backport of Core PR13529 (adjusted to work with arcanist) arc lint --everything No Qt5 code violations should appear. Change line 43 in qt/clientmodel.cpp from arc lint Verify that two Qt5 SIGNAL/SLOT violation errors are reported, one for the SIGNAL and one for the SLOT.
Diff Detail
Event TimelineComment Actions Please update the diff dependencies according to the parent being splitted. The script is no longer used since the regex is part of the PHP script. You should remove it and update the comments accordingly. As discussed offline, is it safe to only check for SIGNAL or SLOT only in order to avoid having 2 errors for the same connect() call ? Is there some case where one could appear and not the other ? Comment Actions Script removed and dependency removed (all changes have been landed). Comment Actions One nit, good otherwise.
|