mirror of
https://github.com/sasjs/lint.git
synced 2025-12-10 17:34:36 +00:00
chore(*): revert change to example file
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
import { formatFile } from './format/formatFile'
|
||||
import path from 'path'
|
||||
import { formatText } from './format/formatText'
|
||||
import { lintText } from './lint'
|
||||
|
||||
@@ -9,17 +7,15 @@ const content = `%put 'Hello';
|
||||
%put 'test';
|
||||
%mend;\r\n`
|
||||
|
||||
// console.log(content)
|
||||
// lintText(content).then((diagnostics) => {
|
||||
// console.log('Before Formatting:')
|
||||
// console.table(diagnostics)
|
||||
// formatText(content).then((formattedText) => {
|
||||
// lintText(formattedText).then((newDiagnostics) => {
|
||||
// console.log('After Formatting:')
|
||||
// console.log(formattedText)
|
||||
// console.table(newDiagnostics)
|
||||
// })
|
||||
// })
|
||||
// })
|
||||
|
||||
formatFile(path.join(__dirname, 'Example File.sas'))
|
||||
console.log(content)
|
||||
lintText(content).then((diagnostics) => {
|
||||
console.log('Before Formatting:')
|
||||
console.table(diagnostics)
|
||||
formatText(content).then((formattedText) => {
|
||||
lintText(formattedText).then((newDiagnostics) => {
|
||||
console.log('After Formatting:')
|
||||
console.log(formattedText)
|
||||
console.table(newDiagnostics)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user