@webpieces/nx-webpieces-rules 0.4.847 → 0.4.849
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/README.md +28 -15
- package/executors.json +1 -66
- package/package.json +9 -9
- package/src/executors/validate-architecture-unchanged/executor.d.ts +8 -0
- package/src/executors/validate-architecture-unchanged/executor.js +20 -18
- package/src/executors/validate-architecture-unchanged/executor.js.map +1 -1
- package/src/executors/validate-code/executor.d.ts +2 -7
- package/src/executors/validate-code/executor.js +31 -2
- package/src/executors/validate-code/executor.js.map +1 -1
- package/src/executors/validate-code/schema.json +6 -281
- package/src/executors/validate-runtime-architecture/schema.json +1 -1
- package/src/lib/api-usage/wire-closure.d.ts +3 -3
- package/src/lib/api-usage/wire-closure.js +5 -5
- package/src/lib/api-usage/wire-closure.js.map +1 -1
- package/src/lib/api-usage/wire-suffix-entry.d.ts +5 -0
- package/src/lib/api-usage/wire-suffix-entry.js +10 -0
- package/src/lib/api-usage/wire-suffix-entry.js.map +1 -0
- package/src/lib/rule-gate.d.ts +1 -2
- package/src/lib/rule-gate.js +3 -4
- package/src/lib/rule-gate.js.map +1 -1
- package/src/lib/runtime-visualizer.d.ts +4 -4
- package/src/lib/runtime-visualizer.js +2 -2
- package/src/lib/runtime-visualizer.js.map +1 -1
- package/src/native-actions.d.ts +23 -0
- package/src/native-actions.js +69 -0
- package/src/native-actions.js.map +1 -0
- package/src/nx-policy-registry.d.ts +8 -0
- package/src/nx-policy-registry.js +40 -0
- package/src/nx-policy-registry.js.map +1 -0
- package/src/pack-build-runner.d.ts +6 -0
- package/src/pack-build-runner.js +46 -0
- package/src/pack-build-runner.js.map +1 -0
- package/src/plugin.js +6 -40
- package/src/plugin.js.map +1 -1
- package/src/rule-help.d.ts +3 -0
- package/src/rule-help.js +24 -0
- package/src/rule-help.js.map +1 -0
- package/src/rule-pack.js +5 -28
- package/src/rule-pack.js.map +1 -1
- package/src/rule-runtime.d.ts +5 -0
- package/src/rule-runtime.js +94 -0
- package/src/rule-runtime.js.map +1 -0
- package/src/validation-targets.js +21 -5
- package/src/validation-targets.js.map +1 -1
- package/src/executors/validate-catch-error-pattern/executor.d.ts +0 -4
- package/src/executors/validate-catch-error-pattern/executor.js +0 -8
- package/src/executors/validate-catch-error-pattern/executor.js.map +0 -1
- package/src/executors/validate-catch-error-pattern/schema.json +0 -24
- package/src/executors/validate-dtos/executor.d.ts +0 -4
- package/src/executors/validate-dtos/executor.js +0 -8
- package/src/executors/validate-dtos/executor.js.map +0 -1
- package/src/executors/validate-dtos/schema.json +0 -33
- package/src/executors/validate-modified-files/executor.d.ts +0 -4
- package/src/executors/validate-modified-files/executor.js +0 -8
- package/src/executors/validate-modified-files/executor.js.map +0 -1
- package/src/executors/validate-modified-files/schema.json +0 -25
- package/src/executors/validate-modified-methods/executor.d.ts +0 -4
- package/src/executors/validate-modified-methods/executor.js +0 -8
- package/src/executors/validate-modified-methods/executor.js.map +0 -1
- package/src/executors/validate-modified-methods/schema.json +0 -25
- package/src/executors/validate-new-methods/executor.d.ts +0 -4
- package/src/executors/validate-new-methods/executor.js +0 -8
- package/src/executors/validate-new-methods/executor.js.map +0 -1
- package/src/executors/validate-new-methods/schema.json +0 -25
- package/src/executors/validate-no-any-unknown/executor.d.ts +0 -4
- package/src/executors/validate-no-any-unknown/executor.js +0 -8
- package/src/executors/validate-no-any-unknown/executor.js.map +0 -1
- package/src/executors/validate-no-any-unknown/schema.json +0 -24
- package/src/executors/validate-no-destructure/executor.d.ts +0 -4
- package/src/executors/validate-no-destructure/executor.js +0 -8
- package/src/executors/validate-no-destructure/executor.js.map +0 -1
- package/src/executors/validate-no-destructure/schema.json +0 -24
- package/src/executors/validate-no-direct-api-resolver/executor.d.ts +0 -4
- package/src/executors/validate-no-direct-api-resolver/executor.js +0 -8
- package/src/executors/validate-no-direct-api-resolver/executor.js.map +0 -1
- package/src/executors/validate-no-direct-api-resolver/schema.json +0 -29
- package/src/executors/validate-no-implicit-any/executor.d.ts +0 -4
- package/src/executors/validate-no-implicit-any/executor.js +0 -8
- package/src/executors/validate-no-implicit-any/executor.js.map +0 -1
- package/src/executors/validate-no-implicit-any/schema.json +0 -24
- package/src/executors/validate-no-inline-types/executor.d.ts +0 -4
- package/src/executors/validate-no-inline-types/executor.js +0 -8
- package/src/executors/validate-no-inline-types/executor.js.map +0 -1
- package/src/executors/validate-no-inline-types/schema.json +0 -24
- package/src/executors/validate-no-unmanaged-exceptions/executor.d.ts +0 -4
- package/src/executors/validate-no-unmanaged-exceptions/executor.js +0 -8
- package/src/executors/validate-no-unmanaged-exceptions/executor.js.map +0 -1
- package/src/executors/validate-no-unmanaged-exceptions/schema.json +0 -24
- package/src/executors/validate-prisma-converters/executor.d.ts +0 -4
- package/src/executors/validate-prisma-converters/executor.js +0 -8
- package/src/executors/validate-prisma-converters/executor.js.map +0 -1
- package/src/executors/validate-prisma-converters/schema.json +0 -38
- package/src/executors/validate-return-types/executor.d.ts +0 -4
- package/src/executors/validate-return-types/executor.js +0 -8
- package/src/executors/validate-return-types/executor.js.map +0 -1
- package/src/executors/validate-return-types/schema.json +0 -24
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = runExecutor;
|
|
4
|
-
const code_rules_1 = require("@webpieces/code-rules");
|
|
5
|
-
async function runExecutor(options, context) {
|
|
6
|
-
return new code_rules_1.PrismaValidateDtosValidator(options).run(context.root);
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=executor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../../packages/tooling/nx-webpieces-rules/src/executors/validate-dtos/executor.ts"],"names":[],"mappings":";;AAKA,8BAKC;AARD,sDAAoE;AAGrD,KAAK,UAAU,WAAW,CACrC,OAAiC,EACjC,OAAwB;IAExB,OAAO,IAAI,wCAA2B,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AACtE,CAAC","sourcesContent":["import type { ExecutorContext } from '@nx/devkit';\nimport { ExecutorResult } from '../../executor-result';\nimport { PrismaValidateDtosValidator } from '@webpieces/code-rules';\nimport { PrismaValidateDtosConfig } from \"@webpieces/code-rules\";\n\nexport default async function runExecutor(\n options: PrismaValidateDtosConfig,\n context: ExecutorContext,\n): Promise<ExecutorResult> {\n return new PrismaValidateDtosValidator(options).run(context.root);\n}\n"]}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"title": "Validate DTOs Executor",
|
|
4
|
-
"description": "Validate DTO fields match Prisma Dbo model fields. Ensures AI agents don't invent field names.",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"properties": {
|
|
7
|
-
"mode": {
|
|
8
|
-
"type": "string",
|
|
9
|
-
"enum": ["OFF", "MODIFIED_CLASS", "NEW_AND_MODIFIED_FILES"],
|
|
10
|
-
"description": "OFF: skip validation. MODIFIED_CLASS: only validate Dto classes with changed lines. NEW_AND_MODIFIED_FILES: validate all Dtos in modified files.",
|
|
11
|
-
"default": "OFF"
|
|
12
|
-
},
|
|
13
|
-
"prismaSchemaPath": {
|
|
14
|
-
"type": "string",
|
|
15
|
-
"description": "Relative path from workspace root to schema.prisma"
|
|
16
|
-
},
|
|
17
|
-
"dtoSourcePaths": {
|
|
18
|
-
"type": "array",
|
|
19
|
-
"items": { "type": "string" },
|
|
20
|
-
"description": "Array of directories (relative to workspace root) containing Dto files"
|
|
21
|
-
},
|
|
22
|
-
"disableAllowed": {
|
|
23
|
-
"type": "boolean",
|
|
24
|
-
"description": "Whether @deprecated field exemption works. When false, all fields must match.",
|
|
25
|
-
"default": true
|
|
26
|
-
},
|
|
27
|
-
"turnOffRuleUntilEpoch": {
|
|
28
|
-
"type": "number",
|
|
29
|
-
"description": "Epoch seconds. Until this time, skip DTO validation entirely. When expired, normal mode resumes. Omit when not needed."
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
"required": []
|
|
33
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { ExecutorContext } from '@nx/devkit';
|
|
2
|
-
import { ExecutorResult } from '../../executor-result';
|
|
3
|
-
import { MaxFileLinesConfig } from "@webpieces/code-rules";
|
|
4
|
-
export default function runExecutor(options: MaxFileLinesConfig, context: ExecutorContext): Promise<ExecutorResult>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = runExecutor;
|
|
4
|
-
const code_rules_1 = require("@webpieces/code-rules");
|
|
5
|
-
async function runExecutor(options, context) {
|
|
6
|
-
return new code_rules_1.MaxFileLinesValidator(options).run(context.root);
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=executor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../../packages/tooling/nx-webpieces-rules/src/executors/validate-modified-files/executor.ts"],"names":[],"mappings":";;AAKA,8BAKC;AARD,sDAA8D;AAG/C,KAAK,UAAU,WAAW,CACrC,OAA2B,EAC3B,OAAwB;IAExB,OAAO,IAAI,kCAAqB,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AAChE,CAAC","sourcesContent":["import type { ExecutorContext } from '@nx/devkit';\nimport { ExecutorResult } from '../../executor-result';\nimport { MaxFileLinesValidator } from '@webpieces/code-rules';\nimport { MaxFileLinesConfig } from \"@webpieces/code-rules\";\n\nexport default async function runExecutor(\n options: MaxFileLinesConfig,\n context: ExecutorContext,\n): Promise<ExecutorResult> {\n return new MaxFileLinesValidator(options).run(context.root);\n}\n"]}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"title": "Validate Modified Files Executor",
|
|
4
|
-
"description": "Validates that modified files don't exceed a maximum line count. Encourages keeping files small and focused.",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"properties": {
|
|
7
|
-
"limit": {
|
|
8
|
-
"type": "number",
|
|
9
|
-
"description": "Maximum number of lines allowed for modified files",
|
|
10
|
-
"default": 900
|
|
11
|
-
},
|
|
12
|
-
"mode": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"enum": ["OFF", "NEW_AND_MODIFIED_FILES"],
|
|
15
|
-
"description": "OFF: skip validation. NEW_AND_MODIFIED_FILES: validate all code in modified files.",
|
|
16
|
-
"default": "NEW_AND_MODIFIED_FILES"
|
|
17
|
-
},
|
|
18
|
-
"disableAllowed": {
|
|
19
|
-
"type": "boolean",
|
|
20
|
-
"description": "Whether disable comments work. When false, no escape hatch (like old STRICT mode).",
|
|
21
|
-
"default": true
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
"required": []
|
|
25
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { ExecutorContext } from '@nx/devkit';
|
|
2
|
-
import { ExecutorResult } from '../../executor-result';
|
|
3
|
-
import { MaxMethodLinesConfig } from "@webpieces/code-rules";
|
|
4
|
-
export default function runExecutor(options: MaxMethodLinesConfig, context: ExecutorContext): Promise<ExecutorResult>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = runExecutor;
|
|
4
|
-
const code_rules_1 = require("@webpieces/code-rules");
|
|
5
|
-
async function runExecutor(options, context) {
|
|
6
|
-
return (0, code_rules_1.runModifiedMethods)(options, context.root);
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=executor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../../packages/tooling/nx-webpieces-rules/src/executors/validate-modified-methods/executor.ts"],"names":[],"mappings":";;AAKA,8BAKC;AARD,sDAA2D;AAG5C,KAAK,UAAU,WAAW,CACrC,OAA6B,EAC7B,OAAwB;IAExB,OAAO,IAAA,+BAAkB,EAAC,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;AACrD,CAAC","sourcesContent":["import type { ExecutorContext } from '@nx/devkit';\nimport { ExecutorResult } from '../../executor-result';\nimport { runModifiedMethods } from '@webpieces/code-rules';\nimport { MaxMethodLinesConfig } from \"@webpieces/code-rules\";\n\nexport default async function runExecutor(\n options: MaxMethodLinesConfig,\n context: ExecutorContext,\n): Promise<ExecutorResult> {\n return runModifiedMethods(options, context.root);\n}\n"]}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"title": "Validate Modified Methods Executor",
|
|
4
|
-
"description": "Validates that modified methods don't exceed a maximum line count. Encourages gradual cleanup of legacy long methods.",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"properties": {
|
|
7
|
-
"limit": {
|
|
8
|
-
"type": "number",
|
|
9
|
-
"description": "Maximum lines allowed for modified methods",
|
|
10
|
-
"default": 80
|
|
11
|
-
},
|
|
12
|
-
"mode": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"enum": ["OFF", "NEW_METHODS", "NEW_AND_MODIFIED_METHODS", "NEW_AND_MODIFIED_FILES"],
|
|
15
|
-
"description": "OFF: skip validation. NEW_AND_MODIFIED_METHODS: new methods + methods with changes. NEW_AND_MODIFIED_FILES: all methods in modified files.",
|
|
16
|
-
"default": "NEW_AND_MODIFIED_METHODS"
|
|
17
|
-
},
|
|
18
|
-
"disableAllowed": {
|
|
19
|
-
"type": "boolean",
|
|
20
|
-
"description": "Whether disable comments work. When false, no escape hatch (like old STRICT mode).",
|
|
21
|
-
"default": true
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
"required": []
|
|
25
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { ExecutorContext } from '@nx/devkit';
|
|
2
|
-
import { ExecutorResult } from '../../executor-result';
|
|
3
|
-
import { MaxMethodLinesConfig } from "@webpieces/code-rules";
|
|
4
|
-
export default function runExecutor(options: MaxMethodLinesConfig, context: ExecutorContext): Promise<ExecutorResult>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = runExecutor;
|
|
4
|
-
const code_rules_1 = require("@webpieces/code-rules");
|
|
5
|
-
async function runExecutor(options, context) {
|
|
6
|
-
return (0, code_rules_1.runNewMethods)(options, context.root);
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=executor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../../packages/tooling/nx-webpieces-rules/src/executors/validate-new-methods/executor.ts"],"names":[],"mappings":";;AAKA,8BAKC;AARD,sDAAsD;AAGvC,KAAK,UAAU,WAAW,CACrC,OAA6B,EAC7B,OAAwB;IAExB,OAAO,IAAA,0BAAa,EAAC,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;AAChD,CAAC","sourcesContent":["import type { ExecutorContext } from '@nx/devkit';\nimport { ExecutorResult } from '../../executor-result';\nimport { runNewMethods } from '@webpieces/code-rules';\nimport { MaxMethodLinesConfig } from \"@webpieces/code-rules\";\n\nexport default async function runExecutor(\n options: MaxMethodLinesConfig,\n context: ExecutorContext,\n): Promise<ExecutorResult> {\n return runNewMethods(options, context.root);\n}\n"]}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"title": "Validate New Methods Executor",
|
|
4
|
-
"description": "Validates that newly added methods don't exceed a maximum line count. Only runs in affected mode (when NX_BASE is set).",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"properties": {
|
|
7
|
-
"limit": {
|
|
8
|
-
"type": "number",
|
|
9
|
-
"description": "Maximum lines allowed for new methods",
|
|
10
|
-
"default": 80
|
|
11
|
-
},
|
|
12
|
-
"mode": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"enum": ["OFF", "NEW_METHODS", "NEW_AND_MODIFIED_METHODS", "NEW_AND_MODIFIED_FILES"],
|
|
15
|
-
"description": "OFF: skip validation. NEW_METHODS: only new methods in diff. NEW_AND_MODIFIED_METHODS: new methods + methods with changes. NEW_AND_MODIFIED_FILES: all methods in modified files.",
|
|
16
|
-
"default": "NEW_AND_MODIFIED_METHODS"
|
|
17
|
-
},
|
|
18
|
-
"disableAllowed": {
|
|
19
|
-
"type": "boolean",
|
|
20
|
-
"description": "Whether disable comments work. When false, no escape hatch.",
|
|
21
|
-
"default": true
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
"required": []
|
|
25
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { ExecutorContext } from '@nx/devkit';
|
|
2
|
-
import { ExecutorResult } from '../../executor-result';
|
|
3
|
-
import { NoAnyUnknownConfig } from "@webpieces/code-rules";
|
|
4
|
-
export default function runExecutor(options: NoAnyUnknownConfig, context: ExecutorContext): Promise<ExecutorResult>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = runExecutor;
|
|
4
|
-
const code_rules_1 = require("@webpieces/code-rules");
|
|
5
|
-
async function runExecutor(options, context) {
|
|
6
|
-
return new code_rules_1.NoAnyUnknownValidator(options, new code_rules_1.GateScanScope()).run(context.root);
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=executor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../../packages/tooling/nx-webpieces-rules/src/executors/validate-no-any-unknown/executor.ts"],"names":[],"mappings":";;AAKA,8BAKC;AARD,sDAA6E;AAG9D,KAAK,UAAU,WAAW,CACrC,OAA2B,EAC3B,OAAwB;IAExB,OAAO,IAAI,kCAAqB,CAAC,OAAO,EAAE,IAAI,0BAAa,EAAE,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AACrF,CAAC","sourcesContent":["import type { ExecutorContext } from '@nx/devkit';\nimport { ExecutorResult } from '../../executor-result';\nimport { NoAnyUnknownValidator, GateScanScope } from '@webpieces/code-rules';\nimport { NoAnyUnknownConfig } from \"@webpieces/code-rules\";\n\nexport default async function runExecutor(\n options: NoAnyUnknownConfig,\n context: ExecutorContext,\n): Promise<ExecutorResult> {\n return new NoAnyUnknownValidator(options, new GateScanScope()).run(context.root);\n}\n"]}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"title": "Validate No Any Unknown Executor",
|
|
4
|
-
"description": "Validates that `any` and `unknown` TypeScript keywords are not used. Uses LINE-BASED detection for git diff filtering.",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"properties": {
|
|
7
|
-
"mode": {
|
|
8
|
-
"type": "string",
|
|
9
|
-
"enum": ["OFF", "NEW_AND_MODIFIED_CODE", "NEW_AND_MODIFIED_FILES"],
|
|
10
|
-
"description": "OFF: skip validation. NEW_AND_MODIFIED_CODE: only changed lines in diff. NEW_AND_MODIFIED_FILES: all in modified files. Disallows `any` and `unknown` TypeScript keywords.",
|
|
11
|
-
"default": "OFF"
|
|
12
|
-
},
|
|
13
|
-
"disableAllowed": {
|
|
14
|
-
"type": "boolean",
|
|
15
|
-
"description": "Whether disable comments work. When false, no escape hatch.",
|
|
16
|
-
"default": true
|
|
17
|
-
},
|
|
18
|
-
"turnOffRuleUntilEpoch": {
|
|
19
|
-
"type": "number",
|
|
20
|
-
"description": "Epoch seconds. Until this time, skip validation entirely. When expired, normal mode resumes. Omit when not needed."
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
"required": []
|
|
24
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { ExecutorContext } from '@nx/devkit';
|
|
2
|
-
import { ExecutorResult } from '../../executor-result';
|
|
3
|
-
import { NoDestructureConfig } from "@webpieces/code-rules";
|
|
4
|
-
export default function runExecutor(options: NoDestructureConfig, context: ExecutorContext): Promise<ExecutorResult>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = runExecutor;
|
|
4
|
-
const code_rules_1 = require("@webpieces/code-rules");
|
|
5
|
-
async function runExecutor(options, context) {
|
|
6
|
-
return new code_rules_1.NoDestructureValidator(options, new code_rules_1.GateScanScope()).run(context.root);
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=executor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../../packages/tooling/nx-webpieces-rules/src/executors/validate-no-destructure/executor.ts"],"names":[],"mappings":";;AAKA,8BAKC;AARD,sDAA8E;AAG/D,KAAK,UAAU,WAAW,CACrC,OAA4B,EAC5B,OAAwB;IAExB,OAAO,IAAI,mCAAsB,CAAC,OAAO,EAAE,IAAI,0BAAa,EAAE,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AACtF,CAAC","sourcesContent":["import type { ExecutorContext } from '@nx/devkit';\nimport { ExecutorResult } from '../../executor-result';\nimport { NoDestructureValidator, GateScanScope } from '@webpieces/code-rules';\nimport { NoDestructureConfig } from \"@webpieces/code-rules\";\n\nexport default async function runExecutor(\n options: NoDestructureConfig,\n context: ExecutorContext,\n): Promise<ExecutorResult> {\n return new NoDestructureValidator(options, new GateScanScope()).run(context.root);\n}\n"]}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"title": "Validate No Destructure Executor",
|
|
4
|
-
"description": "Validates that destructuring patterns are not used. Uses LINE-BASED detection for git diff filtering.",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"properties": {
|
|
7
|
-
"mode": {
|
|
8
|
-
"type": "string",
|
|
9
|
-
"enum": ["OFF", "NEW_AND_MODIFIED_CODE", "NEW_AND_MODIFIED_FILES"],
|
|
10
|
-
"description": "OFF: skip validation. NEW_AND_MODIFIED_CODE: only changed lines in diff. NEW_AND_MODIFIED_FILES: all in modified files. Disallows destructuring patterns.",
|
|
11
|
-
"default": "OFF"
|
|
12
|
-
},
|
|
13
|
-
"disableAllowed": {
|
|
14
|
-
"type": "boolean",
|
|
15
|
-
"description": "Whether disable comments work. When false, no escape hatch.",
|
|
16
|
-
"default": true
|
|
17
|
-
},
|
|
18
|
-
"turnOffRuleUntilEpoch": {
|
|
19
|
-
"type": "number",
|
|
20
|
-
"description": "Epoch seconds. Until this time, skip validation entirely. When expired, normal mode resumes. Omit when not needed."
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
"required": []
|
|
24
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { ExecutorContext } from '@nx/devkit';
|
|
2
|
-
import { ExecutorResult } from '../../executor-result';
|
|
3
|
-
import { AngularNoDirectApiInResolverConfig } from "@webpieces/code-rules";
|
|
4
|
-
export default function runExecutor(options: AngularNoDirectApiInResolverConfig, context: ExecutorContext): Promise<ExecutorResult>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = runExecutor;
|
|
4
|
-
const code_rules_1 = require("@webpieces/code-rules");
|
|
5
|
-
async function runExecutor(options, context) {
|
|
6
|
-
return new code_rules_1.NoDirectApiResolverValidator(options).run(context.root);
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=executor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../../packages/tooling/nx-webpieces-rules/src/executors/validate-no-direct-api-resolver/executor.ts"],"names":[],"mappings":";;AAKA,8BAKC;AARD,sDAAqE;AAGtD,KAAK,UAAU,WAAW,CACrC,OAA2C,EAC3C,OAAwB;IAExB,OAAO,IAAI,yCAA4B,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AACvE,CAAC","sourcesContent":["import type { ExecutorContext } from '@nx/devkit';\nimport { ExecutorResult } from '../../executor-result';\nimport { NoDirectApiResolverValidator } from '@webpieces/code-rules';\nimport { AngularNoDirectApiInResolverConfig } from \"@webpieces/code-rules\";\n\nexport default async function runExecutor(\n options: AngularNoDirectApiInResolverConfig,\n context: ExecutorContext,\n): Promise<ExecutorResult> {\n return new NoDirectApiResolverValidator(options).run(context.root);\n}\n"]}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"title": "Validate No Direct API in Resolver Executor",
|
|
4
|
-
"description": "Validates resolvers use services (not APIs) and components subscribe to service observables (not route.snapshot.data). Uses LINE-BASED detection for git diff filtering.",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"properties": {
|
|
7
|
-
"mode": {
|
|
8
|
-
"type": "string",
|
|
9
|
-
"enum": ["OFF", "NEW_AND_MODIFIED_CODE", "NEW_AND_MODIFIED_METHODS", "NEW_AND_MODIFIED_FILES"],
|
|
10
|
-
"description": "OFF: skip validation. NEW_AND_MODIFIED_CODE: only changed lines in diff. NEW_AND_MODIFIED_METHODS: violations in new/modified method/route scopes. NEW_AND_MODIFIED_FILES: all in modified files.",
|
|
11
|
-
"default": "OFF"
|
|
12
|
-
},
|
|
13
|
-
"disableAllowed": {
|
|
14
|
-
"type": "boolean",
|
|
15
|
-
"description": "Whether disable comments work. When false, no escape hatch.",
|
|
16
|
-
"default": true
|
|
17
|
-
},
|
|
18
|
-
"turnOffRuleUntilEpoch": {
|
|
19
|
-
"type": "number",
|
|
20
|
-
"description": "Epoch seconds. Until this time, skip validation entirely. When expired, normal mode resumes. Omit when not needed."
|
|
21
|
-
},
|
|
22
|
-
"enforcePaths": {
|
|
23
|
-
"type": "array",
|
|
24
|
-
"items": { "type": "string" },
|
|
25
|
-
"description": "Array of directory prefixes (relative to workspace root) to scope validation to. When set, only files under these paths are checked. When empty/omitted, all changed files are checked."
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
"required": []
|
|
29
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { ExecutorContext } from '@nx/devkit';
|
|
2
|
-
import { ExecutorResult } from '../../executor-result';
|
|
3
|
-
import { NoImplicitAnyConfig } from "@webpieces/code-rules";
|
|
4
|
-
export default function runExecutor(options: NoImplicitAnyConfig, context: ExecutorContext): Promise<ExecutorResult>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = runExecutor;
|
|
4
|
-
const code_rules_1 = require("@webpieces/code-rules");
|
|
5
|
-
async function runExecutor(options, context) {
|
|
6
|
-
return new code_rules_1.NoImplicitAnyValidator(options, new code_rules_1.GateScanScope()).run(context.root);
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=executor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../../packages/tooling/nx-webpieces-rules/src/executors/validate-no-implicit-any/executor.ts"],"names":[],"mappings":";;AAKA,8BAKC;AARD,sDAA8E;AAG/D,KAAK,UAAU,WAAW,CACrC,OAA4B,EAC5B,OAAwB;IAExB,OAAO,IAAI,mCAAsB,CAAC,OAAO,EAAE,IAAI,0BAAa,EAAE,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AACtF,CAAC","sourcesContent":["import type { ExecutorContext } from '@nx/devkit';\nimport { ExecutorResult } from '../../executor-result';\nimport { NoImplicitAnyValidator, GateScanScope } from '@webpieces/code-rules';\nimport { NoImplicitAnyConfig } from \"@webpieces/code-rules\";\n\nexport default async function runExecutor(\n options: NoImplicitAnyConfig,\n context: ExecutorContext,\n): Promise<ExecutorResult> {\n return new NoImplicitAnyValidator(options, new GateScanScope()).run(context.root);\n}\n"]}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"title": "Validate No Implicit Any Executor",
|
|
4
|
-
"description": "Validates that no function parameter, variable, or property has an implicit `any` type. Uses the TypeScript compiler (with noImplicitAny override) to detect TS7006/7005/7018/etc violations on changed lines only.",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"properties": {
|
|
7
|
-
"mode": {
|
|
8
|
-
"type": "string",
|
|
9
|
-
"enum": ["OFF", "NEW_AND_MODIFIED_CODE", "NEW_AND_MODIFIED_FILES"],
|
|
10
|
-
"description": "OFF: skip validation. NEW_AND_MODIFIED_CODE: only implicit-any on changed lines in diff. NEW_AND_MODIFIED_FILES: all implicit-any in modified files.",
|
|
11
|
-
"default": "OFF"
|
|
12
|
-
},
|
|
13
|
-
"disableAllowed": {
|
|
14
|
-
"type": "boolean",
|
|
15
|
-
"description": "Whether // webpieces-disable no-implicit-any comments work. When false, no escape hatch.",
|
|
16
|
-
"default": true
|
|
17
|
-
},
|
|
18
|
-
"turnOffRuleUntilEpoch": {
|
|
19
|
-
"type": "number",
|
|
20
|
-
"description": "Epoch seconds. Until this time, skip validation entirely. When expired, normal mode resumes. Omit when not needed."
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
"required": []
|
|
24
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { ExecutorContext } from '@nx/devkit';
|
|
2
|
-
import { ExecutorResult } from '../../executor-result';
|
|
3
|
-
import { NoInlineTypeLiteralsConfig } from "@webpieces/code-rules";
|
|
4
|
-
export default function runExecutor(options: NoInlineTypeLiteralsConfig, context: ExecutorContext): Promise<ExecutorResult>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = runExecutor;
|
|
4
|
-
const code_rules_1 = require("@webpieces/code-rules");
|
|
5
|
-
async function runExecutor(options, context) {
|
|
6
|
-
return new code_rules_1.NoInlineTypeLiteralsValidator(options).run(context.root);
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=executor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../../packages/tooling/nx-webpieces-rules/src/executors/validate-no-inline-types/executor.ts"],"names":[],"mappings":";;AAKA,8BAKC;AARD,sDAAsE;AAGvD,KAAK,UAAU,WAAW,CACrC,OAAmC,EACnC,OAAwB;IAExB,OAAO,IAAI,0CAA6B,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AACxE,CAAC","sourcesContent":["import type { ExecutorContext } from '@nx/devkit';\nimport { ExecutorResult } from '../../executor-result';\nimport { NoInlineTypeLiteralsValidator } from '@webpieces/code-rules';\nimport { NoInlineTypeLiteralsConfig } from \"@webpieces/code-rules\";\n\nexport default async function runExecutor(\n options: NoInlineTypeLiteralsConfig,\n context: ExecutorContext,\n): Promise<ExecutorResult> {\n return new NoInlineTypeLiteralsValidator(options).run(context.root);\n}\n"]}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"title": "Validate No Inline Types Executor",
|
|
4
|
-
"description": "Validates that inline type literals are not used - prefer named types/interfaces/classes.",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"properties": {
|
|
7
|
-
"mode": {
|
|
8
|
-
"type": "string",
|
|
9
|
-
"enum": ["OFF", "NEW_METHODS", "NEW_AND_MODIFIED_METHODS", "NEW_AND_MODIFIED_FILES"],
|
|
10
|
-
"description": "OFF: skip validation. NEW_METHODS: only new methods in diff. NEW_AND_MODIFIED_METHODS: new methods + methods with changes. NEW_AND_MODIFIED_FILES: all inline types in modified files.",
|
|
11
|
-
"default": "OFF"
|
|
12
|
-
},
|
|
13
|
-
"disableAllowed": {
|
|
14
|
-
"type": "boolean",
|
|
15
|
-
"description": "Whether disable comments work. When false, no escape hatch.",
|
|
16
|
-
"default": true
|
|
17
|
-
},
|
|
18
|
-
"turnOffRuleUntilEpoch": {
|
|
19
|
-
"type": "number",
|
|
20
|
-
"description": "Epoch seconds. Until this time, skip validation entirely. When expired, normal mode resumes. Omit when not needed."
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
"required": []
|
|
24
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { ExecutorContext } from '@nx/devkit';
|
|
2
|
-
import { ExecutorResult } from '../../executor-result';
|
|
3
|
-
import { NoUnmanagedExceptionsConfig } from "@webpieces/code-rules";
|
|
4
|
-
export default function runExecutor(options: NoUnmanagedExceptionsConfig, context: ExecutorContext): Promise<ExecutorResult>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = runExecutor;
|
|
4
|
-
const code_rules_1 = require("@webpieces/code-rules");
|
|
5
|
-
async function runExecutor(options, context) {
|
|
6
|
-
return new code_rules_1.NoUnmanagedExceptionsValidator(options, new code_rules_1.GateScanScope()).run(context.root);
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=executor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../../packages/tooling/nx-webpieces-rules/src/executors/validate-no-unmanaged-exceptions/executor.ts"],"names":[],"mappings":";;AAKA,8BAKC;AARD,sDAAsF;AAGvE,KAAK,UAAU,WAAW,CACrC,OAAoC,EACpC,OAAwB;IAExB,OAAO,IAAI,2CAA8B,CAAC,OAAO,EAAE,IAAI,0BAAa,EAAE,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AAC9F,CAAC","sourcesContent":["import type { ExecutorContext } from '@nx/devkit';\nimport { ExecutorResult } from '../../executor-result';\nimport { NoUnmanagedExceptionsValidator, GateScanScope } from '@webpieces/code-rules';\nimport { NoUnmanagedExceptionsConfig } from \"@webpieces/code-rules\";\n\nexport default async function runExecutor(\n options: NoUnmanagedExceptionsConfig,\n context: ExecutorContext,\n): Promise<ExecutorResult> {\n return new NoUnmanagedExceptionsValidator(options, new GateScanScope()).run(context.root);\n}\n"]}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"title": "Validate No Unmanaged Exceptions Executor",
|
|
4
|
-
"description": "Validates that try/catch blocks are not used outside chokepoints. Uses LINE-BASED detection for git diff filtering.",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"properties": {
|
|
7
|
-
"mode": {
|
|
8
|
-
"type": "string",
|
|
9
|
-
"enum": ["OFF", "NEW_AND_MODIFIED_CODE", "NEW_AND_MODIFIED_FILES"],
|
|
10
|
-
"description": "OFF: skip validation. NEW_AND_MODIFIED_CODE: only changed lines in diff. NEW_AND_MODIFIED_FILES: all in modified files. Disallows try/catch blocks.",
|
|
11
|
-
"default": "OFF"
|
|
12
|
-
},
|
|
13
|
-
"disableAllowed": {
|
|
14
|
-
"type": "boolean",
|
|
15
|
-
"description": "Whether disable comments work. When false, no escape hatch.",
|
|
16
|
-
"default": true
|
|
17
|
-
},
|
|
18
|
-
"turnOffRuleUntilEpoch": {
|
|
19
|
-
"type": "number",
|
|
20
|
-
"description": "Epoch seconds. Until this time, skip validation entirely. When expired, normal mode resumes. Omit when not needed."
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
"required": []
|
|
24
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { ExecutorContext } from '@nx/devkit';
|
|
2
|
-
import { ExecutorResult } from '../../executor-result';
|
|
3
|
-
import { PrismaConverterConfig } from "@webpieces/code-rules";
|
|
4
|
-
export default function runExecutor(options: PrismaConverterConfig, context: ExecutorContext): Promise<ExecutorResult>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = runExecutor;
|
|
4
|
-
const code_rules_1 = require("@webpieces/code-rules");
|
|
5
|
-
async function runExecutor(options, context) {
|
|
6
|
-
return new code_rules_1.PrismaConverterValidator(options).run(context.root);
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=executor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../../packages/tooling/nx-webpieces-rules/src/executors/validate-prisma-converters/executor.ts"],"names":[],"mappings":";;AAKA,8BAKC;AARD,sDAAiE;AAGlD,KAAK,UAAU,WAAW,CACrC,OAA8B,EAC9B,OAAwB;IAExB,OAAO,IAAI,qCAAwB,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AACnE,CAAC","sourcesContent":["import type { ExecutorContext } from '@nx/devkit';\nimport { ExecutorResult } from '../../executor-result';\nimport { PrismaConverterValidator } from '@webpieces/code-rules';\nimport { PrismaConverterConfig } from \"@webpieces/code-rules\";\n\nexport default async function runExecutor(\n options: PrismaConverterConfig,\n context: ExecutorContext,\n): Promise<ExecutorResult> {\n return new PrismaConverterValidator(options).run(context.root);\n}\n"]}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"title": "Validate Prisma Converters Executor",
|
|
4
|
-
"description": "Validates that Prisma converter methods follow scalable patterns: correct Dbo parameter, no async, no standalone functions, and Dto creation only in converter directories.",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"properties": {
|
|
7
|
-
"mode": {
|
|
8
|
-
"type": "string",
|
|
9
|
-
"enum": ["OFF", "NEW_AND_MODIFIED_METHODS", "NEW_AND_MODIFIED_FILES"],
|
|
10
|
-
"description": "OFF: skip validation. NEW_AND_MODIFIED_METHODS: validate methods that are new or have changed lines. NEW_AND_MODIFIED_FILES: validate all methods in modified files.",
|
|
11
|
-
"default": "OFF"
|
|
12
|
-
},
|
|
13
|
-
"schemaPath": {
|
|
14
|
-
"type": "string",
|
|
15
|
-
"description": "Relative path from workspace root to schema.prisma"
|
|
16
|
-
},
|
|
17
|
-
"convertersPaths": {
|
|
18
|
-
"type": "array",
|
|
19
|
-
"items": { "type": "string" },
|
|
20
|
-
"description": "Array of directories (relative to workspace root) containing converter files"
|
|
21
|
-
},
|
|
22
|
-
"enforcePaths": {
|
|
23
|
-
"type": "array",
|
|
24
|
-
"items": { "type": "string" },
|
|
25
|
-
"description": "Array of directory prefixes (relative to workspace root) to scope validation to. When set, only files under these paths are checked. When empty/omitted, all changed files are checked."
|
|
26
|
-
},
|
|
27
|
-
"disableAllowed": {
|
|
28
|
-
"type": "boolean",
|
|
29
|
-
"description": "Whether disable comments work. When false, no escape hatch.",
|
|
30
|
-
"default": true
|
|
31
|
-
},
|
|
32
|
-
"turnOffRuleUntilEpoch": {
|
|
33
|
-
"type": "number",
|
|
34
|
-
"description": "Epoch seconds. Until this time, skip prisma-converter validation entirely. When expired, normal mode resumes. Omit when not needed."
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
"required": []
|
|
38
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { ExecutorContext } from '@nx/devkit';
|
|
2
|
-
import { ExecutorResult } from '../../executor-result';
|
|
3
|
-
import { RequireReturnTypeConfig } from "@webpieces/code-rules";
|
|
4
|
-
export default function runExecutor(options: RequireReturnTypeConfig, context: ExecutorContext): Promise<ExecutorResult>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = runExecutor;
|
|
4
|
-
const code_rules_1 = require("@webpieces/code-rules");
|
|
5
|
-
async function runExecutor(options, context) {
|
|
6
|
-
return new code_rules_1.RequireReturnTypeValidator(options).run(context.root);
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=executor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../../packages/tooling/nx-webpieces-rules/src/executors/validate-return-types/executor.ts"],"names":[],"mappings":";;AAKA,8BAKC;AARD,sDAAmE;AAGpD,KAAK,UAAU,WAAW,CACrC,OAAgC,EAChC,OAAwB;IAExB,OAAO,IAAI,uCAA0B,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AACrE,CAAC","sourcesContent":["import type { ExecutorContext } from '@nx/devkit';\nimport { ExecutorResult } from '../../executor-result';\nimport { RequireReturnTypeValidator } from '@webpieces/code-rules';\nimport { RequireReturnTypeConfig } from \"@webpieces/code-rules\";\n\nexport default async function runExecutor(\n options: RequireReturnTypeConfig,\n context: ExecutorContext,\n): Promise<ExecutorResult> {\n return new RequireReturnTypeValidator(options).run(context.root);\n}\n"]}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"title": "Validate Return Types Executor",
|
|
4
|
-
"description": "Validates that methods have explicit return type annotations for better code readability.",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"properties": {
|
|
7
|
-
"mode": {
|
|
8
|
-
"type": "string",
|
|
9
|
-
"enum": ["OFF", "NEW_METHODS", "NEW_AND_MODIFIED_METHODS", "NEW_AND_MODIFIED_FILES"],
|
|
10
|
-
"description": "OFF: skip validation. NEW_METHODS: only new methods in diff. NEW_AND_MODIFIED_METHODS: new methods + methods with changes. NEW_AND_MODIFIED_FILES: all methods in modified files.",
|
|
11
|
-
"default": "NEW_METHODS"
|
|
12
|
-
},
|
|
13
|
-
"disableAllowed": {
|
|
14
|
-
"type": "boolean",
|
|
15
|
-
"description": "Whether disable comments work. When false, no escape hatch.",
|
|
16
|
-
"default": true
|
|
17
|
-
},
|
|
18
|
-
"turnOffRuleUntilEpoch": {
|
|
19
|
-
"type": "number",
|
|
20
|
-
"description": "Epoch seconds. Until this time, skip validation entirely. When expired, normal mode resumes. Omit when not needed."
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
"required": []
|
|
24
|
-
}
|