sasjs / lint

Linting and formatting for SAS® code

Home Page:https://sasjs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lint v1 MVP

krishna-acondy opened this issue · comments

Linting

  • Presence of trailing spaces. - WARNING
  • Presence of doxygen header. - WARNING
  • Line length warning (configurable length defaulting to 80) - WARNING
  • Filenames should be lowercase, no spaces - WARNING
  • Presence of passwords such as {SAS002} or {SAS001} or {SASENC}. - ERROR
  • NO INVISIBLES! (except spaces, CR / LF, and if necessary, tabs) - ERROR

Formatting

  • Remove trailing spaces
  • Convert tabs to (2) spaces
  • doxygen header added - file should always start /** then header until **/
  • Doxy header <h4> Data Inputs </h4> instead of <h4> Data Inputs </h4> (should be 2 leading spaces)
  • Same for @li sub items