Difference between revisions of "Coding standards"
Jump to navigation
Jump to search
Line 27: | Line 27: | ||
** DbConnection | ** DbConnection | ||
* Creation of OR changes to | * Creation of OR changes to | ||
* Servlets | ** Servlets | ||
* CodeunitPagePublic | ** CodeunitPagePublic | ||
** Code containing SQL |
Revision as of 10:41, 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 formal code review
- Changes to common objects
- Command
- Security
- Controller
- DbConnection
- Creation of OR changes to
- Servlets
- CodeunitPagePublic
- Code containing SQL