Project sanity tests
Members
-
static, readonly Levels :int
-
Enum for sanity levels.
Properties:
Name Type Description UNKNOWN
int OK
int INFO
int WARNING
int BAD
int CRITICAL
int FATAL
int
Methods
-
static checkCompNames() → {DuAEF.DuSanity.Levels}
-
Checks if there are comps with the same name in the project.
Returns:
DuAEF.DuSanity.Levels - The sanity level of the check. -
static checkExpressionEngine() → {DuAEF.DuSanity.Levels}
-
Checks the expression engine
Returns:
DuAEF.DuSanity.Levels - The sanity level of the check. -
static checkItemSources() → {DuAEF.DuSanity.Levels}
-
Checks if some items have the same source file
Returns:
DuAEF.DuSanity.Levels - The sanity level of the check. -
static checkLayerNames() → {DuAEF.DuSanity.Levels}
-
Checks if there are layers in the active comp which have the same name.
Returns:
DuAEF.DuSanity.Levels - The sanity level of the check. -
static checkMemory() → {DuAEF.DuSanity.Levels}
-
Checks the memory in use
Returns:
DuAEF.DuSanity.Levels - The sanity level of the check. -
static checkMP() → {DuAEF.DuSanity.Levels}
-
Checks the number of master properties in the project
Returns:
DuAEF.DuSanity.Levels - The sanity level of the check. -
static checkNumItems() → {DuAEF.DuSanity.Levels}
-
Checks the number of items in the project
Returns:
DuAEF.DuSanity.Levels - The sanity level of the check. -
static checkPrecomps() → {DuAEF.DuSanity.Levels}
-
Checks if there are precomps in the project root folder
Returns:
DuAEF.DuSanity.Levels - The sanity level of the check. -
static checkProjectSize() → {DuAEF.DuSanity.Levels}
-
Checks the project file size.
Returns:
DuAEF.DuSanity.Levels - The sanity level of the check. -
static checkSave() → {DuAEF.DuSanity.Levels}
-
Checks if the project has been saved recently.
Returns:
DuAEF.DuSanity.Levels - The sanity level of the check. -
static checkUnusedComps() → {DuAEF.DuSanity.Levels}
-
Checks if there are unused comps in some subfolders
Returns:
DuAEF.DuSanity.Levels - The sanity level of the check. -
static checkUnusedItems() → {DuAEF.DuSanity.Levels}
-
Checks if some items are unused and should be removed
Returns:
DuAEF.DuSanity.Levels - The sanity level of the check. -
static init()
-
Intializes the sanity tests and schedule the monitor task. Has to be called once.
-
static isEnabled() → {boolean}
-
Checks if a Sanity Test is enabled
Returns:
boolean -
static test(refreshopt) → {DuAEF.DuSanity.Levels}
-
Runs all the sanity tests and updates the sanity Button
Parameters:
Name Type Attributes Default Description refresh
boolean <optional>
false Force running the tests instead of just getting the latest result Returns:
DuAEF.DuSanity.Levels - The highest level.