Skip to content

Commit c62aee2

Browse files
author
Spongman
committed
add build warning for p5 methods that don't have examples.
1 parent 6b9ddaf commit c62aee2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/preprocessor.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ function smokeTestMethods(data) {
66
data.classitems.forEach(function(classitem) {
77
if (classitem.itemtype === 'method') {
88
new DocumentedMethod(classitem);
9+
10+
if (classitem.access !== 'private' &&
11+
classitem.file.substr(0, 3) === 'src' &&
12+
classitem.name &&
13+
!classitem.example) {
14+
console.log(classitem.file + ':' + classitem.line +
15+
': ' + classitem.itemtype + ' ' +
16+
classitem.class + '.' + classitem.name +
17+
' missing example');
18+
}
919
}
1020
});
1121
}

0 commit comments

Comments
 (0)