-
Notifications
You must be signed in to change notification settings - Fork 15
HasDescriptionAttribute
Severity - Warning
Check method - Here
The HasDescriptionAttribute
check ensures that a method has a Description
attribute explaining what the method is doing for users.
You can add a Description
attribute with the following syntax sitting above the method:
[Description("Your description here")]
If you have not used any attributes in your file previously, you may need to add the following usings:
using BH.oM.Reflection.Attributes;
using System.ComponentModel;
You may also need to add a reference to the Reflection_oM
to your project if you have not previously used it.
We should be aiming for all properties, objects and methods to have a description. With only the very simplest of self explanatory properties to not require a description by exception - and indeed only where the below guidelines can not be reasonably satisfied.
So what makes a good description?
- A description must impart additional useful information beyond the property name, object and namespace.
- Further to a definition, the description is an opportunity to include usage guidance, tips or additional context.
- The description is a place you can include synonyms etc. to help clarify for others in different regions/domains, being inclusive as possible.
- Also don't forget the addition of a Quantity Attribute can be used now, appropriate for Doubles and Vectors.
-
Introduction to the BHoM:
What is the BHoM for?
Structure of the BHoM
Technical Philosophy of the BHoM -
Getting Started:
Installing the BHoM
Using the BHoM
Submitting an Issue
Getting started for developers -
Use GitHub & Visual Studio:
Using the SCRUM Board
Resolving an Issue
Avoiding Conflicts
Creating a new Repository
Using Visual Studio
Using Visual Studio Code -
Contribute:
The oM
The Engine
The Adapter
The Toolkit
The UI
The Tests -
Guidelines:
Unit convention
Geometry
BHoM_Engine Classes
The IImmutable Interface
Handling Exceptional Events
BHoM Structural Conventions
BHoM View Quality Conventions
Code Versioning
Wiki Style
Coding Style
Null Handling
Code Attributes
Creating Icons
Changelog
Releases and Versioning
Open Sourcing Procedure
Dataset guidelines -
Foundational Interfaces:
IElement Required Extension Methods -
Continuous Integration:
Introduction
Check-PR-Builds
Check-Core
Check-Installer -
Code Compliance:
Compliance -
Further Reading:
FAQ
Structural Adapters
Mongo_Toolkit
Socket_Toolkit