fix(sandbox): mark the pwsh-sandbox executor's deliberate twin mirror for the clone gate
The duplication gate flags the call-for-call mirror of bash-sandbox's executor (the pwsh-tool-and-executor decision): wrap the class body in jscpd ignore markers, the same convention the invariant companions use.
This commit is contained in:
@@ -45,6 +45,7 @@ export type Config = LocalConfig
|
|||||||
* calls fall back to deployment policy. `result.sandbox` reports the mode and
|
* calls fall back to deployment policy. `result.sandbox` reports the mode and
|
||||||
* enforcement actually used.
|
* enforcement actually used.
|
||||||
*/
|
*/
|
||||||
|
/* jscpd:ignore-start -- deliberate call-for-call mirror of bash-sandbox's executor (pwsh-tool-and-executor Agent Note) */
|
||||||
export class SandboxPwshExecutor extends PwshLocalExecutor {
|
export class SandboxPwshExecutor extends PwshLocalExecutor {
|
||||||
static override inject = ['subprocess', 'sandbox', 'sandboxPolicy']
|
static override inject = ['subprocess', 'sandbox', 'sandboxPolicy']
|
||||||
|
|
||||||
@@ -180,5 +181,6 @@ export class SandboxPwshExecutor extends PwshLocalExecutor {
|
|||||||
return this.ctx.sandbox.confine(this.argv(spec), policy)
|
return this.ctx.sandbox.confine(this.argv(spec), policy)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/* jscpd:ignore-end */
|
||||||
|
|
||||||
export default SandboxPwshExecutor
|
export default SandboxPwshExecutor
|
||||||
|
|||||||
Reference in New Issue
Block a user