Some of the checks implemented in the local plugin are already
implemented in core hacking and can be replaced.
Notes:
The following checks are enabled by default
H211: Check for assertTrue(isinstance(a, b)) sentences
H212: Check for assertEqual(type(A), B) sentences
H213: Check for usage of deprecated assertRaisesRegexp
Also, the following checks are additionally enabled by this change.
H204: Use assert(Not)Equal to check for equality
H205: Use assert{Greater,Less}[Equal]
Change-Id: I7617b75adb8a5efc15fcf70d6e4b02a20cf9d365
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
503 B
503 B
glance Style Commandments
- Step 1: Read the OpenStack Style Commandments https://docs.openstack.org/hacking/latest/
- Step 2: Read on
glance Specific Commandments
- [G319] Validate that debug level logs are not translated
- [G327] Prevent use of deprecated contextlib.nested
- [G328] Must use a dict comprehension instead of a dict constructor with a sequence of key-value pairs
- [G330] Log.warn is deprecated. Enforce use of LOG.warning.