mirror of
https://github.com/sasjs/lint.git
synced 2025-12-11 01:44:36 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8badfd9358 | ||
| 0dfd1fb85b |
@@ -13,7 +13,7 @@ export const lintFile = async (
|
|||||||
filePath: string,
|
filePath: string,
|
||||||
configuration?: LintConfig
|
configuration?: LintConfig
|
||||||
): Promise<Diagnostic[]> => {
|
): Promise<Diagnostic[]> => {
|
||||||
if (await isIgnored(filePath)) return []
|
if (await isIgnored(filePath, configuration)) return []
|
||||||
|
|
||||||
const config = configuration || (await getLintConfig())
|
const config = configuration || (await getLintConfig())
|
||||||
const text = await readFile(filePath)
|
const text = await readFile(filePath)
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ export const lintFolder = async (
|
|||||||
const config = configuration || (await getLintConfig())
|
const config = configuration || (await getLintConfig())
|
||||||
let diagnostics: Map<string, Diagnostic[]> = new Map<string, Diagnostic[]>()
|
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)
|
const fileNames = await listSasFiles(folderPath)
|
||||||
await asyncForEach(fileNames, async (fileName) => {
|
await asyncForEach(fileNames, async (fileName) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user