tekulvw/Squid-Plugins

View on GitHub
nickometer/nickometer.py

Summary

Maintainability
A
0 mins
Test Coverage

Invalid escape sequence ')'
Open

            nick = re.sub('^([^()]*)(\()(.*)(\))([^()]*)$', '\1\3\5', nick, 1)
Severity: Minor
Found in nickometer/nickometer.py by pep8

Invalid escape sequences are deprecated in Python 3.6.

Okay: regex = r'\.png$'
W605: regex = '\.png$'

Invalid escape sequence '{'
Open

            nick = re.sub('^([^{}]*)(\{)(.*)(\})([^{}]*)$', '\1\3\5', nick, 1)
Severity: Minor
Found in nickometer/nickometer.py by pep8

Invalid escape sequences are deprecated in Python 3.6.

Okay: regex = r'\.png$'
W605: regex = '\.png$'

Do not use bare 'except'
Open

                except:
Severity: Minor
Found in nickometer/nickometer.py by pep8

When catching exceptions, mention specific exceptions when possible.

Okay: except Exception:
Okay: except BaseException:
E722: except:

Invalid escape sequence '\d'
Open

        matches = re.findall('[^\w\d]{2,}', nick)
Severity: Minor
Found in nickometer/nickometer.py by pep8

Invalid escape sequences are deprecated in Python 3.6.

Okay: regex = r'\.png$'
W605: regex = '\.png$'

Do not use bare 'except'
Open

        except:
Severity: Minor
Found in nickometer/nickometer.py by pep8

When catching exceptions, mention specific exceptions when possible.

Okay: except Exception:
Okay: except BaseException:
E722: except:

Invalid escape sequence ']'
Open

                '^([^[\]]*)(\[)(.*)(\])([^[\]]*)$', '\1\3\5', nick, 1)
Severity: Minor
Found in nickometer/nickometer.py by pep8

Invalid escape sequences are deprecated in Python 3.6.

Okay: regex = r'\.png$'
W605: regex = '\.png$'

Do not use bare 'except'
Open

            except:
Severity: Minor
Found in nickometer/nickometer.py by pep8

When catching exceptions, mention specific exceptions when possible.

Okay: except Exception:
Okay: except BaseException:
E722: except:

Invalid escape sequence '['
Open

                '^([^[\]]*)(\[)(.*)(\])([^[\]]*)$', '\1\3\5', nick, 1)
Severity: Minor
Found in nickometer/nickometer.py by pep8

Invalid escape sequences are deprecated in Python 3.6.

Okay: regex = r'\.png$'
W605: regex = '\.png$'

Invalid escape sequence '('
Open

            nick = re.sub('^([^()]*)(\()(.*)(\))([^()]*)$', '\1\3\5', nick, 1)
Severity: Minor
Found in nickometer/nickometer.py by pep8

Invalid escape sequences are deprecated in Python 3.6.

Okay: regex = r'\.png$'
W605: regex = '\.png$'

Invalid escape sequence '}'
Open

            nick = re.sub('^([^{}]*)(\{)(.*)(\})([^{}]*)$', '\1\3\5', nick, 1)
Severity: Minor
Found in nickometer/nickometer.py by pep8

Invalid escape sequences are deprecated in Python 3.6.

Okay: regex = r'\.png$'
W605: regex = '\.png$'

Invalid escape sequence ']'
Open

                '^([^[\]]*)(\[)(.*)(\])([^[\]]*)$', '\1\3\5', nick, 1)
Severity: Minor
Found in nickometer/nickometer.py by pep8

Invalid escape sequences are deprecated in Python 3.6.

Okay: regex = r'\.png$'
W605: regex = '\.png$'

Invalid escape sequence '\w'
Open

        matches = re.findall('[^\w\d]{2,}', nick)
Severity: Minor
Found in nickometer/nickometer.py by pep8

Invalid escape sequences are deprecated in Python 3.6.

Okay: regex = r'\.png$'
W605: regex = '\.png$'

Invalid escape sequence ']'
Open

                '^([^[\]]*)(\[)(.*)(\])([^[\]]*)$', '\1\3\5', nick, 1)
Severity: Minor
Found in nickometer/nickometer.py by pep8

Invalid escape sequences are deprecated in Python 3.6.

Okay: regex = r'\.png$'
W605: regex = '\.png$'

There are no issues that match your filters.

Category
Status