Repository navigation
style: establish the Lua baseline for 1.3.0 - #17
Conversation
|
@pullfrog review |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes Reviewed both commits establishing the Lua baseline and lightweight CI on release/1.3.0, including the linked requirements in #15.
- Mechanical Lua baseline: Repository-wide StyLua formatting is isolated in the first commit; independently verified all 108 Lua files with StyLua 2.5.2 AST verification and matching normalized Lua 5.2 instructions/constants.
- Lint cleanup: Reviewed unused-code removal, preserved
requireside effects and helper argument positions, overwritten connector definitions, obsolete nil-valued fields, and the narrowly scoped legacy-achievement exemption. - CI enforcement: Reviewed complete-diff routing, changed-file checks on PRs, full tracked-Lua checks on relevant branch pushes, configuration probes, and actual-workflow file-selection regressions.
- Tooling and packaging: Reviewed the imported authorization helper, source-boundary checks, deterministic ZIP builder/validator, and contributor/development guidance.
Independent checks passed: Lua 5.2 syntax, Luacheck 1.2.0 with zero warnings/errors across 108 files, StyLua 2.5.2, actionlint 1.7.12, Python AST parsing, all 17 routing/authorization/package regression tests, diff whitespace checks, and validation of all 1,038 packaged files. Official Factorio 2.1.21 prototype dumps before and after lint cleanup were byte-for-byte identical with all optional official mods disabled (3,726 prototypes) and with Space Age enabled (6,310 prototypes).
For this mechanical baseline, I combined inspection of non-whitespace changes and the separate cleanup commit with whole-file AST/bytecode verification; this also covered Lua patches omitted from GitHub's aggregate diff. Graphical playthroughs, existing-save migration, and optional third-party mod combinations were not exercised. No repository files were changed, and the PR remains a draft.
gpt-6.1-sol | 𝕏

Establish the Lua formatting and lint baseline for
release/1.3.0on the requested maintenance branch. This branch had 108 Lua files, 109 lint warnings, and no copy of the CI tooling recently merged intomainin #16.The first commit (
b348a15) is the dedicated mechanical StyLua 2.5.2 baseline: 103 files needed formatting, with trailing comment whitespace also removed. The second commit reviews and resolves lint debt, ports the existing CI tooling from #16, and updates contributor/development guidance. It preserves the release branch's Factorio 2.1 and adjustable-inserter changes; no gameplay tree is merged frommain.Lint cleanup removes unused code and overwritten connector literals, preserves
requireside effects and function argument positions, and removes obsolete prototype fields whose referenced globals are nil in the supported engine. Genuine Factorio globals receive precise declarations. One line-specific warning annotation retains deliberately disabled legacy achievements; no blanket suppressions are added.PRs check changed Lua files. Relevant pushes to
mainandrelease/1.3.0check all tracked Lua, including lint/formatter configuration changes. The existing actual-workflow regression now covers this distinction. The imported authorization helper/tests are retained as dependencies of existing CI; the Pullfrog agent workflow is not installed on this branch.Validation on reviewed commit
d31b4e8c5eeb7da5457204bbad8f9c97349540ec:Assets, locale, release metadata/version, and attribution notices are unchanged. Engine checks do not cover a graphical playthrough, save migration, or every optional third-party mod combination. Factorio binaries and validation artifacts remain outside Git and GitHub Actions. Keep this PR as a draft for maintainer review.
Closes #15.
GitHub only processes closing keywords for PRs targeting the default branch. Because this PR targets
release/1.3.0, close #15 manually when this fix is merged there.