Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:
# No --all: that would also format the vendored path dependencies.
cargo fmt -- --check
cargo clippy --workspace --locked --quiet --all-features --all-targets -- -D warnings
RUSTDOCFLAGS="-D warnings" \
cargo doc --workspace --locked --quiet --no-deps --document-private-items

msrv:
Expand Down
4 changes: 2 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ cargo fmt
# Run Code Quality CI checks locally
cargo fmt -- --check
cargo clippy --workspace --all-features -- -D warnings
cargo doc --workspace --no-deps --document-private-items
RUSTDOCFLAGS="-D warnings" cargo doc --workspace --no-deps --document-private-items
```

> [!TIP]
> Avoid running the full `cargo test` suite locally. The integration tests (`tests/docker_integration_tests.rs`) spawn Docker containers testing multiple versions of Bash, which is extremely slow. Prefer running `cargo test --lib` or testing specific packages. Before pushing, verify code quality with `cargo fmt -- --check`, `cargo clippy --workspace --all-features -- -D warnings`, and `cargo doc --workspace --no-deps --document-private-items`.
> Avoid running the full `cargo test` suite locally. The integration tests (`tests/docker_integration_tests.rs`) spawn Docker containers testing multiple versions of Bash, which is extremely slow. Prefer running `cargo test --lib` or testing specific packages. Before pushing, verify code quality with `cargo fmt -- --check`, `cargo clippy --workspace --all-features -- -D warnings`, and `RUSTDOCFLAGS="-D warnings" cargo doc --workspace --no-deps --document-private-items`.

## Guidelines
1. **Safety & Stability**: `flyline` runs inside the active shell process. Avoid unwinding panics across the C FFI boundary; wrap entry points in `catch_unwind_safe` to prevent shell crashes. Never create an `App` instance in library unit tests, as `App` depends on global FFI symbols (like `history_list` or `current_readline_prompt`) that are only resolved dynamically when loaded inside Bash, causing linker failures in library test targets.
Expand Down
170 changes: 88 additions & 82 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/flycontent/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ pub fn highlight_matching_indices(
normal_lines
}

/// Format a [`Duration`] as a compact, exactly-5-character string.
/// Format a [`Duration`](std::time::Duration) as a compact, exactly-5-character string.
///
/// The output always occupies exactly 5 terminal columns so it can be used
/// as a fixed-width column in the history list UI.
Expand Down
Loading