Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/complexity.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Cognitive Complexity Audit

on:
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
audit:
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: read
steps:
- name: Checkout Codebase
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Dart SDK
uses: dart-lang/setup-dart@v1

- name: Run Complexity Scanner
uses: kevmoo/analytica.dart/packages/cognitive_complexity@main
with:
diff-base: origin/${{ github.base_ref }}
fail-threshold: 15
fail-on-increase: true
25 changes: 25 additions & 0 deletions .github/workflows/lower_bound.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Dependency Lower-Bound Validation

on:
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
validate:
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: read
steps:
- name: Checkout Codebase
uses: actions/checkout@v4

- name: Setup Dart SDK
uses: dart-lang/setup-dart@v1

- name: Run Lower-Bound Validator
uses: kevmoo/analytica.dart/packages/lower_bound@main
with:
format: 'github'
fail-on-error: 'true'
2 changes: 0 additions & 2 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ include: package:dart_flutter_team_lints/analysis_options.yaml

analyzer:
language:
strict-casts: true
strict-inference: true
strict-raw-types: true

linter:
Expand Down
Loading