diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-04-20 11:59:53 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-04-20 12:00:19 -0400 |
commit | 07096c454d3a75a868f86ba8ce2f3678af934808 (patch) | |
tree | 902599e4e084f48569c96f120f8d48b6a7640470 /src/lib/Bcfg2/Server/Lint/Comments.py | |
parent | 74fe7cebd6f5024dbf336fd37f06644a4011dabe (diff) | |
download | bcfg2-07096c454d3a75a868f86ba8ce2f3678af934808.tar.gz bcfg2-07096c454d3a75a868f86ba8ce2f3678af934808.tar.bz2 bcfg2-07096c454d3a75a868f86ba8ce2f3678af934808.zip |
changed the way bcfg2-lint errors are loaded to make it easier to write and use custom plugins
Diffstat (limited to 'src/lib/Bcfg2/Server/Lint/Comments.py')
-rw-r--r-- | src/lib/Bcfg2/Server/Lint/Comments.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/Bcfg2/Server/Lint/Comments.py b/src/lib/Bcfg2/Server/Lint/Comments.py index 19e6c1167..e16469bb5 100644 --- a/src/lib/Bcfg2/Server/Lint/Comments.py +++ b/src/lib/Bcfg2/Server/Lint/Comments.py @@ -16,6 +16,12 @@ class Comments(Bcfg2.Server.Lint.ServerPlugin): self.check_infoxml() self.check_probes() + def Errors(self): + return {"unexpanded-keywords":"warning", + "keywords-not-found":"warning", + "comments-not-found":"warning", + "broken-xinclude-chain":"warning"} + def required_keywords(self, rtype): """ given a file type, fetch the list of required VCS keywords from the bcfg2-lint config """ |