pumuki 6.3.284 → 6.3.286
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/VERSION +1 -1
- package/core/facts/detectors/text/ios.test.ts +103 -1
- package/core/facts/detectors/text/ios.ts +162 -1
- package/core/facts/detectors/typescript/index.test.ts +555 -0
- package/core/facts/detectors/typescript/index.ts +476 -0
- package/core/facts/extractHeuristicFacts.ts +29 -15
- package/core/rules/presets/heuristics/ios.test.ts +6 -1
- package/core/rules/presets/heuristics/ios.ts +21 -2
- package/core/rules/presets/heuristics/typescript.test.ts +49 -1
- package/core/rules/presets/heuristics/typescript.ts +144 -0
- package/integrations/config/skillsDetectorRegistry.ts +57 -0
- package/package.json +1 -1
|
@@ -53,6 +53,10 @@ const registryByRuleId: Record<string, SkillsDetectorBinding> = {
|
|
|
53
53
|
'ios.combine.sink-without-store',
|
|
54
54
|
['heuristics.ios.combine.sink-without-store.ast']
|
|
55
55
|
),
|
|
56
|
+
'skills.ios.guideline.ios.subscribers-sink-assign': heuristicDetector(
|
|
57
|
+
'ios.combine.subscription-without-store',
|
|
58
|
+
['heuristics.ios.combine.sink-without-store.ast']
|
|
59
|
+
),
|
|
56
60
|
'skills.ios.no-dispatchqueue': heuristicDetector('ios.dispatchqueue', [
|
|
57
61
|
'heuristics.ios.dispatchqueue.ast',
|
|
58
62
|
]),
|
|
@@ -80,6 +84,10 @@ const registryByRuleId: Record<string, SkillsDetectorBinding> = {
|
|
|
80
84
|
'skills.ios.no-async-without-await': heuristicDetector('ios.concurrency.async-without-await', [
|
|
81
85
|
'heuristics.ios.concurrency.async-without-await.ast',
|
|
82
86
|
]),
|
|
87
|
+
'skills.ios.guideline.ios.avoid-over-use-async-await-ma-s-simple-para-single-values':
|
|
88
|
+
heuristicDetector('ios.concurrency.avoid-overuse-async-without-await', [
|
|
89
|
+
'heuristics.ios.concurrency.async-without-await.ast',
|
|
90
|
+
]),
|
|
83
91
|
'skills.ios.guideline.ios.delegation-pattern-weak-delegates-para-evitar-retain-cycles': heuristicDetector(
|
|
84
92
|
'ios.memory.strong-delegate',
|
|
85
93
|
['heuristics.ios.memory.strong-delegate.ast']
|
|
@@ -114,6 +122,10 @@ const registryByRuleId: Record<string, SkillsDetectorBinding> = {
|
|
|
114
122
|
'ios.maintainability.comment-trivia',
|
|
115
123
|
['heuristics.ios.maintainability.comment-trivia.ast']
|
|
116
124
|
),
|
|
125
|
+
'skills.ios.guideline.ios.ignoring-warnings-warnings-errores-futuros': heuristicDetector(
|
|
126
|
+
'ios.maintainability.warning-suppression',
|
|
127
|
+
['heuristics.ios.maintainability.warning-suppression.ast']
|
|
128
|
+
),
|
|
117
129
|
'skills.ios.guideline.ios.no-singleton-usar-inyeccio-n-de-dependencias-no-compartir-instancias-g': heuristicDetector(
|
|
118
130
|
'ios.architecture.custom-singleton',
|
|
119
131
|
['heuristics.ios.architecture.custom-singleton.ast']
|
|
@@ -769,6 +781,14 @@ const registryByRuleId: Record<string, SkillsDetectorBinding> = {
|
|
|
769
781
|
heuristicDetector('typescript.backend.persistence-mutation-without-audit-event', [
|
|
770
782
|
'heuristics.ts.backend.persistence-mutation-without-audit-event.ast',
|
|
771
783
|
]),
|
|
784
|
+
'skills.backend.guideline.backend.soft-deletes-deletedat-en-lugar-de-delete-fi-sico':
|
|
785
|
+
heuristicDetector('typescript.backend.hard-delete-without-soft-delete', [
|
|
786
|
+
'heuristics.ts.backend.hard-delete-without-soft-delete.ast',
|
|
787
|
+
]),
|
|
788
|
+
'skills.backend.guideline.backend.soft-deletes-por-defecto-deletedat-column':
|
|
789
|
+
heuristicDetector('typescript.backend.hard-delete-without-soft-delete', [
|
|
790
|
+
'heuristics.ts.backend.hard-delete-without-soft-delete.ast',
|
|
791
|
+
]),
|
|
772
792
|
'skills.backend.guideline.backend.class-validator-decorators-isstring-isemail-min-max':
|
|
773
793
|
heuristicDetector('typescript.backend.dto-property-without-validation', [
|
|
774
794
|
'heuristics.ts.backend.dto-property-without-validation.ast',
|
|
@@ -829,6 +849,14 @@ const registryByRuleId: Record<string, SkillsDetectorBinding> = {
|
|
|
829
849
|
heuristicDetector('typescript.backend.sensitive-data-logging', [
|
|
830
850
|
'heuristics.ts.backend.sensitive-data-logging.ast',
|
|
831
851
|
]),
|
|
852
|
+
'skills.backend.guideline.backend.contexto-en-logs-userid-requestid-traceid':
|
|
853
|
+
heuristicDetector('typescript.backend.log-without-context', [
|
|
854
|
+
'heuristics.ts.backend.log-without-context.ast',
|
|
855
|
+
]),
|
|
856
|
+
'skills.backend.guideline.backend.loggear-errores-con-contexto-completo':
|
|
857
|
+
heuristicDetector('typescript.backend.log-without-context', [
|
|
858
|
+
'heuristics.ts.backend.log-without-context.ast',
|
|
859
|
+
]),
|
|
832
860
|
'skills.backend.guideline.backend.magic-numbers-usar-constantes-con-nombres-descriptivos':
|
|
833
861
|
heuristicDetector('typescript.backend.magic-number-literal', [
|
|
834
862
|
'heuristics.ts.backend.magic-number-literal.ast',
|
|
@@ -840,6 +868,7 @@ const registryByRuleId: Record<string, SkillsDetectorBinding> = {
|
|
|
840
868
|
'skills.backend.guideline.backend.custom-exceptions-validationexception-notfoundexception-unauthorizedex':
|
|
841
869
|
heuristicDetector('typescript.backend.generic-error-throw', [
|
|
842
870
|
'heuristics.ts.backend.generic-error-throw.ast',
|
|
871
|
+
'heuristics.ts.backend.raw-throw-expression.ast',
|
|
843
872
|
]),
|
|
844
873
|
'skills.backend.guideline.backend.mocks-en-produccio-n-solo-datos-reales':
|
|
845
874
|
heuristicDetector('typescript.backend.production-mock-or-spy', [
|
|
@@ -853,10 +882,38 @@ const registryByRuleId: Record<string, SkillsDetectorBinding> = {
|
|
|
853
882
|
heuristicDetector('typescript.backend.error-stack-in-http-response', [
|
|
854
883
|
'heuristics.ts.backend.error-stack-in-http-response.ast',
|
|
855
884
|
]),
|
|
885
|
+
'skills.backend.guideline.backend.error-responses-consistentes-statuscode-message-timestamp-path':
|
|
886
|
+
heuristicDetector('typescript.backend.inconsistent-error-response', [
|
|
887
|
+
'heuristics.ts.backend.inconsistent-error-response.ast',
|
|
888
|
+
]),
|
|
889
|
+
'skills.backend.guideline.backend.http-status-codes-apropiados-200-201-400-401-403-404-500':
|
|
890
|
+
heuristicDetector('typescript.backend.error-payload-success-status', [
|
|
891
|
+
'heuristics.ts.backend.error-payload-success-status.ast',
|
|
892
|
+
]),
|
|
893
|
+
'skills.backend.guideline.backend.http-status-codes-sema-ntica-correcta':
|
|
894
|
+
heuristicDetector('typescript.backend.error-payload-success-status', [
|
|
895
|
+
'heuristics.ts.backend.error-payload-success-status.ast',
|
|
896
|
+
]),
|
|
897
|
+
'skills.backend.guideline.backend.retornar-dtos-no-exponer-entidades-directamente':
|
|
898
|
+
heuristicDetector('typescript.backend.controller-entity-response', [
|
|
899
|
+
'heuristics.ts.backend.controller-entity-response.ast',
|
|
900
|
+
]),
|
|
856
901
|
'skills.backend.guideline.backend.anemic-domain-models-entidades-solo-con-getters-setters':
|
|
857
902
|
heuristicDetector('typescript.backend.anemic-domain-model', [
|
|
858
903
|
'heuristics.ts.backend.anemic-domain-model.ast',
|
|
859
904
|
]),
|
|
905
|
+
'skills.backend.guideline.backend.cors-configurado-solo-ori-genes-permitidos':
|
|
906
|
+
heuristicDetector('typescript.backend.permissive-cors', [
|
|
907
|
+
'heuristics.ts.backend.permissive-cors.ast',
|
|
908
|
+
]),
|
|
909
|
+
'skills.backend.guideline.backend.cors-configurar-ori-genes-permitidos':
|
|
910
|
+
heuristicDetector('typescript.backend.permissive-cors', [
|
|
911
|
+
'heuristics.ts.backend.permissive-cors.ast',
|
|
912
|
+
]),
|
|
913
|
+
'skills.backend.guideline.backend.enums-para-valores-fijos-orderstatus-paymentmethod-incidenttype':
|
|
914
|
+
heuristicDetector('typescript.backend.string-literal-union-enum', [
|
|
915
|
+
'heuristics.ts.backend.string-literal-union-enum.ast',
|
|
916
|
+
]),
|
|
860
917
|
'skills.backend.guideline.backend.password-hashing-bcrypt-con-salt-rounds-10':
|
|
861
918
|
heuristicDetector('typescript.bcrypt-weak-salt-rounds', [
|
|
862
919
|
'heuristics.ts.bcrypt-weak-salt-rounds.ast',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pumuki",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.286",
|
|
4
4
|
"description": "Enterprise-grade AST Intelligence System with multi-platform support (iOS, Android, Backend, Frontend) and Feature-First + DDD + Clean Architecture enforcement. Includes dynamic violations API for intelligent querying.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|