mirror of
https://github.com/kuhyx/todo-app.git
synced 2026-11-28 09:29:14 +01:00
Drop lint, coverage and line-cap gates
Bug-class-check: none — gate policy change (kuhy 2026-11-27) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WzxdWZDq7ef5JyQd7Rx3Ju
This commit is contained in:
parent
706c2465f9
commit
a28d5ac2df
33
.github/workflows/file-length.yml
vendored
33
.github/workflows/file-length.yml
vendored
@ -1,33 +0,0 @@
|
|||||||
name: file-length
|
|
||||||
|
|
||||||
# The 250-line cap, enforced on push as well as at commit time. The local
|
|
||||||
# pre-commit hook can be skipped (a fresh clone that never ran
|
|
||||||
# scripts/install_hooks.sh has no hooks at all), so the cap needs a second
|
|
||||||
# gate that no one can forget to install.
|
|
||||||
#
|
|
||||||
# Deliberately a SEPARATE workflow from release-apk.yml: a file that grew too
|
|
||||||
# long should fail lint, not block publishing an APK.
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [main]
|
|
||||||
pull_request:
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
file-length:
|
|
||||||
name: file length <= 250 lines
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
# The gate and its exemption list live in the shared utils repo so every
|
|
||||||
# repo enforces the same cap. Checking it out beats vendoring a copy
|
|
||||||
# here, which is exactly how a gate and a survey start disagreeing.
|
|
||||||
- name: Check out the shared gate
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
repository: kuhyx/utils
|
|
||||||
path: .utils
|
|
||||||
|
|
||||||
- name: Enforce the cap
|
|
||||||
run: bash .utils/scripts/check_file_length.sh --all
|
|
||||||
@ -40,17 +40,6 @@ repos:
|
|||||||
pass_filenames: false
|
pass_filenames: false
|
||||||
always_run: true
|
always_run: true
|
||||||
|
|
||||||
# The shared 250-line cap. Checks only the files in the commit, so an
|
|
||||||
# unrelated commit never breaks; exits 1 rather than warning. No
|
|
||||||
# baseline and no allowlist -- those are suppressions. The exemption
|
|
||||||
# list (generated/vendored/data files) lives with the checker in
|
|
||||||
# ~/src/utils/file_length/config.py so the gate and the survey cannot
|
|
||||||
# disagree.
|
|
||||||
- id: file-length
|
|
||||||
name: file length <= 250 lines
|
|
||||||
entry: scripts/check_file_length.sh
|
|
||||||
language: system
|
|
||||||
|
|
||||||
# Four markdown namespaces (README / CLAUDE* / DOCS* / TODO*), plus the
|
# Four markdown namespaces (README / CLAUDE* / DOCS* / TODO*), plus the
|
||||||
# rule that a TODO carries "REMOVE ME AFTER FINISH" and nothing else may.
|
# rule that a TODO carries "REMOVE ME AFTER FINISH" and nothing else may.
|
||||||
# Shared gate in ~/src/utils owns the namespaces and the exemption list, so
|
# Shared gate in ~/src/utils owns the namespaces and the exemption list, so
|
||||||
|
|||||||
@ -47,9 +47,9 @@ and sync peer-to-peer through a GitHub repo used as dumb storage.
|
|||||||
- run: `./run.sh` (desktop; mobile: `flutter run`)
|
- run: `./run.sh` (desktop; mobile: `flutter run`)
|
||||||
- test: `flutter test --reporter=compact`
|
- test: `flutter test --reporter=compact`
|
||||||
- test-changed: `scripts/test_changed.sh`
|
- test-changed: `scripts/test_changed.sh`
|
||||||
- lint: `flutter analyze`
|
- lint: n/a: dropped (kuhy, 2026-11-27)
|
||||||
- coverage: `flutter test --coverage --reporter=compact`
|
- coverage: n/a: dropped (kuhy, 2026-11-27)
|
||||||
- coverage-gaps: `coverage-gaps coverage/lcov.info`
|
- coverage-gaps: n/a: dropped (kuhy, 2026-11-27)
|
||||||
- deploy: `scripts/deploy.sh` (MCP service, desktop pacman package, phone release; exits non-zero unless every health check passes)
|
- deploy: `scripts/deploy.sh` (MCP service, desktop pacman package, phone release; exits non-zero unless every health check passes)
|
||||||
|
|
||||||
## Architecture
|
## Architecture
|
||||||
|
|||||||
@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
|||||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||||
# In Windows, build-name is used as the major, minor, and patch parts
|
# In Windows, build-name is used as the major, minor, and patch parts
|
||||||
# of the product and file versions while build-number is used as the build suffix.
|
# of the product and file versions while build-number is used as the build suffix.
|
||||||
version: 1.0.108+1
|
version: 1.0.109+1
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ^3.12.2
|
sdk: ^3.12.2
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user