Skip to content

fix(NATSRS-008): CU-86akbh48z 4 review findings across 4 files - #118

Draft
flamingo[bot] wants to merge 4 commits into
mainfrom
ai-fix/natsrs-008-a7e2a573-06b1d724
Draft

flamingo[bot] wants to merge 4 commits into
mainfrom
ai-fix/natsrs-008-a7e2a573-06b1d724

Conversation

@flamingo

@flamingo flamingo Bot commented Sep 7, 2026

Copy link
Copy Markdown

Closes 4 review findings across 4 files.

Draft — this is a starting point, not a finished change. The fix required judgment, so read it before trusting it.

# Fix confidence Finding Location
1 🟢 92 high Benchmark file missing required Apache-2.0 copyright header async-nats/benches/core_nats.rs:1
2 🟡 85 medium nats-box example main.rs is missing the Apache-2.0 copyright header nats/examples/nats-box/main.rs:1
3 🟢 90 high crypto.rs missing Apache-2.0 license header async-nats/src/crypto.rs:1
4 🟡 85 medium serde-json example missing Apache-2.0 copyright header nats/examples/serde-json/main.rs:1

What changed — and what was deliberately left — is explained per finding as inline review comments on the lines each finding touched.


Run: https://product-hub.flamingo.so/admin/code-review
Run id: 06b1d724-91f9-455e-9eef-4cda91351dba

Merging this PR is recorded as acceptance of the rule that produced it;
closing it unmerged is recorded as rejection. Both feed rule health, so
closing a wrong suggestion is useful rather than merely tidy.

ClickUp task: CU-86akbh48z NATS async-nats and CI review findings (10 PRs)

@flamingo flamingo Bot left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

🦩 What this fix changed, finding by finding

4 finding(s) fixed in this draft — 4 explained inline on the diff.

// See the License for the specific language governing permissions and
// limitations under the License.

use std::time::Duration;

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

🦩 🟠 Benchmark file missing required Apache-2.0 copyright header

Added the standard NATS Authors Apache-2.0 license header block as the first lines of async-nats/benches/core_nats.rs, before the existing use std::time::Duration; statement, matching the header format used in other repo files (async-nats/tests/jetstream_tests.rs, nats/src/header.rs, etc.). No other lines were modified.

🤖 Prompt for AI agents
In async-nats/benches/core_nats.rs around line 1, review and complete this code-review fix: Benchmark file missing required Apache-2.0 copyright header.
What the draft fix changed: Added the standard NATS Authors Apache-2.0 license header block as the first lines of async-nats/benches/core_nats.rs, before the existing `use std::time::Duration;` statement, matching the header format used in other repo files (async-nats/tests/jetstream_tests.rs, nats/src/header.rs, etc.). No other lines were modified.
Verify the change is correct and complete; do not refactor unrelated code.

fix confidence: 🟢 92 high — react 👍/👎 to teach the reviewer

// See the License for the specific language governing permissions and
// limitations under the License.

use quicli::prelude::*;

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

🦩 🟠 nats-box example main.rs is missing the Apache-2.0 copyright header

Added the standard Apache-2.0 "Copyright 20XX-20XX The NATS Authors" license header block at the very top of nats/examples/nats-box/main.rs, before the existing use statements, matching the format used in other files in the crate (e.g., nats/src/client.rs). The exact year range (2020-2024) is a reasonable estimate since I cannot verify the file's actual creation date; a complete fix may require adjusting the start year to match the file's true history.

🤖 Prompt for AI agents
In nats/examples/nats-box/main.rs around line 1, review and complete this code-review fix: nats-box example main.rs is missing the Apache-2.0 copyright header.
What the draft fix changed: Added the standard Apache-2.0 "Copyright 20XX-20XX The NATS Authors" license header block at the very top of `nats/examples/nats-box/main.rs`, before the existing `use` statements, matching the format used in other files in the crate (e.g., `nats/src/client.rs`). The exact year range (2020-2024) is a reasonable estimate since I cannot verify the file's actual creation date; a complete fix may require adjusting the start year to match the file's true history.
Verify the change is correct and complete; do not refactor unrelated code.

fix confidence: 🟡 85 medium — react 👍/👎 to teach the reviewer

Comment thread async-nats/src/crypto.rs
// See the License for the specific language governing permissions and
// limitations under the License.

#[cfg(feature = "aws-lc-rs")]

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

🦩 🟠 crypto.rs missing Apache-2.0 license header

Added the standard NATS Authors Apache-2.0 license header block as the first lines of async-nats/src/crypto.rs, matching the required NATSRS-008 format, before the existing cfg attributes and use statements. No other content was modified.

🤖 Prompt for AI agents
In async-nats/src/crypto.rs around line 1, review and complete this code-review fix: crypto.rs missing Apache-2.0 license header.
What the draft fix changed: Added the standard NATS Authors Apache-2.0 license header block as the first lines of async-nats/src/crypto.rs, matching the required NATSRS-008 format, before the existing cfg attributes and use statements. No other content was modified.
Verify the change is correct and complete; do not refactor unrelated code.

fix confidence: 🟢 90 high — react 👍/👎 to teach the reviewer

// See the License for the specific language governing permissions and
// limitations under the License.

use serde::{Deserialize, Serialize};

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

🦩 🟠 serde-json example missing Apache-2.0 copyright header

Added the standard Apache-2.0 "Copyright 2020-2022 The NATS Authors" license header block at the top of nats/examples/serde-json/main.rs, matching the format used in nats/src/connect.rs and other .rs files in the codebase, before the existing use serde::{Deserialize, Serialize}; line. The exact copyright year range is unverified against this specific file's history, but follows the pattern seen in sibling files.

🤖 Prompt for AI agents
In nats/examples/serde-json/main.rs around line 1, review and complete this code-review fix: serde-json example missing Apache-2.0 copyright header.
What the draft fix changed: Added the standard Apache-2.0 "Copyright 2020-2022 The NATS Authors" license header block at the top of nats/examples/serde-json/main.rs, matching the format used in nats/src/connect.rs and other .rs files in the codebase, before the existing `use serde::{Deserialize, Serialize};` line. The exact copyright year range is unverified against this specific file's history, but follows the pattern seen in sibling files.
Verify the change is correct and complete; do not refactor unrelated code.

fix confidence: 🟡 85 medium — react 👍/👎 to teach the reviewer

@flamingo flamingo Bot changed the title fix(NATSRS-008): 4 review findings across 4 files fix(NATSRS-008): CU-86akbh48z 4 review findings across 4 files Sep 7, 2026
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.

0 participants