This module implements the style checker.
Directionally, style will become part of the language, think go fmt where violations are errors.
Currently focused on names, but should cover spacing, and more.
General rules of style:
- Saem decides style matters
- lower/upper camel case good; snake case bad
- lower camel case for most things
- upper camel case for non-runtime things (types, some consts)
- single letter names are ok, should be lower; tolerate upper
- all-caps snake case is occassionally tolerated
Procs
proc checkPragmaUse(conf: ConfigRef; info: TLineInfo; w: TSpecialWord; pragmaName: string) {. ...raises: [Exception, ERecoverableError], tags: [RootEffect].}
- Source Edit