mirror of
https://github.com/sasjs/lint.git
synced 2026-01-08 04:50:07 +00:00
fix: doxygen header requires to only start with double asterisks
This commit is contained in:
@@ -128,7 +128,7 @@ describe('hasDoxygenHeader - fix', () => {
|
|||||||
/**
|
/**
|
||||||
@file
|
@file
|
||||||
@brief Returns an unused libref
|
@brief Returns an unused libref
|
||||||
**/
|
*/
|
||||||
|
|
||||||
%macro mf_getuniquelibref(prefix=mclib,maxtries=1000);
|
%macro mf_getuniquelibref(prefix=mclib,maxtries=1000);
|
||||||
%local x libref;
|
%local x libref;
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ const fix = (value: string, config?: LintConfig): string => {
|
|||||||
if (result.length === 0) {
|
if (result.length === 0) {
|
||||||
return value
|
return value
|
||||||
} else if (result[0].message == messageForSingleAsterisk)
|
} else if (result[0].message == messageForSingleAsterisk)
|
||||||
return value.replace('/*', '/**').replace('*/', '**/')
|
return value.replace('/*', '/**')
|
||||||
|
|
||||||
const lineEndingConfig = config?.lineEndings || LineEndings.LF
|
const lineEndingConfig = config?.lineEndings || LineEndings.LF
|
||||||
const lineEnding = lineEndingConfig === LineEndings.LF ? '\n' : '\r\n'
|
const lineEnding = lineEndingConfig === LineEndings.LF ? '\n' : '\r\n'
|
||||||
|
|||||||
Reference in New Issue
Block a user