linter

Source   Edit  

This module implements the style checker.

Consts

Letters = {'a'..'z', 'A'..'Z', '0'..'9', '\x80'..'\xFF', '_'}
Source   Edit  

Procs

proc differ(line: string; a, b: int; x: string): string {....raises: [], tags: [],
    forbids: [].}
Source   Edit  
proc identLen(line: string; start: int): int {....raises: [], tags: [], forbids: [].}
Source   Edit  

Templates

template checkPragmaUse(ctx: PContext; info: TLineInfo; w: TSpecialWord;
                        pragmaName: string; sym: PSym)
Check builtin pragma uses match their definition's style. Note: This only applies to builtin pragmas, not user pragmas. Source   Edit  
template styleCheckDef(ctx: PContext; info: TLineInfo; s: PSym)
Check symbol definitions adhere to NEP1 style rules. Source   Edit  
template styleCheckDef(ctx: PContext; info: TLineInfo; sym: PSym; k: TSymKind)
Check symbol definitions adhere to NEP1 style rules. Source   Edit  
template styleCheckDef(ctx: PContext; s: PSym)
Check symbol definitions adhere to NEP1 style rules. Source   Edit  
template styleCheckUse(ctx: PContext; info: TLineInfo; sym: PSym)
Check symbol uses match their definition's style. Source   Edit