fallow-cli 2.71.1

CLI for fallow, Rust-native codebase intelligence for TypeScript and JavaScript
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Cross-surface strings shared between multiple report formats.
//!
//! Strings rendered by more than one output path live here so they cannot drift
//! between, for example, the JSON `actions[].note` and the human `Duplicate
//! exports` section. Wording is deliberately neutral (no JSON action names, no
//! MCP tool names, no SARIF rule IDs) so it reads naturally in every consuming
//! surface. See ADR-008 and incident 2026-05-11 in the implement skill log.

/// Namespace-barrel orientation hint shared between the JSON `remove-duplicate`
/// action note and the human `Duplicate exports` section.
///
/// The JSON note fires unconditionally on every duplicate-export finding; the
/// human path emits the same text once per section, gated on a high match ratio
/// so it stays useful in shadcn / Radix-clone projects and quiet otherwise. AI
/// agents discover the `add-to-config` action via the position-0 entry in
/// `actions[]`, not via this note.
pub(in crate::report) const NAMESPACE_BARREL_HINT: &str = "If every location is the sole `index.*` of its directory, this is likely an intentional namespace-barrel API. Prefer adding these files to `ignoreExports` over removing exports.";