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:
@@ -128,7 +128,7 @@ describe('hasDoxygenHeader - fix', () => {
|
||||
/**
|
||||
@file
|
||||
@brief Returns an unused libref
|
||||
**/
|
||||
*/
|
||||
|
||||
%macro mf_getuniquelibref(prefix=mclib,maxtries=1000);
|
||||
%local x libref;
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user