Add a hacking rule for the setDaemon method

Add the following hacking rule.

* N372: Don't use the setDaemon method.
        Use the daemon attribute instead.

Change-Id: Idb45421205f76d2d3b0576bd0504d261ed249edd
Related-Bug: 1987191
Signed-off-by: Takashi Natsume <takanattie@gmail.com>
This commit is contained in:
Takashi Natsume
2022-08-26 00:53:00 +09:00
parent 2eb358cdce
commit 628e1c152c
4 changed files with 44 additions and 0 deletions
+1
View File
@@ -351,6 +351,7 @@ extension =
N369 = checks:check_lockutils_rwlocks
N370 = checks:check_six
N371 = checks:import_stock_mock
N372 = checks:check_set_daemon
paths =
./nova/hacking