Difference between revisions of "Coding standards"

From TempusServa wiki
Jump to navigation Jump to search
(Created page with "=== Naming standards (tobe) === Package / naming placement * Package name all lowercase * General platform entities ** Servlets ** Fields ** Views * Solution specific code Class naming * Starting with uppercase * No special characters * Seperate words with uppercase === Safety standards === * Input sanitization used in SQL, using either ** Escape all string parameters using DbConnection.EscapeSQL ** Prepared statements * Page codeunits should contain user group restr...")
 
Line 21: Line 21:
=== Review standards ===
=== Review standards ===
The following CHANGES requires a code review
The following CHANGES requires a code review
* Changes to common objects
* Existing Common objects
** Command
** Command
** Security
** Security
* Changes to base servlets
* New/existing Servlets
* CodeunitPagePublic
* New/existing CodeunitPagePublic

Revision as of 11:37, 18 November 2022

Naming standards (tobe)

Package / naming placement

  • Package name all lowercase
  • General platform entities
    • Servlets
    • Fields
    • Views
  • Solution specific code

Class naming

  • Starting with uppercase
  • No special characters
  • Seperate words with uppercase

Safety standards

  • Input sanitization used in SQL, using either
    • Escape all string parameters using DbConnection.EscapeSQL
    • Prepared statements
  • Page codeunits should contain user group restrictions

Review standards

The following CHANGES requires a code review

  • Existing Common objects
    • Command
    • Security
  • New/existing Servlets
  • New/existing CodeunitPagePublic