Skip to content

ci: lint with the shared SwiftLint and SwiftFormat config - #26

Merged
Paullo9 merged 9 commits into
mainfrom
issue-61-lint
Oct 30, 2026
Merged

Paullo9 merged 9 commits into
mainfrom
issue-61-lint

Conversation

@Paullo9

@Paullo9 Paullo9 commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Paul · project thread

Part of #17 (the lint item; the rest of #17 is in #34).

What and why

  • The suite's shared SwiftLint and SwiftFormat config, and a CI lint job running both pinned images (SwiftLint 0.65.1, SwiftFormat 0.64.4) on every push.
  • The three trailing spaces SwiftFormat flagged in SpectroEELS file headers are removed, so the job is green.

Test evidence

  • swiftformat --lint . (0.64.4) and swiftlint lint --strict --quiet (0.65.1) report nothing locally on the merged branch.

🤖 Generated with Claude Code

…int job

.swiftlint.yml and .swiftformat are copies of the suite's one config (edited there, copied by
its sync tool). The fixes they asked for are whitespace, a duplicate import, redundant
parentheses or semicolons; no number or name changes. CI's new lint job runs SwiftLint 0.65.1
(--strict) and SwiftFormat 0.64.4 (--lint) from pinned images. swift build --build-tests green.

Part of mac4DSTEM/macEM-suite#61.

Done: this repo lints from the shared config. Next: none here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Paullo9 Paullo9 self-assigned this Oct 27, 2026
… up to date

A copy of the suite's template: Sundays and on demand, build, scan with --retain-public,
update one open issue with the findings. Nothing is deleted by it.

Part of mac4DSTEM/macEM-suite#61.

Done: weekly unused-code scan in CI. Next: triage its first issue.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Paullo9 Paullo9 changed the title Lint: the suite's shared SwiftLint and SwiftFormat config, and a CI lint job ci: lint with the shared SwiftLint and SwiftFormat config Oct 29, 2026
@Paullo9
Paullo9 merged commit 6794315 into main Oct 30, 2026
7 checks passed
@Paullo9
Paullo9 deleted the issue-61-lint branch October 30, 2026 08:48
Paullo9 added a commit that referenced this pull request Oct 30, 2026
…drops iOS (#34)

ci: pinned images and Xcode, --parallel, Pages permissions on the deploy job, no iOS claim (#17)

Both CI jobs and the docs build name their image and Xcode (DEVELOPER_DIR: 26.6 on macos-26, 26.0 on macos-15) instead of
picking the newest with sort -V, which can select a beta. The gate runs tools/test.sh --parallel; it already exits with
swift test's status and fails on any warning, so the tee and the second warnings step go, and with them the CIScriptTests
check that parsed ci.yml as text. Pages write and id-token move from the workflow to the deploy job. Package.swift drops
.iOS(.v18): SpectroKit has never built for iOS (FormatoKit's readers use macOS-only XMLDocument, FormatoKit#27).

Done: #17's toolchain, permissions and iOS parts; lint (#26), Dependabot and the reference scan (#25) land in their own PRs.
Next: Paul enables Pages for the DocC site.

BREAKING CHANGE: Package.swift no longer declares iOS; it never built there.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant