@principal-ade/code-quality-panels 0.1.26 → 0.1.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -485,7 +485,16 @@ var LENS_REGISTRY = [
485
485
  outputsAggregate: true,
486
486
  colorScheme: "issues",
487
487
  description: "Rust linter",
488
- command: "cargo clippy"
488
+ command: "cargo clippy",
489
+ fileMetricsRequirements: {
490
+ completeCommand: "cargo clippy --workspace --all-features --message-format json -- -D warnings",
491
+ requiredFlags: ["--message-format json"],
492
+ formatFlag: "--message-format json",
493
+ withoutConfig: "Only files with issues are reported in the output",
494
+ fallbackStrategy: "source-file-count",
495
+ nativelyComplete: false,
496
+ notes: "Clippy JSON output only includes files with issues. Use cargo metadata to get complete file list."
497
+ }
489
498
  },
490
499
  // ============================================================
491
500
  // FORMATTING - Code formatting
@@ -576,7 +585,15 @@ var LENS_REGISTRY = [
576
585
  outputsAggregate: true,
577
586
  colorScheme: "binary",
578
587
  description: "Rust code formatter",
579
- command: "cargo fmt --check"
588
+ command: "cargo fmt --check",
589
+ fileMetricsRequirements: {
590
+ completeCommand: "cargo fmt --all --check",
591
+ requiredFlags: ["--check"],
592
+ withoutConfig: "Without --check, files are modified in place",
593
+ fallbackStrategy: "source-file-count",
594
+ nativelyComplete: false,
595
+ notes: "rustfmt only outputs files that need formatting. Use cargo metadata or glob for complete file list."
596
+ }
580
597
  },
581
598
  // ============================================================
582
599
  // TYPES - Type checking
@@ -702,6 +719,26 @@ var LENS_REGISTRY = [
702
719
  notes: "Bun test coverage is built-in but requires --coverage flag."
703
720
  }
704
721
  },
722
+ {
723
+ id: "node-test",
724
+ name: "Node Test",
725
+ category: "tests",
726
+ languages: ["typescript", "javascript"],
727
+ alternativeTo: ["jest", "vitest", "bun-test"],
728
+ outputsFileMetrics: true,
729
+ outputsAggregate: true,
730
+ colorScheme: "coverage",
731
+ description: "Node.js native test runner",
732
+ command: "node --test",
733
+ fileMetricsRequirements: {
734
+ completeCommand: "node --test --experimental-test-coverage",
735
+ requiredFlags: ["--experimental-test-coverage"],
736
+ withoutConfig: "Without --experimental-test-coverage, no per-file coverage data is available",
737
+ fallbackStrategy: "coverage-only",
738
+ nativelyComplete: false,
739
+ notes: "Node.js native test runner (node:test) uses TAP output format. Coverage requires --experimental-test-coverage flag (Node 20+). Also works with tsx --test for TypeScript."
740
+ }
741
+ },
705
742
  // Python testing
706
743
  {
707
744
  id: "pytest",
@@ -736,7 +773,37 @@ var LENS_REGISTRY = [
736
773
  outputsAggregate: true,
737
774
  colorScheme: "coverage",
738
775
  description: "Rust test runner",
739
- command: "cargo test"
776
+ command: "cargo test",
777
+ fileMetricsRequirements: {
778
+ completeCommand: "cargo test --workspace --no-fail-fast -- -Z unstable-options --format json",
779
+ requiredFlags: ["--format json"],
780
+ formatFlag: "--format json",
781
+ withoutConfig: "Without JSON format, output cannot be parsed for test results",
782
+ fallbackStrategy: "coverage-only",
783
+ nativelyComplete: false,
784
+ notes: "JSON format requires nightly or -Z unstable-options. Consider cargo-nextest for stable JSON output."
785
+ }
786
+ },
787
+ {
788
+ id: "cargo-nextest",
789
+ name: "Cargo Nextest",
790
+ category: "tests",
791
+ languages: ["rust"],
792
+ alternativeTo: ["cargo-test"],
793
+ outputsFileMetrics: true,
794
+ outputsAggregate: true,
795
+ colorScheme: "coverage",
796
+ description: "Next-generation Rust test runner",
797
+ command: "cargo nextest run",
798
+ fileMetricsRequirements: {
799
+ completeCommand: "cargo nextest run --workspace --message-format libtest-json",
800
+ requiredFlags: ["--message-format libtest-json"],
801
+ formatFlag: "--message-format libtest-json",
802
+ withoutConfig: "Without JSON format, output cannot be parsed",
803
+ fallbackStrategy: "coverage-only",
804
+ nativelyComplete: false,
805
+ notes: "Nextest provides stable JSON output without nightly features."
806
+ }
740
807
  },
741
808
  // ============================================================
742
809
  // DEAD CODE - Unused code detection