facebook pixelPython Static Analysis Rules
BACK TO LIST

Python rules

The Codiga Static Analysis engine is powered by the best open-source tools to check your Python code. Make sure your code does not have any security issues and follow design and other best practices. Automate your code reviews today and merge with confidence with Codiga.

      C0112

      Code style
      Minor

      Module, function, class or method have an empty docstring

      Learn more

      C0202

      Code style
      Minor

      Detect when a class method has a first argument named differently than the value specified in valid-classmethod-first-arg option

      C0203

      Code style
      Minor

      Detect when a metaclass method has a first argument named differently than the value specified in valid-classmethod-first-arg option.

      C0204

      Code style
      Minor

      Metaclass class method __new__ should have 'cls' as first argument

      C0302

      Code style
      Minor

      Too many lines in a module

      C0304

      Code style
      Minor

      Final newline missing

      C0327

      Code style
      Minor

      Mixed line endings (between LF and CRLF)

      C0102

      Code style
      Minor

      Detect blacklisted names (toto, foo, etc)

      W0410

      Code style
      Minor

      __future__ import is not the first non docstring statement

      C0105

      Code style
      Minor

      Name doesn't conform to naming rules associated to its type