Passed
Pull Request — master (#161)
by Jan
04:20
created

tests.conftest   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 13
dl 0
loc 15
rs 10
c 0
b 0
f 0
wmc 3

1 Function

Rating   Name   Duplication   Size   Complexity  
A remove_generated_reports_in_root() 0 9 3
1
import pytest
0 ignored issues
show
introduced by
Missing module docstring
Loading history...
introduced by
import missing from __future__ import absolute_import
Loading history...
2
import os
0 ignored issues
show
introduced by
standard import "import os" should be placed before "import pytest"
Loading history...
3
from glob import glob
0 ignored issues
show
introduced by
standard import "from glob import glob" should be placed before "import pytest"
Loading history...
4
5
6
@pytest.fixture()
7
def remove_generated_reports_in_root():
0 ignored issues
show
Coding Style Naming introduced by
Function name "remove_generated_reports_in_root" doesn't conform to '[a-z_][a-z0-9_]2,30$' pattern ('[a-z_][a-z0-9_]2,30$' pattern)

This check looks for invalid names for a range of different identifiers.

You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.

If your project includes a Pylint configuration file, the settings contained in that file take precedence.

To find out more about Pylint, please refer to their site.

Loading history...
introduced by
Missing function or method docstring
Loading history...
8
    yield
0 ignored issues
show
Coding Style introduced by
Bad indentation. Found 4 tabs, expected 1
Loading history...
9
    path = os.getcwd()
0 ignored issues
show
Coding Style introduced by
Bad indentation. Found 4 tabs, expected 1
Loading history...
10
    pattern = os.path.join(
0 ignored issues
show
Coding Style introduced by
Bad indentation. Found 4 tabs, expected 1
Loading history...
11
        path, "graph-of-xccdf_org.ssgproject.content_rule_package_abrt_removed*")
0 ignored issues
show
Coding Style introduced by
This line is too long as per the coding-style (81/80).

This check looks for lines that are too long. You can specify the maximum line length.

Loading history...
12
    for item in glob(pattern):
0 ignored issues
show
Coding Style introduced by
Bad indentation. Found 4 tabs, expected 1
Loading history...
13
        if not os.path.isdir(item):
0 ignored issues
show
Coding Style introduced by
Bad indentation. Found 8 tabs, expected 2
Loading history...
14
            os.remove(item)
0 ignored issues
show
Coding Style introduced by
Bad indentation. Found 12 tabs, expected 3
Loading history...
15