mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
[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:
@@ -0,0 +1,3 @@
|
||||
[MarkDown] Non-existing class found: Bar
|
||||
[MarkDown] Non-existing class found: Baz
|
||||
[MarkDown] Class not found: Other
|
||||
@@ -0,0 +1,5 @@
|
||||
### class: Foo
|
||||
|
||||
### class: Bar
|
||||
|
||||
### class: Baz
|
||||
@@ -0,0 +1,2 @@
|
||||
class Foo {
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
class Other {
|
||||
}
|
||||
Reference in New Issue
Block a user