This patch fixes the errors noted by pylint whereby too many
return statements are within a single method/function.
The following errors were resolved:
************* Module bandit.core.context
R:196, 4: Too many return statements (10/6) (too-many-return-statements)
Change-Id: I1caf37effb94c4d8123f99d3bb485e1fa0af8272
Pylint reports the following after re-enabling R0201.
************* Module bandit.core.config
R:174, 4: Method could be a function (no-self-use)
************* Module bandit.core.metrics
R: 84, 4: Method could be a function (no-self-use)
************* Module bandit.core.test_set
R: 41, 4: Method could be a function (no-self-use)
************* Module bandit.core.tester
R: 95, 4: Method could be a function (no-self-use)
Change-Id: Ie27fabe517259c3896ee2b302ab7e40aaacc71ab
* Constants should be in caps
* Redundant ( ) in if statements
* Use isinstance instead of type ==
* Indentation
Change-Id: I79fda14112a9dd02fe867f6d850762216e0ca9a1