Skip to content

Create unsafe_imports lint rule#787

Merged
schultek merged 6 commits intonextfrom
feat/import-lint
Mar 28, 2026
Merged

Create unsafe_imports lint rule#787
schultek merged 6 commits intonextfrom
feat/import-lint

Conversation

@schultek
Copy link
Copy Markdown
Owner

Description

Adds a new lint rule that reports unsafe imports of platform-specific libraries.

Bildschirmfoto 2026-03-25 um 19 32 42

Type of Change

  • ✨ New feature or improvement

@docs-page
Copy link
Copy Markdown

docs-page bot commented Mar 25, 2026

To view this pull requests documentation preview, visit the following URL:

docs.page/schultek/jaspr~787

Documentation is deployed and generated using docs.page.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 25, 2026

Package Version Report

The following packages have been updated:
jaspr_test : 0.22.4 -> 0.23.0
jaspr : 0.22.4 -> 0.23.0
jaspr_builder : 0.22.4 -> 0.23.0
jaspr_cli : 0.22.4 -> 0.23.0
jaspr_lints : 0.6.1 -> 0.7.0
jaspr_router : 0.8.1 -> 0.8.2
jaspr_content : 0.5.1 -> 0.5.2
jaspr_flutter_embed : 0.4.10 -> 0.4.11
jaspr_riverpod : 0.4.4 -> 0.4.5
jaspr_serverpod : 0.6.0 -> 0.6.1

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 25, 2026

Codecov Report

❌ Patch coverage is 80.62954% with 80 lines in your changes missing coverage. Please review.
✅ Project coverage is 68.35%. Comparing base (1dbc872) to head (5e3c8ea).
⚠️ Report is 1 commits behind head on next.

Files with missing lines Patch % Lines
packages/jaspr_lints/lib/src/utils/scope_tree.dart 80.21% 36 Missing ⚠️
...spr_cli/lib/src/commands/convert_html_command.dart 79.16% 25 Missing ⚠️
packages/jaspr_lints/lib/src/utils/logging.dart 0.00% 18 Missing ⚠️
...jaspr_lints/lib/src/rules/unsafe_imports_rule.dart 98.90% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             next     #787      +/-   ##
==========================================
- Coverage   68.61%   68.35%   -0.27%     
==========================================
  Files         205      210       +5     
  Lines       11488    11700     +212     
==========================================
+ Hits         7882     7997     +115     
- Misses       3606     3703      +97     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@schultek schultek changed the base branch from main to next March 27, 2026 20:37
@schultek schultek marked this pull request as ready for review March 28, 2026 10:31
@schultek schultek merged commit cdbc321 into next Mar 28, 2026
11 checks passed
@schultek schultek deleted the feat/import-lint branch March 28, 2026 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant