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:
@@ -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 [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user