1
0
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:
2023-04-17 15:12:21 +05:00
parent 04cfa454f8
commit 0dfd1fb85b
2 changed files with 2 additions and 2 deletions

View File

@@ -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)

View File

@@ -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) => {