mirror of
https://github.com/sasjs/lint.git
synced 2025-12-10 17:34:36 +00:00
fix: pass lintConfig as param to isIgnored function
This commit is contained in:
@@ -13,7 +13,7 @@ export const lintFile = async (
|
||||
filePath: string,
|
||||
configuration?: LintConfig
|
||||
): Promise<Diagnostic[]> => {
|
||||
if (await isIgnored(filePath)) return []
|
||||
if (await isIgnored(filePath, configuration)) return []
|
||||
|
||||
const config = configuration || (await getLintConfig())
|
||||
const text = await readFile(filePath)
|
||||
|
||||
@@ -26,7 +26,7 @@ export const lintFolder = async (
|
||||
const config = configuration || (await getLintConfig())
|
||||
let diagnostics: Map<string, Diagnostic[]> = new Map<string, Diagnostic[]>()
|
||||
|
||||
if (await isIgnored(folderPath)) return diagnostics
|
||||
if (await isIgnored(folderPath, config)) return diagnostics
|
||||
|
||||
const fileNames = await listSasFiles(folderPath)
|
||||
await asyncForEach(fileNames, async (fileName) => {
|
||||
|
||||
Reference in New Issue
Block a user