Statische Code-Analyse mit Python

Post on 08-May-2015

375 views 0 download

Transcript of Statische Code-Analyse mit Python

Statische Code-Analyse mit Python

Python Meeting Düsseldorf

Timo Stollenwerk

Statische Code-Analyse

● Prüfung von Quellcode● Falsifizierendes Verfahren● White-Box Testverfahren

Was wird analysiert?

● Code Standards● Syntaktische Fehler● „Bad Smells“● Metriken (LOC, Komplexität, ...)

PEP8

● Style Check

PyFlakes

● Syntax-Checks● Bad Smells● Import-Checks

PyLint

● Style-Checks● Syntax-Checks● Bad Smells● Metriken

Flake 8

● Syntax-Checks● Bad Smells● Style-Checks● Metriken

PyChecker

● Syntax-Checks● Bad Smells● Import-Checks

Wo prüfen?

IDE (ST2)

VCS: Git pre-commit hook

Continuous Integration (Jenkins)

https://jenkins.plone.org/job/plone-4.3-code-analysis/

Fragen?