[doclint] Prepare doclint for more checks

This patch refactors doclint so that more checks and more generators
could be added.

This patch:
- Introduces 'Source' class, which holds file content in-memory and
  allows it to be updated.
- Introduces 'Message' class - which is a pair of a text and a type.
  Messages could have either 'error' type or 'warning' type.
This commit is contained in:
Andrey Lushnikov
2017-07-30 21:49:04 -07:00
parent b474a2d0d9
commit 75a8d7b0c3
37 changed files with 270 additions and 70 deletions

View File

@@ -0,0 +1,3 @@
[MarkDown] Non-existing class found: Bar
[MarkDown] Non-existing class found: Baz
[MarkDown] Class not found: Other

View File

@@ -0,0 +1,5 @@
### class: Foo
### class: Bar
### class: Baz

View File

@@ -0,0 +1,2 @@
class Foo {
}

View File

@@ -0,0 +1,2 @@
class Other {
}