1
0
mirror of https://github.com/sasjs/lint.git synced 2026-04-12 00:43:13 +00:00

chore(*): add PR template, add TSDoc comments

This commit is contained in:
Krishna Acondy
2021-03-22 20:36:19 +00:00
parent bf23963127
commit da528bb031
12 changed files with 77 additions and 1 deletions

View File

@@ -15,6 +15,9 @@ const test = (value: string) => {
}
}
/**
* Lint rule that checks for the presence of a Doxygen header in a given file.
*/
export const hasDoxygenHeader: FileLintRule = {
type: LintRuleType.File,
name,

View File

@@ -15,6 +15,9 @@ const test = (value: string, lineNumber: number) => {
}))
}
/**
* Lint rule that checks for the presence of encoded password(s) in a given line of text.
*/
export const noEncodedPasswords: LineLintRule = {
type: LintRuleType.Line,
name,

View File

@@ -9,6 +9,9 @@ const test = (value: string, lineNumber: number) =>
? []
: [{ warning, lineNumber, columnNumber: value.trimEnd().length + 1 }]
/**
* Lint rule that checks for the presence of trailing space(s) in a given line of text.
*/
export const noTrailingSpaces: LineLintRule = {
type: LintRuleType.Line,
name,