stvnksslr/dataslate-parser

View on GitHub

Showing 77 of 100 total issues

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

    assert bool(parsed_roster)
Severity: Info
Found in src/parsers/w40k/w40k_test.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

    assert gametype == HORUS_HERESY_ID
Severity: Info
Found in src/utils/gametype__test.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

    assert parser == heresy
Severity: Info
Found in src/utils/gametype__test.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

    assert response.status_code == 200
Severity: Info
Found in src/main_test.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

    assert bool(parsed_rosters)
Severity: Info
Found in src/parsers/heresy/heresy_test.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

    assert len(parsed_roster) == 5
Severity: Info
Found in src/parsers/w40k/w40k_test.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

    assert bool(parsed_roster) is True
Severity: Info
Found in src/parsers/heresy/heresy_test.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

    assert len(parsed_roster[0].wargear) == 3

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

    assert len(parsed_roster) == 10

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

    assert len(parsed_roster[0].wargear) == 3

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

    assert parsed_roster[0].name == "Kroot Carnivore (Warrior)"

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

    assert parsed_roster[0].name == "Intercessor Squad"
Severity: Info
Found in src/parsers/w40k/w40k_test.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

    assert len(rules_summary) == 7
Severity: Info
Found in src/parsers/w40k/w40k_test.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

    assert bool(parsed_roster) is True
Severity: Info
Found in src/parsers/heresy/heresy_test.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

    assert bool(parsed_roster) is True
Severity: Info
Found in src/parsers/heresy/heresy_test.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

    assert bool(parsed_roster)

Either remove or fill this block of code.
Open

                pass
Severity: Major
Found in src/parsers/w40k/w40k.py by sonar-python

Most of the time a block of code is empty when a piece of code is really missing. So such empty block must be either filled or removed.

Noncompliant Code Example

for i in range(3):
    pass

Exceptions

When a block contains a comment, this block is not considered to be empty.

Severity
Category
Status
Source
Language