Repository navigation
v1.3.0
This release adds shared/remote configuration so teams can maintain one central
alcops.json, introduces the CM0001 diagnostic for config-loading problems, and sharpens the flow-terminating and record-receiver analysis across several rules.
✨ New features
- Remote ALCops configuration. A new
Extends.Sourcesetting lets projects inherit one centrally maintainedalcops.json(local or HTTP) and override selected settings locally. Failed inheritance falls back to complete defaults, HTTP responses are size-limited with a 30-second per-workspace cooldown, and credentials in rejected URLs are stripped from diagnostics. (#500) - CM0001 (new rule, Warning, on by default) — a found-but-broken
alcops.jsonno longer fails silently. Reports an unreadable file (I/O or permission error), malformed JSON, or unknown top-level settings (one warning per typo'd key; recognized settings still apply). No file at all still means silent defaults. (#512)
🎯 Rule improvements
- Flow-terminating analysis (PC0038, FC0007, LC0089, LC0090). Introduced a shared, semantic classifier for AL calls that terminate control flow, and extended PC0038's named-return tracking to
vararguments in conditions and other non-ordinary statements. Fixes theFieldErrorfalse positive (#463) and prevents false negatives from overly broad built-in name matching (#468). (#505) - PC0030 now treats a table that declares a parameterless
GetRecordOncemethod as a setup table — Microsoft's caching pattern on 9+ BaseApp setup tables — catching setup tables whose primary-key field doesn't follow the usual naming convention. (#508)
🐛 Fixes
- All record-receiver forms handled consistently. Audited every receiver-relevant analyzer for the four AL record-method receiver forms — named variable, implicit
Rec, bare implicit self, andthis— and applied minimal fixes across 10 analyzers. (#509) - PC0037 now decides by
TableTypefor inherently temporary tables: aRecord X temporaryon aTableType = Temporarytable is no longer exempted by the redundanttemporarykeyword. The keyword still exempts variables of persisted tables, and externally-backed table types stay excluded. (#485)
📚 Documentation & internal
- Restructured the
.claude/rules guides by concern, normalized rule docs to a why-only template, added a rules validator, and adopted thenav-sdk-docsplugin plus aREVIEW.mdfor/code-review. (#513, #526, #527, #528) - Test reliability: the CM0001 fake settings server now shuts down cleanly after its serve loop exits. (#542)
Full changelog: v1.2.0...v1.3.0