| Conditions | 1 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | import sys |
||
| 21 | def test_disable_warnings(self): |
||
| 22 | self.assertLinesInvalid(self.uut, ['def func():\n', |
||
| 23 | ' pass\n', |
||
| 24 | 'def func2():\n', |
||
| 25 | ' pass\n']) |
||
| 26 | self.section.append(Setting('pep_ignore', 'E302')) |
||
| 27 | self.assertLinesValid(self.uut, ['def func():\n', |
||
| 28 | ' pass\n', |
||
| 29 | 'def func2():\n', |
||
| 30 | ' pass\n']) |
||
| 31 | |||
| 39 |
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.