no-warn
Reports direct calls to the global warn() function.
Rule details Problem
Section titled “Rule details ”ProblemThis rule reports warn(...) when it is called as a global function. The rule does not take options.
The message points you toward a logging package instead, because raw warning output is hard to filter and harder to work with once a codebase gets larger.
Examples
Section titled “Examples” Incorrect
warn("API endpoint deprecated");warn("Missing config property:", key);warn("Unexpected state in component"); Correct
log.Warning("API endpoint deprecated");log.Warning("Missing config property:", key);logger.warn("Unexpected state in component");Related rules
Section titled “Related rules” no-print Reports direct calls to print()
RbxUtil Log API Reference for one logging option on Roblox