oclint/oclint — pull request #78 by nschum (2013-07-15 21:30:19+00:00)
Title: Config

My first draft for #67 using LLVM's YAML parser.

Here's how the format looks:

rules:
- LongLine
disable-rules:
rulePaths:
- /etc/rules
rule-configurations:
- key: LONG_LINE
value: 20
output: filename
report-type: xml
max-priority-1: 10
max-priority-2: 20
max-priority-3: 30
enable-clang-static-analyzer: false

I wish "rule-configurations" would look more like this:

LONG_LINE: 20

but LLVM's YAML parser doesn't seem to support direct mapping to a map.