mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-08-22 07:16:03 +00:00
The job shipped with its own promotion condition — "drop continue-on-error once the baseline proves stable" — and the baseline has now been stable across a month of merges since it landed July 8 (#1410). Known macOS-scan false positives stay suppressed by the committed baseline; --strict already fails the step on NEW dead code, so the only change is that the failure now blocks instead of annotating. Co-authored-by: jack <jackjackbits@users.noreply.github.com> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
33 lines
1.0 KiB
YAML
33 lines
1.0 KiB
YAML
name: Dead Code
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
jobs:
|
|
periphery:
|
|
name: Periphery scan
|
|
runs-on: macos-latest
|
|
timeout-minutes: 30
|
|
# Blocking, like SwiftLint since #1646. The baseline (committed July 8)
|
|
# has been stable across a month of merges — the "drop continue-on-error
|
|
# once the baseline proves stable" condition this job shipped with is met.
|
|
# Known macOS-scan false positives stay suppressed by the baseline; only
|
|
# NEW dead code fails the job (--strict below).
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v5
|
|
|
|
- name: Install Periphery
|
|
# homebrew-core formula; the peripheryapp tap lags years behind.
|
|
run: brew install periphery
|
|
|
|
- name: Scan for dead code
|
|
# Config comes from .periphery.yml; known findings (mostly iOS-only
|
|
# code invisible to a macOS scan) are suppressed by the committed
|
|
# baseline. --strict fails the step when NEW dead code appears.
|
|
run: periphery scan --strict --disable-update-check
|