oshp/headers

View on GitHub
lib/secureheaders/site.py

Summary

Maintainability
A
0 mins
Test Coverage

Missing whitespace after ':'
Open

        self.data.update({'headers':{}})
Severity: Minor
Found in lib/secureheaders/site.py by pep8

Each comma, semicolon or colon should be followed by whitespace.

Okay: [a, b]
Okay: (3,)
Okay: a[1:4]
Okay: a[:4]
Okay: a[1:]
Okay: a[1:4:2]
E231: ['a','b']
E231: foo(bar,baz)
E231: [{'a':'b'}]

No newline at end of file
Open

        self.data.update({'headers':{}})
Severity: Minor
Found in lib/secureheaders/site.py by pep8

Trailing blank lines are superfluous.

Okay: spam(1)
W391: spam(1)\n

However the last line should end with a new line (warning W292).

There are no issues that match your filters.

Category
Status