You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Eli C. Lowry edited this page Aug 10, 2026
·
5 revisions
The following are the coding guidelines for development for Serval (and for the NLP team in general).
For setting up your development environment, please look at the README.
General guidelines
Code formatting - CSharpier
All C# code should be formatted using CSharpier. The best way to enable support for CSharpier is to install the appropriate IDE extension and configure it to format on save.
Try to resolve all spelling issues by adding new entries into the settings.json if necessary.
The .editorconfig file specifies many of the naming conventions and formatting checks. All of the warnings should be resolved. Projects are set to fail if there are warnings on builds.
Database updates
If a new field has to be added to a model file (that is stored in a MongoDB) ask yourself:
If the field can legitimately be null in the future, make the field nullable
If the field cannot legitimately be null in the future, migrate the database