Personal tools
You are here: Home / LBN / Up2date / Plone and Zope / BastionLinux 25 / plone.recipe.codeanalysis-1.0rc1-1.lbn25.noarch

plone.recipe.codeanalysis-1.0rc1-1.lbn25.noarch

Package Attributes
RPM  plone.recipe.codeanalysis-1.0rc1-1.lbn25.noarch.rpm Architecture  noarch Size  194032 Created  2017/08/08 14:57:56 UTC
Package Specification
Summary Static code analysis for buildout-based Python projects.
Group Application/Internet
License ZPL
Home Page https://pypi.python.org/packages/source/p/plone.recipe.codeanalysis/plone.recipe.codeanalysis-1.0rc1.zip
Description

Introduction

plone.recipe.codeanalysis provides static code analysis for Buildout-based Python projects, including flake8, JSHint, CSS Lint, and other code checks.

This buildout recipe creates a script to run the code analysis:

bin/code-analysis

By default plone.recipe.codeanalysis also creates a git pre-commit hook, in order to run the code analysis automatically before each commit.

plone.recipe.codeanalysis comes with a Jenkins integration, that allows to use the same code analysis settings on your local machine as well as on Jenkins.

plone.recipe.codeanalysis provides a Jenkins setting that allows to run it on a Jenkins CI server and to process and integrate the output via the Jenkins Violations plugin.

Usually you do not want the recipe to create Jenkins output files on your local machine. Therefore it makes sense to enable the Jenkins output only on the CI machine.

The Jenkins job itself should run "bin/code-analysis":

The Jenkins Violations plugin needs to be configured to read the output files generated by this configuration.

pep8 (to read the flake8 output):

**/parts/code-analysis/flake8.log

csslint:

**/parts/code-analysis/csslint.xml

jslint (to read the jshint output:

**/parts/code-analysis/jshint.xml

Requires
python  
rpmlib(FileDigests)  
rpmlib(PartialHardlinkSets)  
rpmlib(CompressedFileNames)  
rpmlib(PayloadFilesHavePrefix)  
python-flake8  
rpmlib(PayloadIsXz)  
Provides
plone.recipe.codeanalysis
python2.7dist(plone.recipe.codeanalysis)
python2dist(plone.recipe.codeanalysis)

Document Actions