diff --git a/crates/cli/tests/integration/invalid_manifest.rs b/crates/cli/tests/integration/invalid_manifest.rs index 20c3bb54..35acaca4 100644 --- a/crates/cli/tests/integration/invalid_manifest.rs +++ b/crates/cli/tests/integration/invalid_manifest.rs @@ -83,6 +83,26 @@ fn warnings_under(report: &Value, key: &str) -> Vec { .unwrap_or_default() } +#[test] +fn check_reports_invalid_nested_composer_path_repository() { + let repo = init_git_repo(&[ + ( + "app/composer.json", + r#"{"repositories":[{"type":"path","url":"../packages/["}]}"#, + ), + ("app/main.php", " b/src/Service.php", + "No runtime import path from b/main.php to a/src/Service.php", + ], + ); +} + +const COMPOSER_SERVICE_MANIFEST: &str = r#"{"name":"demo/lib","require":{"demo/shared":"*"},"autoload":{"psr-4":{"Demo\\Lib\\":"src/"}},"autoload-dev":{"psr-4":{"Demo\\Tests\\":"tests/"}}}"#; +const PHP_SERVICE: &str = r" Generated; POSIX `sh`, Bash, or Zsh from the shebang or extension; 10 Hazard line rules; see [Shell](./shell.md) | Core rules also classify files under `vendor/` or `third_party/` as `vendored` and files with generated-file header comments (`@generated`, `GENERATED CODE`, `DO NOT EDIT`) as `generated`. +See [`codeint trace`](../reference.md#codeint-trace) for how codeint resolves PHP PSR-4 imports across Composer packages. See [Go](./go.md) for Go terminology mapping, multi-file Go package imports, entry points, Flagged line rules, and `go.mod` Dependency hygiene. See [SQL](./sql.md) for generic SQL measurement, Dialects, templated SQL and rejected statements, automatic SQL schemas, and [Hazards](./hazards.md) for the Hazards Metric. See [Shell](./shell.md) for shell flavor detection, top-level `