1
0
mirror of https://github.com/sasjs/lint.git synced 2025-12-11 01:44:36 +00:00

fix: doxygen header requires to only start with double asterisks

This commit is contained in:
Saad Jutt
2021-06-14 18:16:05 +05:00
parent be9d5b8e68
commit 95502647e8
2 changed files with 2 additions and 2 deletions

View File

@@ -128,7 +128,7 @@ describe('hasDoxygenHeader - fix', () => {
/**
@file
@brief Returns an unused libref
**/
*/
%macro mf_getuniquelibref(prefix=mclib,maxtries=1000);
%local x libref;

View File

@@ -59,7 +59,7 @@ const fix = (value: string, config?: LintConfig): string => {
if (result.length === 0) {
return value
} else if (result[0].message == messageForSingleAsterisk)
return value.replace('/*', '/**').replace('*/', '**/')
return value.replace('/*', '/**')
const lineEndingConfig = config?.lineEndings || LineEndings.LF
const lineEnding = lineEndingConfig === LineEndings.LF ? '\n' : '\r\n'