Skip to content

Commit b3c6147

Browse files
authored
docs: 2026 update (#122)
* chore: update copyright year to 2026 and adjust analysis options - Updated copyright year in LICENSE, num_status_code_extension.dart, status_code.dart, and status_code_extension.dart files. - Modified analysis_options.yaml to change rules and add new metrics. - Adjusted pubspec.yaml for dependency updates and environment SDK version. - Cleaned up ignore statements in various Dart files for better clarity. * chore(ci): update workflows and tests for improved status code handling - Refactored analyze and test workflows to use updated pana command. - Enhanced test coverage for status code parsing and custom status codes. - Updated Dart SDK version in pubspec.yaml and example pubspec.yaml. - Adjusted CHANGELOG for new capabilities in v3.0.0.
1 parent 1567c6f commit b3c6147

17 files changed

Lines changed: 376 additions & 116 deletions

.github/workflows/analyze.yaml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,13 @@ jobs:
4545
run: dart pub upgrade
4646

4747
- name: 🕵️ Analyze code
48-
uses: ValentinVignal/action-dart-analyze@v1.1
48+
uses: ValentinVignal/action-dart-analyze@v2.1
4949
if: ${{ github.event_name == 'pull_request' }}
5050
with:
51-
fail-on: "format"
52-
token: ${{ secrets.GITHUB_TOKEN }}
51+
fail-on: "note"
52+
fail-on-format: true
5353
format: true
54+
token: ${{ secrets.GITHUB_TOKEN }}
5455

5556
- name: 🏜️ Publish - dry run
5657
if: ${{ github.event_name == 'pull_request' }}
@@ -60,8 +61,5 @@ jobs:
6061
if: ${{ github.event_name == 'pull_request' }}
6162
run: |
6263
sudo apt-get install webp
63-
PANA=$(dart run pana . --no-warning)
64-
PANA_SCORE=$(echo $PANA | sed -n "s/.*Points: \([0-9]*\)\/\([0-9]*\)./\1\/\2/p")
65-
echo "score: $PANA_SCORE"
66-
IFS='/' read -ra SCORE_ARR <<< "$PANA_SCORE"; SCORE=${SCORE_ARR[0]}
67-
if (( SCORE < 160 )); then echo "Minimum score of 160 was not met! Got $SCORE."; exit 1; fi
64+
dart pub global activate pana
65+
dart pub global run pana . --no-warning --exit-code-threshold 0

.github/workflows/test.yaml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,7 @@ jobs:
3737
run: dart pub upgrade
3838

3939
- name: 🧪 Run Tests
40-
run: |
41-
dart test --timeout=1ms --fail-fast --coverage=coverage
42-
dart run coverage:format_coverage -l -i coverage -o coverage/lcov.info --report-on=lib
43-
44-
- name: 📊 Check Code Coverage
45-
uses: VeryGoodOpenSource/very_good_coverage@v3.0.0
46-
with:
47-
min_coverage: 99
40+
run: dart run coverage:test_with_coverage --fail-under=99
4841

4942
- name: 💯 Upload Code Coverage
5043
uses: codecov/codecov-action@v5.5.2

.vscode/tasks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
},
3636
{
3737
"type": "shell",
38-
"command": "PANA=$(dart run pana . --no-warning); PANA_SCORE=$(echo $PANA | sed -n \"s/.*Points: \\([0-9]*\\)\\/\\([0-9]*\\)./\\1\\/\\2/p\"); echo \"score: $PANA_SCORE\"; IFS='/' read -ra SCORE_ARR <<< \"$PANA_SCORE\"; SCORE=${SCORE_ARR[0]}; if (( SCORE < 160 )); then echo \"Minimum score of 160 was not met! Got $SCORE.\"; exit 1; fi",
38+
"command": "dart pub global run pana . --no-warning --exit-code-threshold 0",
3939
"label": "PANA Score Check"
4040
},
4141
{

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ class ApiClient {
170170
}
171171
```
172172

173-
#### New Features
173+
#### New Capabilities in v3.0.0
174174

175175
- New `mapToRegisteredStatusCodeOrNull` method added!
176176

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
BSD 3-Clause License
22

3-
Copyright (c) 2025, Roman Cinis
3+
Copyright (c) 2026, Roman Cinis
44

55
Redistribution and use in source and binary forms, with or without
66
modification, are permitted provided that the following conditions are met:

0 commit comments

Comments
 (0)