-
Notifications
You must be signed in to change notification settings - Fork 21
standards
The Health Gateway team has enabled a number of code analysers as well as editor formatters and for the most part we expect each developer to not introduce any warnings into the code. This document defines defactor and other standards that we want applied but do not enforce through automation.
Any exceptions that need to be introduced should be explicitly reviewed by the team. When updating code that was introduced prior to the introduction of the standard the developer should make best efforts in refactoring to accommodate the standard.
- Configuration is preferred over constant values
- Any code reading more than 3 configuration values should use config model binding
- Controllers call services, services call delegates
-
All services must return a
RequestResult
object -
DB Models should be converted to front end model objects
This is due to DB model serialization issues -
Controllers should not throw exceptions to clients
- EF Queries are to be expressed as Lambda expressions
- DB Delegates methods that write to the DB should always optionally commit
- DB Delegates should always return a
DBResult
object - Any query expecting a result set larger than 1000 records should support paging
-
Developer Standard and Processes
-
Workstation Setup
-
IDE Configuration
-
Application Config
-
RedHat SSO Authorization Server
-
Known Issues