-
Notifications
You must be signed in to change notification settings - Fork 15
IsValidCreateMethod
Severity - Fail
Check method - Here
A create method name should meet the following conditions:
- If the return type matches the method name, the method name must match the filename and sit within the create folder (without any subfolders)
- e.g. a
Panel
object can sit within a file with the structureEngine/Create/Panel.cs
in a method calledPanel
- e.g. a
If the above cannot be done, then:
- A sub-folder should be created which matches the return type, the method name must match the file name, and the method name should partially match the return type
- e.g. a
Panel
object can sit within a file with the structureEngine/Create/Panel/EnvironmentPanel.cs
in a method calledEnvironmentPanel
- A level of grouping/nesting is permitted when using the second option to help group create methods appropriately. This nesting is permitted up to two levels before it would become incompliant with the guidelines.
- e.g. a
Panel
object can fit within a file with the structureEngine/Create/PlanarPanels/Panel/EnvironmentPanel.cs
orEngine/Create/Panel/PlanarPanels/EnvironmentPanel.cs
- here we group the panels byPlanarPanels
. Either option is compliant for the check to pass. Any further folders would however be incompliant.
- e.g. a
- e.g. a
-
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