Skip to content

Commit 950bdce

Browse files
authored
chore: align CI workflows and strict analysis options (#100)
1 parent 55cc63c commit 950bdce

3 files changed

Lines changed: 54 additions & 2 deletions

File tree

.github/workflows/complexity.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Cognitive Complexity Audit
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
workflow_dispatch:
7+
8+
jobs:
9+
audit:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
pull-requests: write
13+
contents: read
14+
steps:
15+
- name: Checkout Codebase
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Setup Dart SDK
21+
uses: dart-lang/setup-dart@v1
22+
23+
- name: Run Complexity Scanner
24+
uses: kevmoo/analytica.dart/packages/cognitive_complexity@main
25+
with:
26+
diff-base: origin/${{ github.base_ref }}
27+
fail-threshold: 15
28+
fail-on-increase: true

.github/workflows/lower_bound.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Dependency Lower-Bound Validation
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
workflow_dispatch:
7+
8+
jobs:
9+
validate:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
pull-requests: write
13+
contents: read
14+
steps:
15+
- name: Checkout Codebase
16+
uses: actions/checkout@v4
17+
18+
- name: Setup Dart SDK
19+
uses: dart-lang/setup-dart@v1
20+
21+
- name: Run Lower-Bound Validator
22+
uses: kevmoo/analytica.dart/packages/lower_bound@main
23+
with:
24+
format: 'github'
25+
fail-on-error: 'true'

analysis_options.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ analyzer:
88
- web/**
99
- windows/**
1010
- macos/**
11-
- linux/**
1211
language:
13-
strict-casts: true
12+
strict-raw-types: true
1413

1514
linter:
1615
rules:

0 commit comments

Comments
 (0)