Skip to content

Commit

Permalink
Merge pull request #211 from sasjs/quick-fix
Browse files Browse the repository at this point in the history
fix: pass lintConfig as param to isIgnored function
  • Loading branch information
allanbowe authored Apr 17, 2023
2 parents 04cfa45 + 0dfd1fb commit 8badfd9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lint/lintFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/lint/lintFolder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 8badfd9

Please sign in to comment.