MCPcopy
hub / github.com/josdejong/mathjs / validateAscii

Function validateAscii

gulpfile.js:181–202  ·  view source on GitHub ↗
(done)

Source from the content-addressed store, hash-verified

179}
180
181function validateAscii (done) {
182 const Reset = '\x1b[0m'
183 const BgRed = '\x1b[41m'
184
185 getAllFiles(SRC_DIR)
186 .map(validateChars)
187 .forEach(function (invalidChars) {
188 invalidChars.forEach(function (res) {
189 console.log(res.insideComment ? '' : BgRed,
190 'file:', res.filename,
191 'ln:' + res.ln,
192 'col:' + res.col,
193 'inside comment:', res.insideComment,
194 'code:', res.c,
195 'character:', String.fromCharCode(res.c),
196 Reset
197 )
198 })
199 })
200
201 done()
202}
203
204async function generateDocs (done) {
205 const all = (await import('file://' + REF_SRC + 'defaultInstance.js')).default

Callers

nothing calls this directly

Calls 4

getAllFilesFunction · 0.90
forEachMethod · 0.65
mapMethod · 0.65
logMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…