pylint-errors

E0103 (not-in-loop)

:x: Problematic code:

def print_values_but_five(value):
    if value:
        continue
    print(value)


for i in range(10):
    print_values_but_five(i)

:heavy_check_mark: Correct code:

for i in range(10):
    if i == 5:
        continue
    print(i)

Rationale:

Used when break or continue keywords are used outside a loop.