Skip to content

v1.3.0

Choose a tag to compare

@github-actions github-actions released this 14 Sep 06:29
· 85 commits to main since this release

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.Source setting lets projects inherit one centrally maintained alcops.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.json no 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 var arguments in conditions and other non-ordinary statements. Fixes the FieldError false positive (#463) and prevents false negatives from overly broad built-in name matching (#468). (#505)
  • PC0030 now treats a table that declares a parameterless GetRecordOnce method 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, and this — and applied minimal fixes across 10 analyzers. (#509)
  • PC0037 now decides by TableType for inherently temporary tables: a Record X temporary on a TableType = Temporary table is no longer exempted by the redundant temporary keyword. 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 the nav-sdk-docs plugin plus a REVIEW.md for /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