Skip to content

No flags on bool arguments#1

Merged
ildyria merged 8 commits into
mainfrom
lychee-take-over
Jul 18, 2026
Merged

No flags on bool arguments#1
ildyria merged 8 commits into
mainfrom
lychee-take-over

Conversation

@ildyria

@ildyria ildyria commented Jul 18, 2026

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • New Features

    • Added sensitive-parameter propagation checks across function, method, constructor, and static calls.
    • Added safeguards against storing sensitive values without secure wrapping.
    • Added improved type inference for wrapped sensitive values.
  • Bug Fixes

    • Boolean and boolean-style parameters are no longer incorrectly flagged as sensitive.
  • Documentation

    • Updated project branding, requirements, usage guidance, and security badges.
  • Chores

    • Improved automated testing, security scanning, release management, and development workflows.

@ildyria

ildyria commented Jul 18, 2026

Copy link
Copy Markdown
Member Author

@coderabbitai review.

@ildyria
ildyria marked this pull request as ready for review July 18, 2026 12:47
@coderabbitai

coderabbitai Bot commented Jul 18, 2026

Copy link
Copy Markdown

@ildyria I’ll review the changes with the stated boolean-argument objective in mind.

✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai

coderabbitai Bot commented Jul 18, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@ildyria, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 22 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 06ba22e8-ebd4-4530-b530-79b44fc880a6

📥 Commits

Reviewing files that changed from the base of the PR and between b640f71 and be3066d.

📒 Files selected for processing (18)
  • .github/workflows/ci.yml
  • .github/workflows/dependency-review.yml
  • README.md
  • composer.json
  • extension.neon
  • src/Rules/SensitiveParameterDetectorRule.php
  • src/Rules/SensitiveParameterPropagationRule.php
  • src/Rules/SensitiveParameterStorageRule.php
  • stubs/SensitiveParameterValue.stub
  • tests/Detector/BasicSensitiveParametersTest.php
  • tests/Detector/CustomKeywordsTest.php
  • tests/DetectorTestCase.php
  • tests/Fixtures/Propagation/PropagationCases.php
  • tests/Fixtures/Storage/StorageCases.php
  • tests/Propagation/SensitiveParameterPropagationTest.php
  • tests/PropagationTestCase.php
  • tests/StorageTestCase.php
  • tests/Unit/Rules/SensitiveParameterDetectorRuleTest.php
📝 Walkthrough

Walkthrough

Changes

Sensitive parameter analysis platform

Layer / File(s) Summary
Project metadata and developer tooling
.github/CODEOWNERS, .github/FUNDING.yml, .github/dependabot.yml, .github/release.yml, LICENSE, Makefile, README.md, composer.json
Repository metadata, package identity, documentation, dependency automation, release configuration, and development commands are added or updated.
CI and supply-chain workflows
.github/workflows/*
CI matrices, permissions, concurrency, pinned actions, runner hardening, dependency review, and Scorecard reporting are configured.
Detector behavior and test organization
extension.neon, phpstan.neon, phpunit.xml, src/Rules/SensitiveParameterDetectorRule.php, tests/Detector/*, tests/Fixtures/Detector/*
Boolean-like parameters are excluded from detector warnings, and dedicated tests cover detector behavior and fixtures.
Sensitive parameter propagation
src/Rules/SensitiveParameterPropagationRule.php, tests/Propagation*, tests/Fixtures/Propagation/*
Call-site sensitivity is resolved across methods, constructors, static calls, and functions, with diagnostics for missing callee attributes.
Sensitive value storage protection
src/Rules/SensitiveParameterStorageRule.php, tests/Storage*, tests/Fixtures/Storage/*
Direct and unwrapped sensitive-value property storage is detected, including promoted properties and getValue() assignments.
Typed SensitiveParameterValue support
stubs/SensitiveParameterValue.stub, tests/Types/*, tests/Fixtures/Types/*
A generic stub preserves wrapped value types through getValue(), with type-inference coverage for several value shapes.

Estimated code review effort: 4 (Complex) | ~60 minutes

Poem

I’m a bunny with rules in my burrow tonight,
Wrapping secrets in type-safe delight.
Calls pass their warnings, storage stays bright,
CI guards the garden from morning till night,
And typed little carrots make analyses right.

🚥 Pre-merge checks | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 74.14% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 13

🧹 Nitpick comments (1)
tests/Fixtures/Detector/BasicSensitiveParameters.php (1)

12-13: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Correct the documentation comment.

The comment indicates this is a "Regular function (not class method)", but the code defines a public static function, which is a class method. Consider updating the comment, or if the intent was to test a standalone function, move it outside of the class block.

♻️ Proposed fix
-    // Regular function (not class method)
+    // Static class method
     public static function regularFunction(string $userSecret, string $credential): string

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 836f066e-7023-4cf2-b71f-198e12320309

📥 Commits

Reviewing files that changed from the base of the PR and between 2dbb5f5 and b640f71.

📒 Files selected for processing (40)
  • .github/CODEOWNERS
  • .github/FUNDING.yml
  • .github/dependabot.yml
  • .github/release.yml
  • .github/workflows/ci.yml
  • .github/workflows/dependency-review.yml
  • .github/workflows/scorecard.yml
  • LICENSE
  • Makefile
  • README.md
  • composer.json
  • extension.neon
  • phpstan.neon
  • phpunit.xml
  • src/Rules/SensitiveParameterDetectorRule.php
  • src/Rules/SensitiveParameterPropagationRule.php
  • src/Rules/SensitiveParameterStorageRule.php
  • stubs/SensitiveParameterValue.stub
  • tests/Detector/BasicSensitiveParametersTest.php
  • tests/Detector/BooleanCasesTest.php
  • tests/Detector/CustomKeywordsTest.php
  • tests/Detector/IgnoreCommentsTest.php
  • tests/DetectorTestCase.php
  • tests/Feature/BasicSensitiveParametersTest.php
  • tests/Feature/CustomKeywordsTest.php
  • tests/Fixtures/Detector/BasicSensitiveParameters.php
  • tests/Fixtures/Detector/BooleanCases.php
  • tests/Fixtures/Detector/CustomKeywords.php
  • tests/Fixtures/Detector/EdgeCases.php
  • tests/Fixtures/Detector/IgnoreComments.php
  • tests/Fixtures/Detector/ProtectedSensitiveParameters.php
  • tests/Fixtures/Propagation/PropagationCases.php
  • tests/Fixtures/Storage/StorageCases.php
  • tests/Fixtures/Types/SensitiveParameterValueTypes.php
  • tests/Pest.php
  • tests/Propagation/SensitiveParameterPropagationTest.php
  • tests/PropagationTestCase.php
  • tests/Storage/SensitiveParameterStorageTest.php
  • tests/StorageTestCase.php
  • tests/Types/SensitiveParameterValueTypesTest.php
💤 Files with no reviewable changes (2)
  • tests/Feature/BasicSensitiveParametersTest.php
  • tests/Feature/CustomKeywordsTest.php

Comment thread .github/workflows/ci.yml Outdated
Comment thread .github/workflows/ci.yml
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread src/Rules/SensitiveParameterPropagationRule.php
Comment thread src/Rules/SensitiveParameterStorageRule.php Outdated
Comment thread src/Rules/SensitiveParameterStorageRule.php
Comment thread stubs/SensitiveParameterValue.stub Outdated
Comment thread tests/Fixtures/Storage/StorageCases.php Outdated
Comment thread tests/Propagation/SensitiveParameterPropagationTest.php
@ildyria
ildyria merged commit 8d69830 into main Jul 18, 2026
12 checks passed
@ildyria
ildyria deleted the lychee-take-over branch July 18, 2026 13:26
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