mirror of
https://github.com/sasjs/lint.git
synced 2026-01-09 13:30:05 +00:00
feat: new rules noNestedMacros & hasMacroParentheses
This commit is contained in:
3
src/utils/getColNumber.ts
Normal file
3
src/utils/getColNumber.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export const getColNumber = (statement: string, text: string): number => {
|
||||
return (statement.split('\n').pop() as string).indexOf(text) + 1
|
||||
}
|
||||
Reference in New Issue
Block a user