Skip to content

Add option to attach plugin to lifecycle tasks#75

Merged
rubensousa merged 3 commits intomainfrom
build-option
Mar 6, 2026
Merged

Add option to attach plugin to lifecycle tasks#75
rubensousa merged 3 commits intomainfrom
build-option

Conversation

@rubensousa
Copy link
Owner

@rubensousa rubensousa commented Mar 5, 2026

API:

projectGuard {
    options {
        lifecycleTask = LifecycleTask.ASSEMBLE // Or LifecycleTask.CHECK
    }
}

This will allow the plugin to run directly in the build process. Default is null to keep the existing behavior

Fixes: #74

@rubensousa rubensousa merged commit a171981 into main Mar 6, 2026
1 check passed
@rubensousa rubensousa deleted the build-option branch March 6, 2026 00:10
@codecov
Copy link

codecov bot commented Mar 6, 2026

Codecov Report

❌ Patch coverage is 93.75000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 83.21%. Comparing base (3a51b43) to head (3ff318d).
⚠️ Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
...ubensousa/projectguard/plugin/ProjectGuardScope.kt 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #75      +/-   ##
==========================================
+ Coverage   82.99%   83.21%   +0.22%     
==========================================
  Files          42       45       +3     
  Lines         682      697      +15     
  Branches       52       52              
==========================================
+ Hits          566      580      +14     
- Misses         91       92       +1     
  Partials       25       25              

☔ 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.

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.

Missing documentation on how to "Fail your build when a rule is violated"

1 participant