1
0
mirror of https://github.com/sasjs/lint.git synced 2026-01-15 08:10:05 +00:00

fix(has-doxygen-header): fix logic to handle files with comment blocks

This commit is contained in:
Krishna Acondy
2021-03-30 09:24:03 +01:00
parent 1c09a10290
commit 6350d32d0c
2 changed files with 22 additions and 1 deletions

View File

@@ -8,7 +8,7 @@ const description =
const message = 'File missing Doxygen header'
const test = (value: string) => {
try {
const hasFileHeader = value.split('/**')[0] !== value
const hasFileHeader = value.trimStart().startsWith('/*')
if (hasFileHeader) return []
return [
{