selene-lib 0.31.0

A library for linting Lua code. You probably want selene instead.
Documentation
-- Test local assignment restriction
local deprecatedFunction = OldLibrary.Utils.deprecatedFunction

-- Test function call restriction
OldLibrary.Utils.deprecatedFunction()

-- Test function argument restriction
fn(OldLibrary.Utils.deprecatedFunction)

-- Test table constructor restriction
local config = { callback = OldLibrary.Utils.deprecatedFunction }

-- Test return statement restriction
function getHandler()
    return OldLibrary.Utils.deprecatedFunction
end

-- Test nested table restriction
local nested = { deep = { handler = OldLibrary.Utils.deprecatedFunction } }

-- Test if expression restriction
local handler = condition and OldLibrary.Utils.deprecatedFunction or nil

-- Test require restriction
local required = require(OldLibrary.Utils.deprecatedFunction)

-- Test global assignment restriction
global = OldLibrary.Utils.deprecatedFunction