Skip to content

IsValidCreateMethod

Fraser Greenroyd edited this page May 11, 2020 · 2 revisions

Summary

Severity - Fail

Check method - Here

Details

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 structure Engine/Create/Panel.cs in a method called Panel

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 structure Engine/Create/Panel/EnvironmentPanel.cs in a method called EnvironmentPanel
Clone this wiki locally