How the Check Works
This check inspects the content of specified project folders, including subfolders if configured to do so. It verifies that the files within these folders match the allowed file types you’ve defined. If any files with incorrect file types are found, the check logs them as issues.
When to Use This Check
- Enforce File Type Rules: Ensure that specific folders in your Unity project contain only files of certain types, such as scripts, audio, or custom file types.
- Prevent Unwanted Files: Catch and address any files with incorrect file types early, preventing potential issues later in development.
- Customize Folder Rules: Tailor file type requirements for different project directories.
How to Use the Check
- Drawing Editor: Use the editor to specify folder paths, allowed file types, and whether to check subfolders. You can add or remove folders as needed.
- Performing Checks: Call the
PerformCheckForProject()
method to check the file types in the specified folders. If discrepancies are found, they will be logged as issues.
Methods
PerformCheckForProject()
: Performs the file type check for the entire project.MakeCheck()
: Implements the file type check logic for the specified folders.
Attributes
longDescription
: Provides a description of what this check does.SingleFolders
class: Defines folder-specific file type rules.m_Folders
: A list of folder-specific file type rules.