summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Lint/__init__.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove blanket excepts from plugins and lintChris St. Pierre2015-02-181-2/+2
| | | | | | | | | | This removes most blanket except: clauses from all plugins, including the base plugin libraries, and bcfg2-lint. The few that remain should all be necessary. Most of the changes were quite minor, but this did require some restructuring of the CfgPrivateKeyCreator; as a result, the tests for that module were rewritten.
* Pylint fixes for pylint 0.28Chris St. Pierre2015-02-171-4/+16
| | | | | This also pins Pylint to 0.28 or older so that we don't have to do this again. At some point we should look at upgrading to Pylint 1.x.
* Lint: fix default value for lint_pluginsAlexander Sulfrian2014-10-301-30/+41
| | | | | | | | | | | | | | This is a bit tricky because we need the enabled server plugins for the default value. To have these available before parsing lint_plugins the server plugins needs to be parsed during early parsing mode. Additional there are lint plugins that has no matching server plugin. To identify them, this adds a reference from the lint plutins to the name of the matching server plugins in the member variable __serverplugin__. If this variable is None the plugin is always used. If a lint plugin could not be imported (maybe because of a missing dependency) the plugin is ignored and not considered as a default value.
* Lint: handle KeyboardInterupt during fam eventsAlexander Sulfrian2014-10-301-2/+2
| | | | | | | If a KeyboardInterupt occurs during block_for_fam_events core.shutdown() has to be called. block_For_fam_events will start the fam thread and if shutdown is not called the main thread will stop on an exception and python will wait until the fam thread stops (never).
* bcfg2-lint: fixed automatically loading server plugin lint pluginsChris St. Pierre2014-01-071-5/+5
|
* bcfg2-lint: allow specifying no lint pluginsChris St. Pierre2013-10-091-1/+1
|
* Pylint/PEP8 fixesSol Jerome2013-09-061-2/+2
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* testsuite: fixed most pylint complaintsChris St. Pierre2013-08-091-1/+2
|
* Merge branch 'options-rewrite'Chris St. Pierre2013-08-081-22/+182
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/lib/Bcfg2/Client/Frame.py src/lib/Bcfg2/Options.py src/lib/Bcfg2/Server/Admin/Init.py src/lib/Bcfg2/Server/Admin/Xcmd.py src/lib/Bcfg2/Server/BuiltinCore.py src/lib/Bcfg2/Server/Core.py src/lib/Bcfg2/Server/MultiprocessingCore.py src/lib/Bcfg2/Server/Plugin/base.py src/lib/Bcfg2/Server/Plugin/helpers.py src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py src/lib/Bcfg2/Server/Plugins/Packages/Yum.py src/lib/Bcfg2/Server/Plugins/Packages/__init__.py src/lib/Bcfg2/Server/SSLServer.py src/lib/Bcfg2/Utils.py src/lib/Bcfg2/settings.py src/sbin/bcfg2-crypt src/sbin/bcfg2-info src/sbin/bcfg2-lint src/sbin/bcfg2-test src/sbin/bcfg2-yum-helper tools/bcfg2-profile-templates.py
| * Options: migrated bcfg2-lint to new parserChris St. Pierre2013-06-271-22/+182
|/
* bcfg2-lint: fixed unit testsChris St. Pierre2013-05-141-1/+1
|
* bcfg2-lint: fixed unit testsChris St. Pierre2013-05-141-2/+5
|
* doc: added devel docs for bcfg2-lint pluginsChris St. Pierre2013-05-141-54/+127
|
* bcfg2-lint: fixed confusion about variables named "errors"Chris St. Pierre2012-10-041-8/+8
|
* expanded pylint coverageChris St. Pierre2012-09-251-14/+12
|
* expanded pylint testsChris St. Pierre2012-09-251-31/+56
|
* bcfg2-lint: fix terminal text wrapping (from John Morris)Chris St. Pierre2012-09-011-3/+3
|
* bcfg2-lint: fix lint plugin list (from John Morris)Chris St. Pierre2012-09-011-3/+2
|
* fixed lxml.etree.tostring invocationsChris St. Pierre2012-08-221-2/+4
|
* lots of various py3k fixesChris St. Pierre2012-08-211-2/+2
|
* added bcfg2-lint plugin to check for malformed group namesChris St. Pierre2012-08-151-2/+2
|
* fixed bcfg2-lint --show-errorsChris St. Pierre2012-05-031-2/+2
|
* cleaner handling of line-wrapping in bcfg2-lintChris St. Pierre2012-04-231-10/+7
|
* changed the way bcfg2-lint errors are loaded to make it easier to write and ↵Chris St. Pierre2012-04-201-40/+11
| | | | use custom plugins
* added TemplateHelper plugin for bcfg2-lintChris St. Pierre2012-04-201-1/+7
|
* make bcfg2-lint warn about .cat and .diff filesChris St. Pierre2012-04-201-2/+5
|
* Allow to run directly from a git checkout (#1037)Sol Jerome2012-03-241-0/+215
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>