driftdetect-detectors 0.1.0
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.
- package/dist/accessibility/alt-text.d.ts +63 -0
- package/dist/accessibility/alt-text.d.ts.map +1 -0
- package/dist/accessibility/alt-text.js +100 -0
- package/dist/accessibility/alt-text.js.map +1 -0
- package/dist/accessibility/aria-roles.d.ts +65 -0
- package/dist/accessibility/aria-roles.d.ts.map +1 -0
- package/dist/accessibility/aria-roles.js +87 -0
- package/dist/accessibility/aria-roles.js.map +1 -0
- package/dist/accessibility/focus-management.d.ts +62 -0
- package/dist/accessibility/focus-management.d.ts.map +1 -0
- package/dist/accessibility/focus-management.js +88 -0
- package/dist/accessibility/focus-management.js.map +1 -0
- package/dist/accessibility/heading-hierarchy.d.ts +66 -0
- package/dist/accessibility/heading-hierarchy.d.ts.map +1 -0
- package/dist/accessibility/heading-hierarchy.js +94 -0
- package/dist/accessibility/heading-hierarchy.js.map +1 -0
- package/dist/accessibility/index.d.ts +25 -0
- package/dist/accessibility/index.d.ts.map +1 -0
- package/dist/accessibility/index.js +21 -0
- package/dist/accessibility/index.js.map +1 -0
- package/dist/accessibility/keyboard-nav.d.ts +63 -0
- package/dist/accessibility/keyboard-nav.d.ts.map +1 -0
- package/dist/accessibility/keyboard-nav.js +86 -0
- package/dist/accessibility/keyboard-nav.js.map +1 -0
- package/dist/accessibility/semantic-html.d.ts +76 -0
- package/dist/accessibility/semantic-html.d.ts.map +1 -0
- package/dist/accessibility/semantic-html.js +204 -0
- package/dist/accessibility/semantic-html.js.map +1 -0
- package/dist/api/client-patterns.d.ts +121 -0
- package/dist/api/client-patterns.d.ts.map +1 -0
- package/dist/api/client-patterns.js +478 -0
- package/dist/api/client-patterns.js.map +1 -0
- package/dist/api/error-format.d.ts +140 -0
- package/dist/api/error-format.d.ts.map +1 -0
- package/dist/api/error-format.js +614 -0
- package/dist/api/error-format.js.map +1 -0
- package/dist/api/http-methods.d.ts +255 -0
- package/dist/api/http-methods.d.ts.map +1 -0
- package/dist/api/http-methods.js +890 -0
- package/dist/api/http-methods.js.map +1 -0
- package/dist/api/index.d.ts +16 -0
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/index.js +37 -0
- package/dist/api/index.js.map +1 -0
- package/dist/api/pagination.d.ts +133 -0
- package/dist/api/pagination.d.ts.map +1 -0
- package/dist/api/pagination.js +521 -0
- package/dist/api/pagination.js.map +1 -0
- package/dist/api/response-envelope.d.ts +261 -0
- package/dist/api/response-envelope.d.ts.map +1 -0
- package/dist/api/response-envelope.js +1050 -0
- package/dist/api/response-envelope.js.map +1 -0
- package/dist/api/retry-patterns.d.ts +117 -0
- package/dist/api/retry-patterns.d.ts.map +1 -0
- package/dist/api/retry-patterns.js +480 -0
- package/dist/api/retry-patterns.js.map +1 -0
- package/dist/api/route-structure.d.ts +128 -0
- package/dist/api/route-structure.d.ts.map +1 -0
- package/dist/api/route-structure.js +738 -0
- package/dist/api/route-structure.js.map +1 -0
- package/dist/auth/audit-logging.d.ts +80 -0
- package/dist/auth/audit-logging.d.ts.map +1 -0
- package/dist/auth/audit-logging.js +370 -0
- package/dist/auth/audit-logging.js.map +1 -0
- package/dist/auth/index.d.ts +33 -0
- package/dist/auth/index.d.ts.map +1 -0
- package/dist/auth/index.js +49 -0
- package/dist/auth/index.js.map +1 -0
- package/dist/auth/middleware-usage.d.ts +65 -0
- package/dist/auth/middleware-usage.d.ts.map +1 -0
- package/dist/auth/middleware-usage.js +192 -0
- package/dist/auth/middleware-usage.js.map +1 -0
- package/dist/auth/permission-checks.d.ts +60 -0
- package/dist/auth/permission-checks.d.ts.map +1 -0
- package/dist/auth/permission-checks.js +159 -0
- package/dist/auth/permission-checks.js.map +1 -0
- package/dist/auth/rbac-patterns.d.ts +68 -0
- package/dist/auth/rbac-patterns.d.ts.map +1 -0
- package/dist/auth/rbac-patterns.js +143 -0
- package/dist/auth/rbac-patterns.js.map +1 -0
- package/dist/auth/resource-ownership.d.ts +77 -0
- package/dist/auth/resource-ownership.d.ts.map +1 -0
- package/dist/auth/resource-ownership.js +324 -0
- package/dist/auth/resource-ownership.js.map +1 -0
- package/dist/auth/token-handling.d.ts +64 -0
- package/dist/auth/token-handling.d.ts.map +1 -0
- package/dist/auth/token-handling.js +151 -0
- package/dist/auth/token-handling.js.map +1 -0
- package/dist/base/ast-detector.d.ts +421 -0
- package/dist/base/ast-detector.d.ts.map +1 -0
- package/dist/base/ast-detector.js +699 -0
- package/dist/base/ast-detector.js.map +1 -0
- package/dist/base/base-detector.d.ts +366 -0
- package/dist/base/base-detector.d.ts.map +1 -0
- package/dist/base/base-detector.js +170 -0
- package/dist/base/base-detector.js.map +1 -0
- package/dist/base/index.d.ts +12 -0
- package/dist/base/index.d.ts.map +1 -0
- package/dist/base/index.js +17 -0
- package/dist/base/index.js.map +1 -0
- package/dist/base/regex-detector.d.ts +421 -0
- package/dist/base/regex-detector.d.ts.map +1 -0
- package/dist/base/regex-detector.js +537 -0
- package/dist/base/regex-detector.js.map +1 -0
- package/dist/base/structural-detector.d.ts +424 -0
- package/dist/base/structural-detector.d.ts.map +1 -0
- package/dist/base/structural-detector.js +731 -0
- package/dist/base/structural-detector.js.map +1 -0
- package/dist/base/types.d.ts +53 -0
- package/dist/base/types.d.ts.map +1 -0
- package/dist/base/types.js +5 -0
- package/dist/base/types.js.map +1 -0
- package/dist/components/component-structure.d.ts +163 -0
- package/dist/components/component-structure.d.ts.map +1 -0
- package/dist/components/component-structure.js +500 -0
- package/dist/components/component-structure.js.map +1 -0
- package/dist/components/composition.d.ts +287 -0
- package/dist/components/composition.d.ts.map +1 -0
- package/dist/components/composition.js +1123 -0
- package/dist/components/composition.js.map +1 -0
- package/dist/components/duplicate-detection.d.ts +251 -0
- package/dist/components/duplicate-detection.d.ts.map +1 -0
- package/dist/components/duplicate-detection.js +804 -0
- package/dist/components/duplicate-detection.js.map +1 -0
- package/dist/components/index.d.ts +16 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +51 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/near-duplicate.d.ts +402 -0
- package/dist/components/near-duplicate.d.ts.map +1 -0
- package/dist/components/near-duplicate.js +1090 -0
- package/dist/components/near-duplicate.js.map +1 -0
- package/dist/components/props-patterns.d.ts +194 -0
- package/dist/components/props-patterns.d.ts.map +1 -0
- package/dist/components/props-patterns.js +795 -0
- package/dist/components/props-patterns.js.map +1 -0
- package/dist/components/ref-forwarding.d.ts +250 -0
- package/dist/components/ref-forwarding.d.ts.map +1 -0
- package/dist/components/ref-forwarding.js +832 -0
- package/dist/components/ref-forwarding.js.map +1 -0
- package/dist/components/state-patterns.d.ts +291 -0
- package/dist/components/state-patterns.d.ts.map +1 -0
- package/dist/components/state-patterns.js +970 -0
- package/dist/components/state-patterns.js.map +1 -0
- package/dist/config/config-validation.d.ts +74 -0
- package/dist/config/config-validation.d.ts.map +1 -0
- package/dist/config/config-validation.js +446 -0
- package/dist/config/config-validation.js.map +1 -0
- package/dist/config/default-values.d.ts +72 -0
- package/dist/config/default-values.d.ts.map +1 -0
- package/dist/config/default-values.js +386 -0
- package/dist/config/default-values.js.map +1 -0
- package/dist/config/env-naming.d.ts +73 -0
- package/dist/config/env-naming.d.ts.map +1 -0
- package/dist/config/env-naming.js +429 -0
- package/dist/config/env-naming.js.map +1 -0
- package/dist/config/environment-detection.d.ts +72 -0
- package/dist/config/environment-detection.d.ts.map +1 -0
- package/dist/config/environment-detection.js +400 -0
- package/dist/config/environment-detection.js.map +1 -0
- package/dist/config/feature-flags.d.ts +72 -0
- package/dist/config/feature-flags.d.ts.map +1 -0
- package/dist/config/feature-flags.js +384 -0
- package/dist/config/feature-flags.js.map +1 -0
- package/dist/config/index.d.ts +27 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +43 -0
- package/dist/config/index.js.map +1 -0
- package/dist/config/required-optional.d.ts +71 -0
- package/dist/config/required-optional.d.ts.map +1 -0
- package/dist/config/required-optional.js +344 -0
- package/dist/config/required-optional.js.map +1 -0
- package/dist/data-access/connection-pooling.d.ts +63 -0
- package/dist/data-access/connection-pooling.d.ts.map +1 -0
- package/dist/data-access/connection-pooling.js +297 -0
- package/dist/data-access/connection-pooling.js.map +1 -0
- package/dist/data-access/dto-patterns.d.ts +64 -0
- package/dist/data-access/dto-patterns.d.ts.map +1 -0
- package/dist/data-access/dto-patterns.js +291 -0
- package/dist/data-access/dto-patterns.js.map +1 -0
- package/dist/data-access/index.d.ts +31 -0
- package/dist/data-access/index.d.ts.map +1 -0
- package/dist/data-access/index.js +49 -0
- package/dist/data-access/index.js.map +1 -0
- package/dist/data-access/n-plus-one.d.ts +60 -0
- package/dist/data-access/n-plus-one.d.ts.map +1 -0
- package/dist/data-access/n-plus-one.js +264 -0
- package/dist/data-access/n-plus-one.js.map +1 -0
- package/dist/data-access/query-patterns.d.ts +64 -0
- package/dist/data-access/query-patterns.d.ts.map +1 -0
- package/dist/data-access/query-patterns.js +314 -0
- package/dist/data-access/query-patterns.js.map +1 -0
- package/dist/data-access/repository-pattern.d.ts +62 -0
- package/dist/data-access/repository-pattern.d.ts.map +1 -0
- package/dist/data-access/repository-pattern.js +257 -0
- package/dist/data-access/repository-pattern.js.map +1 -0
- package/dist/data-access/transaction-patterns.d.ts +61 -0
- package/dist/data-access/transaction-patterns.d.ts.map +1 -0
- package/dist/data-access/transaction-patterns.js +277 -0
- package/dist/data-access/transaction-patterns.js.map +1 -0
- package/dist/data-access/validation-patterns.d.ts +62 -0
- package/dist/data-access/validation-patterns.d.ts.map +1 -0
- package/dist/data-access/validation-patterns.js +301 -0
- package/dist/data-access/validation-patterns.js.map +1 -0
- package/dist/documentation/deprecation.d.ts +62 -0
- package/dist/documentation/deprecation.d.ts.map +1 -0
- package/dist/documentation/deprecation.js +83 -0
- package/dist/documentation/deprecation.js.map +1 -0
- package/dist/documentation/example-code.d.ts +64 -0
- package/dist/documentation/example-code.d.ts.map +1 -0
- package/dist/documentation/example-code.js +79 -0
- package/dist/documentation/example-code.js.map +1 -0
- package/dist/documentation/index.d.ts +22 -0
- package/dist/documentation/index.d.ts.map +1 -0
- package/dist/documentation/index.js +19 -0
- package/dist/documentation/index.js.map +1 -0
- package/dist/documentation/jsdoc-patterns.d.ts +72 -0
- package/dist/documentation/jsdoc-patterns.d.ts.map +1 -0
- package/dist/documentation/jsdoc-patterns.js +92 -0
- package/dist/documentation/jsdoc-patterns.js.map +1 -0
- package/dist/documentation/readme-structure.d.ts +67 -0
- package/dist/documentation/readme-structure.d.ts.map +1 -0
- package/dist/documentation/readme-structure.js +76 -0
- package/dist/documentation/readme-structure.js.map +1 -0
- package/dist/documentation/todo-patterns.d.ts +67 -0
- package/dist/documentation/todo-patterns.d.ts.map +1 -0
- package/dist/documentation/todo-patterns.js +73 -0
- package/dist/documentation/todo-patterns.js.map +1 -0
- package/dist/errors/async-errors.d.ts +72 -0
- package/dist/errors/async-errors.d.ts.map +1 -0
- package/dist/errors/async-errors.js +214 -0
- package/dist/errors/async-errors.js.map +1 -0
- package/dist/errors/circuit-breaker.d.ts +53 -0
- package/dist/errors/circuit-breaker.d.ts.map +1 -0
- package/dist/errors/circuit-breaker.js +241 -0
- package/dist/errors/circuit-breaker.js.map +1 -0
- package/dist/errors/error-codes.d.ts +73 -0
- package/dist/errors/error-codes.d.ts.map +1 -0
- package/dist/errors/error-codes.js +211 -0
- package/dist/errors/error-codes.js.map +1 -0
- package/dist/errors/error-logging.d.ts +73 -0
- package/dist/errors/error-logging.d.ts.map +1 -0
- package/dist/errors/error-logging.js +256 -0
- package/dist/errors/error-logging.js.map +1 -0
- package/dist/errors/error-propagation.d.ts +73 -0
- package/dist/errors/error-propagation.d.ts.map +1 -0
- package/dist/errors/error-propagation.js +244 -0
- package/dist/errors/error-propagation.js.map +1 -0
- package/dist/errors/exception-hierarchy.d.ts +75 -0
- package/dist/errors/exception-hierarchy.d.ts.map +1 -0
- package/dist/errors/exception-hierarchy.js +259 -0
- package/dist/errors/exception-hierarchy.js.map +1 -0
- package/dist/errors/index.d.ts +31 -0
- package/dist/errors/index.d.ts.map +1 -0
- package/dist/errors/index.js +49 -0
- package/dist/errors/index.js.map +1 -0
- package/dist/errors/try-catch-placement.d.ts +73 -0
- package/dist/errors/try-catch-placement.d.ts.map +1 -0
- package/dist/errors/try-catch-placement.js +214 -0
- package/dist/errors/try-catch-placement.js.map +1 -0
- package/dist/index.d.ts +221 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +245 -0
- package/dist/index.js.map +1 -0
- package/dist/logging/context-fields.d.ts +48 -0
- package/dist/logging/context-fields.d.ts.map +1 -0
- package/dist/logging/context-fields.js +160 -0
- package/dist/logging/context-fields.js.map +1 -0
- package/dist/logging/correlation-ids.d.ts +44 -0
- package/dist/logging/correlation-ids.d.ts.map +1 -0
- package/dist/logging/correlation-ids.js +144 -0
- package/dist/logging/correlation-ids.js.map +1 -0
- package/dist/logging/health-checks.d.ts +45 -0
- package/dist/logging/health-checks.d.ts.map +1 -0
- package/dist/logging/health-checks.js +165 -0
- package/dist/logging/health-checks.js.map +1 -0
- package/dist/logging/index.d.ts +31 -0
- package/dist/logging/index.d.ts.map +1 -0
- package/dist/logging/index.js +49 -0
- package/dist/logging/index.js.map +1 -0
- package/dist/logging/log-levels.d.ts +46 -0
- package/dist/logging/log-levels.d.ts.map +1 -0
- package/dist/logging/log-levels.js +178 -0
- package/dist/logging/log-levels.js.map +1 -0
- package/dist/logging/metric-naming.d.ts +46 -0
- package/dist/logging/metric-naming.d.ts.map +1 -0
- package/dist/logging/metric-naming.js +157 -0
- package/dist/logging/metric-naming.js.map +1 -0
- package/dist/logging/pii-redaction.d.ts +44 -0
- package/dist/logging/pii-redaction.d.ts.map +1 -0
- package/dist/logging/pii-redaction.js +166 -0
- package/dist/logging/pii-redaction.js.map +1 -0
- package/dist/logging/structured-format.d.ts +53 -0
- package/dist/logging/structured-format.d.ts.map +1 -0
- package/dist/logging/structured-format.js +235 -0
- package/dist/logging/structured-format.js.map +1 -0
- package/dist/performance/bundle-size.d.ts +79 -0
- package/dist/performance/bundle-size.d.ts.map +1 -0
- package/dist/performance/bundle-size.js +276 -0
- package/dist/performance/bundle-size.js.map +1 -0
- package/dist/performance/caching-patterns.d.ts +78 -0
- package/dist/performance/caching-patterns.d.ts.map +1 -0
- package/dist/performance/caching-patterns.js +257 -0
- package/dist/performance/caching-patterns.js.map +1 -0
- package/dist/performance/code-splitting.d.ts +86 -0
- package/dist/performance/code-splitting.d.ts.map +1 -0
- package/dist/performance/code-splitting.js +447 -0
- package/dist/performance/code-splitting.js.map +1 -0
- package/dist/performance/debounce-throttle.d.ts +75 -0
- package/dist/performance/debounce-throttle.d.ts.map +1 -0
- package/dist/performance/debounce-throttle.js +232 -0
- package/dist/performance/debounce-throttle.js.map +1 -0
- package/dist/performance/index.d.ts +28 -0
- package/dist/performance/index.d.ts.map +1 -0
- package/dist/performance/index.js +39 -0
- package/dist/performance/index.js.map +1 -0
- package/dist/performance/lazy-loading.d.ts +75 -0
- package/dist/performance/lazy-loading.d.ts.map +1 -0
- package/dist/performance/lazy-loading.js +233 -0
- package/dist/performance/lazy-loading.js.map +1 -0
- package/dist/performance/memoization.d.ts +75 -0
- package/dist/performance/memoization.d.ts.map +1 -0
- package/dist/performance/memoization.js +251 -0
- package/dist/performance/memoization.js.map +1 -0
- package/dist/registry/detector-registry.d.ts +266 -0
- package/dist/registry/detector-registry.d.ts.map +1 -0
- package/dist/registry/detector-registry.js +526 -0
- package/dist/registry/detector-registry.js.map +1 -0
- package/dist/registry/index.d.ts +10 -0
- package/dist/registry/index.d.ts.map +1 -0
- package/dist/registry/index.js +10 -0
- package/dist/registry/index.js.map +1 -0
- package/dist/registry/loader.d.ts +232 -0
- package/dist/registry/loader.d.ts.map +1 -0
- package/dist/registry/loader.js +419 -0
- package/dist/registry/loader.js.map +1 -0
- package/dist/registry/types.d.ts +111 -0
- package/dist/registry/types.d.ts.map +1 -0
- package/dist/registry/types.js +19 -0
- package/dist/registry/types.js.map +1 -0
- package/dist/security/csp-headers.d.ts +78 -0
- package/dist/security/csp-headers.d.ts.map +1 -0
- package/dist/security/csp-headers.js +401 -0
- package/dist/security/csp-headers.js.map +1 -0
- package/dist/security/csrf-protection.d.ts +72 -0
- package/dist/security/csrf-protection.d.ts.map +1 -0
- package/dist/security/csrf-protection.js +344 -0
- package/dist/security/csrf-protection.js.map +1 -0
- package/dist/security/index.d.ts +30 -0
- package/dist/security/index.d.ts.map +1 -0
- package/dist/security/index.js +48 -0
- package/dist/security/index.js.map +1 -0
- package/dist/security/input-sanitization.d.ts +74 -0
- package/dist/security/input-sanitization.d.ts.map +1 -0
- package/dist/security/input-sanitization.js +373 -0
- package/dist/security/input-sanitization.js.map +1 -0
- package/dist/security/rate-limiting.d.ts +81 -0
- package/dist/security/rate-limiting.d.ts.map +1 -0
- package/dist/security/rate-limiting.js +535 -0
- package/dist/security/rate-limiting.js.map +1 -0
- package/dist/security/secret-management.d.ts +83 -0
- package/dist/security/secret-management.d.ts.map +1 -0
- package/dist/security/secret-management.js +547 -0
- package/dist/security/secret-management.js.map +1 -0
- package/dist/security/sql-injection.d.ts +76 -0
- package/dist/security/sql-injection.d.ts.map +1 -0
- package/dist/security/sql-injection.js +383 -0
- package/dist/security/sql-injection.js.map +1 -0
- package/dist/security/xss-prevention.d.ts +80 -0
- package/dist/security/xss-prevention.d.ts.map +1 -0
- package/dist/security/xss-prevention.js +416 -0
- package/dist/security/xss-prevention.js.map +1 -0
- package/dist/structural/barrel-exports.d.ts +178 -0
- package/dist/structural/barrel-exports.d.ts.map +1 -0
- package/dist/structural/barrel-exports.js +553 -0
- package/dist/structural/barrel-exports.js.map +1 -0
- package/dist/structural/circular-deps.d.ts +140 -0
- package/dist/structural/circular-deps.d.ts.map +1 -0
- package/dist/structural/circular-deps.js +422 -0
- package/dist/structural/circular-deps.js.map +1 -0
- package/dist/structural/co-location.d.ts +202 -0
- package/dist/structural/co-location.d.ts.map +1 -0
- package/dist/structural/co-location.js +640 -0
- package/dist/structural/co-location.js.map +1 -0
- package/dist/structural/directory-structure.d.ts +151 -0
- package/dist/structural/directory-structure.d.ts.map +1 -0
- package/dist/structural/directory-structure.js +457 -0
- package/dist/structural/directory-structure.js.map +1 -0
- package/dist/structural/file-naming.d.ts +61 -0
- package/dist/structural/file-naming.d.ts.map +1 -0
- package/dist/structural/file-naming.js +231 -0
- package/dist/structural/file-naming.js.map +1 -0
- package/dist/structural/import-ordering.d.ts +212 -0
- package/dist/structural/import-ordering.d.ts.map +1 -0
- package/dist/structural/import-ordering.js +821 -0
- package/dist/structural/import-ordering.js.map +1 -0
- package/dist/structural/index.d.ts +23 -0
- package/dist/structural/index.d.ts.map +1 -0
- package/dist/structural/index.js +26 -0
- package/dist/structural/index.js.map +1 -0
- package/dist/structural/module-boundaries.d.ts +164 -0
- package/dist/structural/module-boundaries.d.ts.map +1 -0
- package/dist/structural/module-boundaries.js +616 -0
- package/dist/structural/module-boundaries.js.map +1 -0
- package/dist/structural/package-boundaries.d.ts +182 -0
- package/dist/structural/package-boundaries.d.ts.map +1 -0
- package/dist/structural/package-boundaries.js +602 -0
- package/dist/structural/package-boundaries.js.map +1 -0
- package/dist/styling/class-naming.d.ts +263 -0
- package/dist/styling/class-naming.d.ts.map +1 -0
- package/dist/styling/class-naming.js +892 -0
- package/dist/styling/class-naming.js.map +1 -0
- package/dist/styling/color-usage.d.ts +213 -0
- package/dist/styling/color-usage.d.ts.map +1 -0
- package/dist/styling/color-usage.js +732 -0
- package/dist/styling/color-usage.js.map +1 -0
- package/dist/styling/design-tokens.d.ts +212 -0
- package/dist/styling/design-tokens.d.ts.map +1 -0
- package/dist/styling/design-tokens.js +748 -0
- package/dist/styling/design-tokens.js.map +1 -0
- package/dist/styling/index.d.ts +16 -0
- package/dist/styling/index.d.ts.map +1 -0
- package/dist/styling/index.js +56 -0
- package/dist/styling/index.js.map +1 -0
- package/dist/styling/responsive.d.ts +304 -0
- package/dist/styling/responsive.d.ts.map +1 -0
- package/dist/styling/responsive.js +888 -0
- package/dist/styling/responsive.js.map +1 -0
- package/dist/styling/spacing-scale.d.ts +248 -0
- package/dist/styling/spacing-scale.d.ts.map +1 -0
- package/dist/styling/spacing-scale.js +865 -0
- package/dist/styling/spacing-scale.js.map +1 -0
- package/dist/styling/tailwind-patterns.d.ts +305 -0
- package/dist/styling/tailwind-patterns.d.ts.map +1 -0
- package/dist/styling/tailwind-patterns.js +1181 -0
- package/dist/styling/tailwind-patterns.js.map +1 -0
- package/dist/styling/typography.d.ts +281 -0
- package/dist/styling/typography.d.ts.map +1 -0
- package/dist/styling/typography.js +1004 -0
- package/dist/styling/typography.js.map +1 -0
- package/dist/styling/z-index-scale.d.ts +270 -0
- package/dist/styling/z-index-scale.d.ts.map +1 -0
- package/dist/styling/z-index-scale.js +714 -0
- package/dist/styling/z-index-scale.js.map +1 -0
- package/dist/testing/co-location.d.ts +42 -0
- package/dist/testing/co-location.d.ts.map +1 -0
- package/dist/testing/co-location.js +134 -0
- package/dist/testing/co-location.js.map +1 -0
- package/dist/testing/describe-naming.d.ts +47 -0
- package/dist/testing/describe-naming.d.ts.map +1 -0
- package/dist/testing/describe-naming.js +150 -0
- package/dist/testing/describe-naming.js.map +1 -0
- package/dist/testing/file-naming.d.ts +44 -0
- package/dist/testing/file-naming.d.ts.map +1 -0
- package/dist/testing/file-naming.js +131 -0
- package/dist/testing/file-naming.js.map +1 -0
- package/dist/testing/fixture-patterns.d.ts +52 -0
- package/dist/testing/fixture-patterns.d.ts.map +1 -0
- package/dist/testing/fixture-patterns.js +228 -0
- package/dist/testing/fixture-patterns.js.map +1 -0
- package/dist/testing/index.d.ts +31 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js +49 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/testing/mock-patterns.d.ts +53 -0
- package/dist/testing/mock-patterns.d.ts.map +1 -0
- package/dist/testing/mock-patterns.js +264 -0
- package/dist/testing/mock-patterns.js.map +1 -0
- package/dist/testing/setup-teardown.d.ts +55 -0
- package/dist/testing/setup-teardown.d.ts.map +1 -0
- package/dist/testing/setup-teardown.js +262 -0
- package/dist/testing/setup-teardown.js.map +1 -0
- package/dist/testing/test-structure.d.ts +51 -0
- package/dist/testing/test-structure.d.ts.map +1 -0
- package/dist/testing/test-structure.js +225 -0
- package/dist/testing/test-structure.js.map +1 -0
- package/dist/types/any-usage.d.ts +99 -0
- package/dist/types/any-usage.d.ts.map +1 -0
- package/dist/types/any-usage.js +641 -0
- package/dist/types/any-usage.js.map +1 -0
- package/dist/types/file-location.d.ts +76 -0
- package/dist/types/file-location.d.ts.map +1 -0
- package/dist/types/file-location.js +395 -0
- package/dist/types/file-location.js.map +1 -0
- package/dist/types/generic-patterns.d.ts +97 -0
- package/dist/types/generic-patterns.d.ts.map +1 -0
- package/dist/types/generic-patterns.js +615 -0
- package/dist/types/generic-patterns.js.map +1 -0
- package/dist/types/index.d.ts +31 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +43 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/interface-vs-type.d.ts +81 -0
- package/dist/types/interface-vs-type.d.ts.map +1 -0
- package/dist/types/interface-vs-type.js +440 -0
- package/dist/types/interface-vs-type.js.map +1 -0
- package/dist/types/naming-conventions.d.ts +84 -0
- package/dist/types/naming-conventions.d.ts.map +1 -0
- package/dist/types/naming-conventions.js +455 -0
- package/dist/types/naming-conventions.js.map +1 -0
- package/dist/types/type-assertions.d.ts +98 -0
- package/dist/types/type-assertions.d.ts.map +1 -0
- package/dist/types/type-assertions.js +639 -0
- package/dist/types/type-assertions.js.map +1 -0
- package/dist/types/utility-types.d.ts +110 -0
- package/dist/types/utility-types.d.ts.map +1 -0
- package/dist/types/utility-types.js +547 -0
- package/dist/types/utility-types.js.map +1 -0
- package/package.json +44 -0
|
@@ -0,0 +1,447 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Code Splitting Detector - Code splitting pattern detection
|
|
3
|
+
*
|
|
4
|
+
* Detects code splitting patterns including:
|
|
5
|
+
* - Dynamic imports
|
|
6
|
+
* - React.lazy
|
|
7
|
+
* - Next.js dynamic imports
|
|
8
|
+
* - Route-based splitting
|
|
9
|
+
* - Component-based splitting
|
|
10
|
+
* - Vendor chunk patterns
|
|
11
|
+
* - Webpack magic comments
|
|
12
|
+
*
|
|
13
|
+
* @requirements 19.1 - Code splitting patterns
|
|
14
|
+
*/
|
|
15
|
+
import { RegexDetector } from '../base/regex-detector.js';
|
|
16
|
+
// ============================================================================
|
|
17
|
+
// Constants
|
|
18
|
+
// ============================================================================
|
|
19
|
+
export const DYNAMIC_IMPORT_PATTERNS = [
|
|
20
|
+
/import\s*\(\s*['"`]([^'"`]+)['"`]\s*\)/g,
|
|
21
|
+
/import\s*\(\s*\/\*[^*]*\*\/\s*['"`]([^'"`]+)['"`]\s*\)/g,
|
|
22
|
+
/await\s+import\s*\(/g,
|
|
23
|
+
];
|
|
24
|
+
export const REACT_LAZY_PATTERNS = [
|
|
25
|
+
/React\.lazy\s*\(\s*\(\)\s*=>\s*import\s*\(/g,
|
|
26
|
+
/lazy\s*\(\s*\(\)\s*=>\s*import\s*\(/g,
|
|
27
|
+
/const\s+\w+\s*=\s*lazy\s*\(/g,
|
|
28
|
+
/const\s+\w+\s*=\s*React\.lazy\s*\(/g,
|
|
29
|
+
];
|
|
30
|
+
export const NEXT_DYNAMIC_PATTERNS = [
|
|
31
|
+
/dynamic\s*\(\s*\(\)\s*=>\s*import\s*\(/g,
|
|
32
|
+
/next\/dynamic/g,
|
|
33
|
+
/import\s+dynamic\s+from\s+['"`]next\/dynamic['"`]/g,
|
|
34
|
+
/const\s+\w+\s*=\s*dynamic\s*\(/g,
|
|
35
|
+
];
|
|
36
|
+
export const ROUTE_SPLITTING_PATTERNS = [
|
|
37
|
+
/Route\s+.*component\s*=\s*\{.*lazy/gi,
|
|
38
|
+
/element\s*=\s*\{.*lazy/gi,
|
|
39
|
+
/loadComponent\s*:\s*\(\)\s*=>\s*import/g,
|
|
40
|
+
/component\s*:\s*\(\)\s*=>\s*import/g,
|
|
41
|
+
];
|
|
42
|
+
export const COMPONENT_SPLITTING_PATTERNS = [
|
|
43
|
+
/const\s+(\w+)\s*=\s*(?:React\.)?lazy\s*\(\s*\(\)\s*=>\s*import\s*\(\s*['"`]([^'"`]+)['"`]/g,
|
|
44
|
+
/const\s+(\w+)\s*=\s*dynamic\s*\(\s*\(\)\s*=>\s*import\s*\(\s*['"`]([^'"`]+)['"`]/g,
|
|
45
|
+
];
|
|
46
|
+
export const VENDOR_CHUNK_PATTERNS = [
|
|
47
|
+
/webpackChunkName:\s*['"`]vendor['"`]/g,
|
|
48
|
+
/webpackChunkName:\s*['"`]vendors['"`]/g,
|
|
49
|
+
/splitChunks/g,
|
|
50
|
+
/cacheGroups/g,
|
|
51
|
+
];
|
|
52
|
+
export const WEBPACK_MAGIC_COMMENT_PATTERNS = [
|
|
53
|
+
/\/\*\s*webpackChunkName:\s*['"`]([^'"`]+)['"`]\s*\*\//g,
|
|
54
|
+
/\/\*\s*webpackPrefetch:\s*true\s*\*\//g,
|
|
55
|
+
/\/\*\s*webpackPreload:\s*true\s*\*\//g,
|
|
56
|
+
/\/\*\s*webpackMode:\s*['"`](\w+)['"`]\s*\*\//g,
|
|
57
|
+
];
|
|
58
|
+
export const SUSPENSE_BOUNDARY_PATTERNS = [
|
|
59
|
+
/<Suspense\s+/g,
|
|
60
|
+
/<React\.Suspense\s+/g,
|
|
61
|
+
/fallback\s*=\s*\{/g,
|
|
62
|
+
];
|
|
63
|
+
export const LOADABLE_COMPONENT_PATTERNS = [
|
|
64
|
+
/loadable\s*\(\s*\(\)\s*=>\s*import/g,
|
|
65
|
+
/@loadable\/component/g,
|
|
66
|
+
/import\s+loadable\s+from/g,
|
|
67
|
+
];
|
|
68
|
+
export const PREFETCH_HINT_PATTERNS = [
|
|
69
|
+
/webpackPrefetch:\s*true/g,
|
|
70
|
+
/webpackPreload:\s*true/g,
|
|
71
|
+
/rel\s*=\s*['"`]prefetch['"`]/g,
|
|
72
|
+
/rel\s*=\s*['"`]preload['"`]/g,
|
|
73
|
+
];
|
|
74
|
+
export const MISSING_SUSPENSE_PATTERNS = [
|
|
75
|
+
/(?:React\.)?lazy\s*\(/g,
|
|
76
|
+
];
|
|
77
|
+
export const EAGER_IMPORT_PATTERNS = [
|
|
78
|
+
/import\s+\w+\s+from\s+['"`](?:lodash|moment|@mui|antd)['"`]/g,
|
|
79
|
+
/import\s+\{[^}]+\}\s+from\s+['"`](?:lodash|moment)['"`]/g,
|
|
80
|
+
];
|
|
81
|
+
// ============================================================================
|
|
82
|
+
// Analysis Functions
|
|
83
|
+
// ============================================================================
|
|
84
|
+
export function shouldExcludeFile(filePath) {
|
|
85
|
+
const excludePatterns = [
|
|
86
|
+
/\.test\.[jt]sx?$/,
|
|
87
|
+
/\.spec\.[jt]sx?$/,
|
|
88
|
+
/__tests__\//,
|
|
89
|
+
/node_modules\//,
|
|
90
|
+
/\.min\.[jt]s$/,
|
|
91
|
+
/\.config\.[jt]s$/,
|
|
92
|
+
];
|
|
93
|
+
return excludePatterns.some((p) => p.test(filePath));
|
|
94
|
+
}
|
|
95
|
+
export function detectDynamicImports(content, filePath) {
|
|
96
|
+
const results = [];
|
|
97
|
+
const lines = content.split('\n');
|
|
98
|
+
for (let i = 0; i < lines.length; i++) {
|
|
99
|
+
const line = lines[i];
|
|
100
|
+
for (const pattern of DYNAMIC_IMPORT_PATTERNS) {
|
|
101
|
+
const regex = new RegExp(pattern.source, pattern.flags);
|
|
102
|
+
let match;
|
|
103
|
+
while ((match = regex.exec(line)) !== null) {
|
|
104
|
+
results.push({
|
|
105
|
+
type: 'dynamic-import',
|
|
106
|
+
file: filePath,
|
|
107
|
+
line: i + 1,
|
|
108
|
+
column: match.index + 1,
|
|
109
|
+
matchedText: match[0],
|
|
110
|
+
importPath: match[1],
|
|
111
|
+
context: line.trim(),
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
return results;
|
|
117
|
+
}
|
|
118
|
+
export function detectReactLazy(content, filePath) {
|
|
119
|
+
const results = [];
|
|
120
|
+
const lines = content.split('\n');
|
|
121
|
+
for (let i = 0; i < lines.length; i++) {
|
|
122
|
+
const line = lines[i];
|
|
123
|
+
for (const pattern of REACT_LAZY_PATTERNS) {
|
|
124
|
+
const regex = new RegExp(pattern.source, pattern.flags);
|
|
125
|
+
let match;
|
|
126
|
+
while ((match = regex.exec(line)) !== null) {
|
|
127
|
+
results.push({
|
|
128
|
+
type: 'react-lazy',
|
|
129
|
+
file: filePath,
|
|
130
|
+
line: i + 1,
|
|
131
|
+
column: match.index + 1,
|
|
132
|
+
matchedText: match[0],
|
|
133
|
+
context: line.trim(),
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
return results;
|
|
139
|
+
}
|
|
140
|
+
export function detectNextDynamic(content, filePath) {
|
|
141
|
+
const results = [];
|
|
142
|
+
const lines = content.split('\n');
|
|
143
|
+
for (let i = 0; i < lines.length; i++) {
|
|
144
|
+
const line = lines[i];
|
|
145
|
+
for (const pattern of NEXT_DYNAMIC_PATTERNS) {
|
|
146
|
+
const regex = new RegExp(pattern.source, pattern.flags);
|
|
147
|
+
let match;
|
|
148
|
+
while ((match = regex.exec(line)) !== null) {
|
|
149
|
+
results.push({
|
|
150
|
+
type: 'next-dynamic',
|
|
151
|
+
file: filePath,
|
|
152
|
+
line: i + 1,
|
|
153
|
+
column: match.index + 1,
|
|
154
|
+
matchedText: match[0],
|
|
155
|
+
context: line.trim(),
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
return results;
|
|
161
|
+
}
|
|
162
|
+
export function detectRouteSplitting(content, filePath) {
|
|
163
|
+
const results = [];
|
|
164
|
+
const lines = content.split('\n');
|
|
165
|
+
for (let i = 0; i < lines.length; i++) {
|
|
166
|
+
const line = lines[i];
|
|
167
|
+
for (const pattern of ROUTE_SPLITTING_PATTERNS) {
|
|
168
|
+
const regex = new RegExp(pattern.source, pattern.flags);
|
|
169
|
+
let match;
|
|
170
|
+
while ((match = regex.exec(line)) !== null) {
|
|
171
|
+
results.push({
|
|
172
|
+
type: 'route-splitting',
|
|
173
|
+
file: filePath,
|
|
174
|
+
line: i + 1,
|
|
175
|
+
column: match.index + 1,
|
|
176
|
+
matchedText: match[0],
|
|
177
|
+
context: line.trim(),
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
return results;
|
|
183
|
+
}
|
|
184
|
+
export function detectComponentSplitting(content, filePath) {
|
|
185
|
+
const results = [];
|
|
186
|
+
const lines = content.split('\n');
|
|
187
|
+
for (let i = 0; i < lines.length; i++) {
|
|
188
|
+
const line = lines[i];
|
|
189
|
+
for (const pattern of COMPONENT_SPLITTING_PATTERNS) {
|
|
190
|
+
const regex = new RegExp(pattern.source, pattern.flags);
|
|
191
|
+
let match;
|
|
192
|
+
while ((match = regex.exec(line)) !== null) {
|
|
193
|
+
results.push({
|
|
194
|
+
type: 'component-splitting',
|
|
195
|
+
file: filePath,
|
|
196
|
+
line: i + 1,
|
|
197
|
+
column: match.index + 1,
|
|
198
|
+
matchedText: match[0],
|
|
199
|
+
chunkName: match[1],
|
|
200
|
+
importPath: match[2],
|
|
201
|
+
context: line.trim(),
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
return results;
|
|
207
|
+
}
|
|
208
|
+
export function detectVendorChunk(content, filePath) {
|
|
209
|
+
const results = [];
|
|
210
|
+
const lines = content.split('\n');
|
|
211
|
+
for (let i = 0; i < lines.length; i++) {
|
|
212
|
+
const line = lines[i];
|
|
213
|
+
for (const pattern of VENDOR_CHUNK_PATTERNS) {
|
|
214
|
+
const regex = new RegExp(pattern.source, pattern.flags);
|
|
215
|
+
let match;
|
|
216
|
+
while ((match = regex.exec(line)) !== null) {
|
|
217
|
+
results.push({
|
|
218
|
+
type: 'vendor-chunk',
|
|
219
|
+
file: filePath,
|
|
220
|
+
line: i + 1,
|
|
221
|
+
column: match.index + 1,
|
|
222
|
+
matchedText: match[0],
|
|
223
|
+
context: line.trim(),
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
return results;
|
|
229
|
+
}
|
|
230
|
+
export function detectWebpackMagicComment(content, filePath) {
|
|
231
|
+
const results = [];
|
|
232
|
+
const lines = content.split('\n');
|
|
233
|
+
for (let i = 0; i < lines.length; i++) {
|
|
234
|
+
const line = lines[i];
|
|
235
|
+
for (const pattern of WEBPACK_MAGIC_COMMENT_PATTERNS) {
|
|
236
|
+
const regex = new RegExp(pattern.source, pattern.flags);
|
|
237
|
+
let match;
|
|
238
|
+
while ((match = regex.exec(line)) !== null) {
|
|
239
|
+
results.push({
|
|
240
|
+
type: 'webpack-magic-comment',
|
|
241
|
+
file: filePath,
|
|
242
|
+
line: i + 1,
|
|
243
|
+
column: match.index + 1,
|
|
244
|
+
matchedText: match[0],
|
|
245
|
+
chunkName: match[1],
|
|
246
|
+
context: line.trim(),
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
return results;
|
|
252
|
+
}
|
|
253
|
+
export function detectSuspenseBoundary(content, filePath) {
|
|
254
|
+
const results = [];
|
|
255
|
+
const lines = content.split('\n');
|
|
256
|
+
for (let i = 0; i < lines.length; i++) {
|
|
257
|
+
const line = lines[i];
|
|
258
|
+
for (const pattern of SUSPENSE_BOUNDARY_PATTERNS) {
|
|
259
|
+
const regex = new RegExp(pattern.source, pattern.flags);
|
|
260
|
+
let match;
|
|
261
|
+
while ((match = regex.exec(line)) !== null) {
|
|
262
|
+
results.push({
|
|
263
|
+
type: 'suspense-boundary',
|
|
264
|
+
file: filePath,
|
|
265
|
+
line: i + 1,
|
|
266
|
+
column: match.index + 1,
|
|
267
|
+
matchedText: match[0],
|
|
268
|
+
context: line.trim(),
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
return results;
|
|
274
|
+
}
|
|
275
|
+
export function detectLoadableComponent(content, filePath) {
|
|
276
|
+
const results = [];
|
|
277
|
+
const lines = content.split('\n');
|
|
278
|
+
for (let i = 0; i < lines.length; i++) {
|
|
279
|
+
const line = lines[i];
|
|
280
|
+
for (const pattern of LOADABLE_COMPONENT_PATTERNS) {
|
|
281
|
+
const regex = new RegExp(pattern.source, pattern.flags);
|
|
282
|
+
let match;
|
|
283
|
+
while ((match = regex.exec(line)) !== null) {
|
|
284
|
+
results.push({
|
|
285
|
+
type: 'loadable-component',
|
|
286
|
+
file: filePath,
|
|
287
|
+
line: i + 1,
|
|
288
|
+
column: match.index + 1,
|
|
289
|
+
matchedText: match[0],
|
|
290
|
+
context: line.trim(),
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
return results;
|
|
296
|
+
}
|
|
297
|
+
export function detectPrefetchHint(content, filePath) {
|
|
298
|
+
const results = [];
|
|
299
|
+
const lines = content.split('\n');
|
|
300
|
+
for (let i = 0; i < lines.length; i++) {
|
|
301
|
+
const line = lines[i];
|
|
302
|
+
for (const pattern of PREFETCH_HINT_PATTERNS) {
|
|
303
|
+
const regex = new RegExp(pattern.source, pattern.flags);
|
|
304
|
+
let match;
|
|
305
|
+
while ((match = regex.exec(line)) !== null) {
|
|
306
|
+
results.push({
|
|
307
|
+
type: 'prefetch-hint',
|
|
308
|
+
file: filePath,
|
|
309
|
+
line: i + 1,
|
|
310
|
+
column: match.index + 1,
|
|
311
|
+
matchedText: match[0],
|
|
312
|
+
context: line.trim(),
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
return results;
|
|
318
|
+
}
|
|
319
|
+
export function detectMissingSuspenseViolations(content, filePath) {
|
|
320
|
+
const results = [];
|
|
321
|
+
const hasLazy = MISSING_SUSPENSE_PATTERNS.some((p) => new RegExp(p.source, p.flags).test(content));
|
|
322
|
+
const hasSuspense = SUSPENSE_BOUNDARY_PATTERNS.some((p) => new RegExp(p.source, p.flags).test(content));
|
|
323
|
+
if (hasLazy && !hasSuspense) {
|
|
324
|
+
results.push({
|
|
325
|
+
type: 'missing-suspense',
|
|
326
|
+
file: filePath,
|
|
327
|
+
line: 1,
|
|
328
|
+
column: 1,
|
|
329
|
+
matchedText: 'lazy component',
|
|
330
|
+
issue: 'Lazy component without Suspense boundary',
|
|
331
|
+
suggestedFix: 'Wrap lazy components with <Suspense fallback={...}>',
|
|
332
|
+
severity: 'high',
|
|
333
|
+
});
|
|
334
|
+
}
|
|
335
|
+
return results;
|
|
336
|
+
}
|
|
337
|
+
export function detectEagerImportViolations(content, filePath) {
|
|
338
|
+
const results = [];
|
|
339
|
+
const lines = content.split('\n');
|
|
340
|
+
for (let i = 0; i < lines.length; i++) {
|
|
341
|
+
const line = lines[i];
|
|
342
|
+
for (const pattern of EAGER_IMPORT_PATTERNS) {
|
|
343
|
+
const regex = new RegExp(pattern.source, pattern.flags);
|
|
344
|
+
let match;
|
|
345
|
+
while ((match = regex.exec(line)) !== null) {
|
|
346
|
+
results.push({
|
|
347
|
+
type: 'eager-import',
|
|
348
|
+
file: filePath,
|
|
349
|
+
line: i + 1,
|
|
350
|
+
column: match.index + 1,
|
|
351
|
+
matchedText: match[0],
|
|
352
|
+
issue: 'Large library imported eagerly',
|
|
353
|
+
suggestedFix: 'Consider dynamic import or tree-shaking',
|
|
354
|
+
severity: 'medium',
|
|
355
|
+
});
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
return results;
|
|
360
|
+
}
|
|
361
|
+
export function analyzeCodeSplitting(content, filePath) {
|
|
362
|
+
if (shouldExcludeFile(filePath)) {
|
|
363
|
+
return {
|
|
364
|
+
patterns: [],
|
|
365
|
+
violations: [],
|
|
366
|
+
dynamicImportCount: 0,
|
|
367
|
+
lazyComponentCount: 0,
|
|
368
|
+
hasSuspenseBoundaries: false,
|
|
369
|
+
usesWebpackComments: false,
|
|
370
|
+
confidence: 1.0,
|
|
371
|
+
};
|
|
372
|
+
}
|
|
373
|
+
const patterns = [
|
|
374
|
+
...detectDynamicImports(content, filePath),
|
|
375
|
+
...detectReactLazy(content, filePath),
|
|
376
|
+
...detectNextDynamic(content, filePath),
|
|
377
|
+
...detectRouteSplitting(content, filePath),
|
|
378
|
+
...detectComponentSplitting(content, filePath),
|
|
379
|
+
...detectVendorChunk(content, filePath),
|
|
380
|
+
...detectWebpackMagicComment(content, filePath),
|
|
381
|
+
...detectSuspenseBoundary(content, filePath),
|
|
382
|
+
...detectLoadableComponent(content, filePath),
|
|
383
|
+
...detectPrefetchHint(content, filePath),
|
|
384
|
+
];
|
|
385
|
+
const violations = [
|
|
386
|
+
...detectMissingSuspenseViolations(content, filePath),
|
|
387
|
+
...detectEagerImportViolations(content, filePath),
|
|
388
|
+
];
|
|
389
|
+
const dynamicImportCount = patterns.filter((p) => p.type === 'dynamic-import').length;
|
|
390
|
+
const lazyComponentCount = patterns.filter((p) => p.type === 'react-lazy' || p.type === 'next-dynamic' || p.type === 'loadable-component').length;
|
|
391
|
+
const hasSuspenseBoundaries = patterns.some((p) => p.type === 'suspense-boundary');
|
|
392
|
+
const usesWebpackComments = patterns.some((p) => p.type === 'webpack-magic-comment');
|
|
393
|
+
let confidence = 0.7;
|
|
394
|
+
if (patterns.length > 0)
|
|
395
|
+
confidence += 0.15;
|
|
396
|
+
if (hasSuspenseBoundaries)
|
|
397
|
+
confidence += 0.05;
|
|
398
|
+
if (violations.length === 0)
|
|
399
|
+
confidence += 0.05;
|
|
400
|
+
confidence = Math.min(confidence, 0.95);
|
|
401
|
+
return {
|
|
402
|
+
patterns,
|
|
403
|
+
violations,
|
|
404
|
+
dynamicImportCount,
|
|
405
|
+
lazyComponentCount,
|
|
406
|
+
hasSuspenseBoundaries,
|
|
407
|
+
usesWebpackComments,
|
|
408
|
+
confidence,
|
|
409
|
+
};
|
|
410
|
+
}
|
|
411
|
+
// ============================================================================
|
|
412
|
+
// Detector Class
|
|
413
|
+
// ============================================================================
|
|
414
|
+
export class CodeSplittingDetector extends RegexDetector {
|
|
415
|
+
id = 'performance/code-splitting';
|
|
416
|
+
name = 'Code Splitting Detector';
|
|
417
|
+
description = 'Detects code splitting patterns including dynamic imports and lazy loading';
|
|
418
|
+
category = 'performance';
|
|
419
|
+
subcategory = 'code-splitting';
|
|
420
|
+
supportedLanguages = ['typescript', 'javascript'];
|
|
421
|
+
async detect(context) {
|
|
422
|
+
if (!this.supportsLanguage(context.language)) {
|
|
423
|
+
return this.createEmptyResult();
|
|
424
|
+
}
|
|
425
|
+
const analysis = analyzeCodeSplitting(context.content, context.file);
|
|
426
|
+
if (analysis.patterns.length === 0 && analysis.violations.length === 0) {
|
|
427
|
+
return this.createEmptyResult();
|
|
428
|
+
}
|
|
429
|
+
return this.createResult([], [], analysis.confidence, {
|
|
430
|
+
custom: {
|
|
431
|
+
patterns: analysis.patterns,
|
|
432
|
+
violations: analysis.violations,
|
|
433
|
+
dynamicImportCount: analysis.dynamicImportCount,
|
|
434
|
+
lazyComponentCount: analysis.lazyComponentCount,
|
|
435
|
+
hasSuspenseBoundaries: analysis.hasSuspenseBoundaries,
|
|
436
|
+
usesWebpackComments: analysis.usesWebpackComments,
|
|
437
|
+
},
|
|
438
|
+
});
|
|
439
|
+
}
|
|
440
|
+
generateQuickFix(_violation) {
|
|
441
|
+
return null;
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
export function createCodeSplittingDetector() {
|
|
445
|
+
return new CodeSplittingDetector();
|
|
446
|
+
}
|
|
447
|
+
//# sourceMappingURL=code-splitting.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-splitting.js","sourceRoot":"","sources":["../../src/performance/code-splitting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,EAAE,aAAa,EAAE,MAAM,2B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CAAC;AACrC,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Debounce Throttle Detector - Debounce and throttle pattern detection
|
|
3
|
+
*
|
|
4
|
+
* Detects debounce and throttle patterns including:
|
|
5
|
+
* - Lodash debounce/throttle
|
|
6
|
+
* - Custom implementations
|
|
7
|
+
* - React hooks (useDebounce, useThrottle)
|
|
8
|
+
* - Event handler optimization
|
|
9
|
+
*
|
|
10
|
+
* @requirements 19.5 - Debounce and throttle patterns
|
|
11
|
+
*/
|
|
12
|
+
import type { Violation, QuickFix, PatternCategory, Language } from 'driftdetect-core';
|
|
13
|
+
import { RegexDetector } from '../base/regex-detector.js';
|
|
14
|
+
import type { DetectionContext, DetectionResult } from '../base/base-detector.js';
|
|
15
|
+
export type DebounceThrottlePatternType = 'lodash-debounce' | 'lodash-throttle' | 'custom-debounce' | 'custom-throttle' | 'use-debounce' | 'use-throttle' | 'request-animation-frame' | 'set-timeout-debounce';
|
|
16
|
+
export type DebounceThrottleViolationType = 'missing-debounce' | 'missing-throttle' | 'excessive-delay';
|
|
17
|
+
export interface DebounceThrottlePatternInfo {
|
|
18
|
+
type: DebounceThrottlePatternType;
|
|
19
|
+
file: string;
|
|
20
|
+
line: number;
|
|
21
|
+
column: number;
|
|
22
|
+
matchedText: string;
|
|
23
|
+
delay?: number | undefined;
|
|
24
|
+
context?: string | undefined;
|
|
25
|
+
}
|
|
26
|
+
export interface DebounceThrottleViolationInfo {
|
|
27
|
+
type: DebounceThrottleViolationType;
|
|
28
|
+
file: string;
|
|
29
|
+
line: number;
|
|
30
|
+
column: number;
|
|
31
|
+
matchedText: string;
|
|
32
|
+
issue: string;
|
|
33
|
+
suggestedFix?: string | undefined;
|
|
34
|
+
severity: 'high' | 'medium' | 'low';
|
|
35
|
+
}
|
|
36
|
+
export interface DebounceThrottleAnalysis {
|
|
37
|
+
patterns: DebounceThrottlePatternInfo[];
|
|
38
|
+
violations: DebounceThrottleViolationInfo[];
|
|
39
|
+
debounceCount: number;
|
|
40
|
+
throttleCount: number;
|
|
41
|
+
usesRAF: boolean;
|
|
42
|
+
confidence: number;
|
|
43
|
+
}
|
|
44
|
+
export declare const LODASH_DEBOUNCE_PATTERNS: readonly [RegExp, RegExp, RegExp, RegExp];
|
|
45
|
+
export declare const LODASH_THROTTLE_PATTERNS: readonly [RegExp, RegExp, RegExp, RegExp];
|
|
46
|
+
export declare const CUSTOM_DEBOUNCE_PATTERNS: readonly [RegExp, RegExp, RegExp, RegExp];
|
|
47
|
+
export declare const CUSTOM_THROTTLE_PATTERNS: readonly [RegExp, RegExp, RegExp, RegExp];
|
|
48
|
+
export declare const USE_DEBOUNCE_PATTERNS: readonly [RegExp, RegExp, RegExp, RegExp];
|
|
49
|
+
export declare const USE_THROTTLE_PATTERNS: readonly [RegExp, RegExp, RegExp];
|
|
50
|
+
export declare const REQUEST_ANIMATION_FRAME_PATTERNS: readonly [RegExp, RegExp, RegExp];
|
|
51
|
+
export declare const SET_TIMEOUT_DEBOUNCE_PATTERNS: readonly [RegExp, RegExp];
|
|
52
|
+
export declare const MISSING_DEBOUNCE_PATTERNS: readonly [RegExp, RegExp, RegExp, RegExp];
|
|
53
|
+
export declare function shouldExcludeFile(filePath: string): boolean;
|
|
54
|
+
export declare function detectLodashDebounce(content: string, filePath: string): DebounceThrottlePatternInfo[];
|
|
55
|
+
export declare function detectLodashThrottle(content: string, filePath: string): DebounceThrottlePatternInfo[];
|
|
56
|
+
export declare function detectCustomDebounce(content: string, filePath: string): DebounceThrottlePatternInfo[];
|
|
57
|
+
export declare function detectCustomThrottle(content: string, filePath: string): DebounceThrottlePatternInfo[];
|
|
58
|
+
export declare function detectUseDebounce(content: string, filePath: string): DebounceThrottlePatternInfo[];
|
|
59
|
+
export declare function detectUseThrottle(content: string, filePath: string): DebounceThrottlePatternInfo[];
|
|
60
|
+
export declare function detectRequestAnimationFrame(content: string, filePath: string): DebounceThrottlePatternInfo[];
|
|
61
|
+
export declare function detectSetTimeoutDebounce(content: string, filePath: string): DebounceThrottlePatternInfo[];
|
|
62
|
+
export declare function detectMissingDebounceViolations(content: string, filePath: string): DebounceThrottleViolationInfo[];
|
|
63
|
+
export declare function analyzeDebounceThrottle(content: string, filePath: string): DebounceThrottleAnalysis;
|
|
64
|
+
export declare class DebounceThrottleDetector extends RegexDetector {
|
|
65
|
+
readonly id = "performance/debounce-throttle";
|
|
66
|
+
readonly name = "Debounce Throttle Detector";
|
|
67
|
+
readonly description = "Detects debounce and throttle patterns for event optimization";
|
|
68
|
+
readonly category: PatternCategory;
|
|
69
|
+
readonly subcategory = "debounce-throttle";
|
|
70
|
+
readonly supportedLanguages: Language[];
|
|
71
|
+
detect(context: DetectionContext): Promise<DetectionResult>;
|
|
72
|
+
generateQuickFix(_violation: Violation): QuickFix | null;
|
|
73
|
+
}
|
|
74
|
+
export declare function createDebounceThrottleDetector(): DebounceThrottleDetector;
|
|
75
|
+
//# sourceMappingURL=debounce-throttle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debounce-throttle.d.ts","sourceRoot":"","sources":["../../src/performance/debounce-throttle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvF,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAMlF,MAAM,MAAM,2BAA2B,GACnC,iBAAiB,GACjB,iBAAiB,GACjB,iBAAiB,GACjB,iBAAiB,GACjB,cAAc,GACd,cAAc,GACd,yBAAyB,GACzB,sBAAsB,CAAC;AAE3B,MAAM,MAAM,6BAA6B,GACrC,kBAAkB,GAClB,kBAAkB,GAClB,iBAAiB,CAAC;AAEtB,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,2BAA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