forever-lint
Checks World of Warcraft addons for problems on WoW Forever, before your users find them.
Forever looks like Classic but runs the modern client: Classic-era version numbers on top of the retail API, with Midnight's addon restrictions. Code written for Classic Era breaks in ways that are easy to miss: GetSpellInfo is gone, WOW_PROJECT_ID is neither Classic nor retail, health values can be secret, and an addon with only a _Vanilla.toc does not load at all.
$ forever-lint MyAddon
forever-lint 0.1.0 · WoW Forever 1.60.1 (70532), interface 16001
MyAddon (MyAddon, MyAddon.toc, 2 Lua files)
warning FL009 MyAddon.toc declares Interface 11509, 120105 but Forever is 16001: the addon shows as out of date ...
MyAddon/Core.lua
2:22 error FL001 `GetSpellInfo` does not exist in Forever. Probably replaced by `C_Spell.GetSpellInfo`. Note: `C_Spell.GetSpellInfo` returns a SpellInfo table, not separate values.
4:19 warning FL004 In Forever `WOW_PROJECT_ID` is 18 (`WOW_PROJECT_CAMELOT`), so `WOW_PROJECT_ID == WOW_PROJECT_CLASSIC` is false. ...
10:10 warning FL003 `hp` holds the result of `UnitHealth`, which can return a secret value in Forever (always). ...
14:17 warning FL006 Event `COMBAT_LOG_EVENT_UNFILTERED`: the combat log is restricted for addons in Forever ...
18:16 error FL001 `GetItemInfo` does not exist in Forever. Use `C_Item.GetItemInfo`.
8 errors, 6 warnings, 1 note in 1 addon(s)
Install
pip install forever-lint # Python 3.10+, no dependencies
forever-lint path/to/MyAddon # one addon, a repo with several, or your whole AddOns folder
What it checks
It follows the TOC Forever would pick, including [AllowLoadGameType ...] per file and the <Script>/<Include> files of XML, so code for other clients is not reported. --all-files checks every .lua file instead.
Fewer false positives
The analysis tracks Lua scopes, so a local or parameter called GetSpellInfo is not reported. It also recognises the usual multi-client patterns:
- Polyfills: if the addon assigns the global itself (
GetSpellInfo = GetSpellInfo or function ...), uses anywhere in the addon are fine. - Guards:
if GetMouseFocus then,GetMouseFocus and ...,C_X and C_X.Y or Oldbecome notes, because the fallback branch is the one that runs in Forever. - Checked replacement:
if C_Item and C_Item.GetItemSpell then return C_Item.GetItemSpell(id) end return GetItemSpell(id)is a note. Forever has the new function, so the old line does not run there. - Embedded libraries (
Libs/,lib/, ...) are summarised, never fail the run, and are listed with--libs.
Silencing a finding
local x = GetMouseFocus() -- forever-lint: ignore FL001
-- forever-lint: ignore-next-line
OldThing()
-- forever-lint: ignore-file
Or skip whole rules with --ignore FL002,FL004.
With luacheck or pre-commit
forever-lint --export-luacheck > .luacheckrc.forever prints a read_globals block with every function Forever has (deprecation fallbacks left out), to paste into an existing .luacheckrc.
For pre-commit:
repos:
- repo: https://github.com/JoseArgento/forever-lint
rev: v0.1.0
hooks:
- id: forever-lint
Options
forever-lint PATH... [--format text|json|sarif] [-o FILE] [--fail-on error|warning|note|never]
[--ignore RULES] [--libs] [--all-files] [--no-color]
forever-lint --explain GetSpellInfo # what Forever has for a name
forever-lint --list-rules
The exit code is 1 when there is a finding at the --fail-on severity (default error) outside libraries.
In CI (GitHub Actions)
Findings show up as code scanning annotations on the pull request:
jobs:
forever:
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
steps:
- uses: actions/checkout@v4
- uses: JoseArgento/forever-lint@v0
with:
path: .
fail-on: error
Without the action: pip install forever-lint && forever-lint . --format sarif -o forever-lint.sarif, then upload the file with github/codeql-action/upload-sarif.
Compatibility index
index/ builds a static site that runs forever-lint over popular addons with public GitHub repositories (index/addons.json) and publishes the results with GitHub Pages every week. It shows file, line and message for every finding, never the addons' code. To add an addon, open a pull request with its repository in index/addons.json.
python index/build_index.py --cache .index-cache --out site # then open site/index.html
python index/build_api.py --out site # site/api.html: every Classic API that moved
The same site has an API migration table (api.html, also as api.json): every function that existed in a Classic client and is missing, moved or restricted in Forever, with its replacement, plus the deprecation fallbacks, secret-value functions and events. An addon author asked for exactly this list in the Forever beta feedback thread.
"Now works on Forever" feed. Every week the index is compared with the previous one, and the addons that got better (from "does not load" to "loads", or from errors to clean) go into an RSS feed at feed.xml on the same site. Links open that addon's row. To also post them to a Telegram channel, create a bot with @BotFather, add it to the channel, and set TELEGRAM_BOT_TOKEN and TELEGRAM_CHAT_ID as repository secrets; without them the step is skipped.
Where the data comes from
Everything in src/forever_lint/data/api.json is generated by tools/build_db.py from public data, and a weekly workflow rebuilds it when Blizzard patches Forever:
- What exists in Forever and other clients: the global and namespace API dumped from the running clients by Ketho/BlizzardInterfaceResources (branches
forever,classic_era,classic,classic_anniversary,live, dumped with deprecation fallbacks off), plus every name that appeared in its history since 2019, for APIs older addons still call. - Deprecation fallbacks, replacements and secret values: Blizzard's own UI source as mirrored by Gethe/wow-ui-source. That covers the
Blizzard_Deprecated*addons (which ones load for Forever's game type, and whether their target exists:CombatLogGetCurrentEventInfopoints to a function addons cannot use), the 11.0 spell API transition guide, andBlizzard_APIDocumentationGeneratedforSecretReturns,SecretWhen*, restricted events and structure return types. - TOC rules: warcraft.wiki.gg TOC format.
- A short list of replacements that cannot be derived (
GetMouseFocus→GetMouseFoci,EasyMenu→MenuUtil.CreateContextMenu, ...) lives intools/curated.json. Each target is checked against Forever when the database is built.
Only API names and flags are shipped. No Blizzard code is included.
Limitations
- It is a lexical analysis, not an interpreter. It cannot tell which side of
if isClassic then ... else ... endruns in Forever, so code in a branch for another client is still reported. Use the guard patterns above, an inlineignore, or the TOC's[AllowLoadGameType]to keep that code out of Forever. - "Probably replaced by" means the replacement was matched by name (
GetAddOnMetadata→C_AddOns.GetAddOnMetadata). Check its arguments and return values; manyC_functions return a table. - Widget methods (
frame:SetBackdrop) and global constants are not checked yet. - Events are read from string literals (
RegisterEvent("PLAYER_DEAD")) and, when a file registers events from a variable (for event in pairs(handlers) do frame:RegisterEvent(event) end), from the keys of its handler tables (PLAYER_DEAD = function). Events built at runtime ("UNIT_" .. kind) are not followed. - Secret values are flagged when the value is used directly, or through a local in the same file, in arithmetic or a comparison. Cached globals (
local UnitHealth = UnitHealth) count. A check on the same line (issecretvalue(hp) or,E:NotSecretValue(hp) and) counts as a guard; a check on an earlier line does not. Values passed through tables or other functions are not followed.
Tested on
Questie, Details!, Bartender4, BigWigs and Deadly Boss Mods (November 2026 versions). Questie and Details already ship a _Camelot.toc. The few errors left in them are calls to missing APIs in code that Forever's TOC loads.
Support
forever-lint is free and open source. Not affiliated with or endorsed by Blizzard Entertainment. World of Warcraft is a trademark of Blizzard Entertainment, Inc.
License
MIT
Metadata
Release files for forever-lint 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| forever_lint-0.1.0.tar.gz | 348.8 kB | With provenance | Details for forever_lint-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| forever_lint-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for forever_lint-0.1.0-py3-none-any.whl |
Total release size: 556.9 kB
Release files / forever_lint-0.1.0.tar.gz
| Download URL | forever_lint-0.1.0.tar.gz |
|---|---|
| Size | 348.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3ec679d25aa12f89bb9d65af97c081923c276eccc794d29931d3195c5f3debd1
|
|
BLAKE2b-256 checksum How to use checksums |
ca01d34a580a4257713b7d54778c28a2b996d917f9df84b8206c0535563062be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.
Transparency logRelease files / forever_lint-0.1.0-py3-none-any.whl
| Download URL | forever_lint-0.1.0-py3-none-any.whl |
|---|---|
| Size | 208.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
40bba2028a08f98dfbe6c02cc0f10f13f315448fa6d601c3ac3c3d4c45fb9179
|
|
BLAKE2b-256 checksum How to use checksums |
eb70d7cdbd6434a281942da1490a8e2947f3b79273e4f50defbd9d80c752674c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.
Transparency logSecurity for forever-lint 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for forever_lint-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.