Skip to content

Commit 62bc709

Browse files
committed
fix: Revert PR #1664
This reverts commit 3262519, reversing changes made to e1f00ca.
1 parent 5c90c79 commit 62bc709

26 files changed

Lines changed: 3 additions & 6515 deletions

.github/CODEOWNERS

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ help/ @snyk/hammer
66
src/cli/commands/test/iac-output.ts @snyk/cloudconfig
77
src/cli/commands/test/iac-local-execution/ @snyk/cloudconfig
88
src/lib/cloud-config-projects.ts @snyk/cloudconfig
9-
src/lib/plugins/sast/ @snyk/sast-team
109
src/lib/iac/ @snyk/cloudconfig
1110
src/lib/snyk-test/iac-test-result.ts @snyk/cloudconfig
1211
src/lib/snyk-test/payload-schema.ts @snyk/cloudconfig
@@ -15,8 +14,6 @@ test/acceptance/cli-test/iac/ @snyk/cloudconfig
1514
test/fixtures/iac/ @snyk/cloudconfig
1615
test/smoke/spec/iac/ @snyk/cloudconfig
1716
test/smoke/.iac-data/ @snyk/cloudconfig
18-
test/fixtures/sast/ @snyk/sast-team
19-
test/snyk-code-test.spec.ts @snyk/sast-team
2017
src/lib/errors/invalid-iac-file.ts @snyk/cloudconfig
2118
src/lib/errors/unsupported-options-iac-error.ts @snyk/cloudconfig
2219
help/commands-docs/iac-examples.md @snyk/cloudconfig

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
3030
test/acceptance/workspaces/**/.gradle
3131
test/**/.gradle
3232
.iac-data
33-
.dccache
3433
!test/smoke/.iac-data
3534
# Jest
3635
coverage

config.default.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22
"API": "https://snyk.io/api/v1",
33
"devDeps": false,
44
"PRUNE_DEPS_THRESHOLD": 40000,
5-
"MAX_PATH_COUNT": 1500000,
6-
"CODE_CLIENT_PROXY_URL": "http://deeproxy.snyk.io"
5+
"MAX_PATH_COUNT": 1500000
76
}

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@
6767
"dependencies": {
6868
"@open-policy-agent/opa-wasm": "^1.2.0",
6969
"@snyk/cli-interface": "2.11.0",
70-
"@snyk/code-client": "3.1.1",
7170
"@snyk/dep-graph": "1.23.1",
7271
"@snyk/gemfile": "1.2.0",
7372
"@snyk/graphlib": "^2.1.9-patch.3",

src/cli/commands/test/index.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,7 @@ async function test(...args: MethodArgs): Promise<TestCommandResult> {
120120
);
121121
return commandResult;
122122
} catch (error) {
123-
if (error instanceof Error) {
124-
throw error;
125-
} else {
126-
throw new Error(error);
127-
}
123+
throw new Error(error);
128124
}
129125
}
130126

src/cli/modes.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,6 @@ const modes: Record<string, ModeData> = {
2828
config: (args): [] => {
2929
args['iac'] = true;
3030

31-
return args;
32-
},
33-
},
34-
code: {
35-
allowedCommands: ['test'],
36-
config: (args): [] => {
37-
args['code'] = true;
38-
3931
return args;
4032
},
4133
},

src/lib/config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ interface Config {
1515
timeout: number;
1616
PROJECT_NAME: string;
1717
TOKEN: string;
18-
CODE_CLIENT_PROXY_URL: string;
1918
}
2019

2120
// TODO: fix the types!

src/lib/ecosystems/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ export function getEcosystemForTest(options: Options): Ecosystem | null {
1717
if (options.source) {
1818
return 'cpp';
1919
}
20-
if (options.code) {
21-
return 'code';
22-
}
2320
return null;
2421
}
2522

src/lib/ecosystems/plugins.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import * as cppPlugin from 'snyk-cpp-plugin';
22
import * as dockerPlugin from 'snyk-docker-plugin';
3-
import { codePlugin } from '../plugins/sast';
43
import { Ecosystem, EcosystemPlugin } from './types';
54

65
const EcosystemPlugins: {
@@ -9,7 +8,6 @@ const EcosystemPlugins: {
98
cpp: cppPlugin as EcosystemPlugin,
109
// TODO: not any
1110
docker: dockerPlugin as any,
12-
code: codePlugin,
1311
};
1412

1513
export function getPlugin(ecosystem: Ecosystem): EcosystemPlugin {

src/lib/ecosystems/test.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@ export async function testEcosystem(
1616
options: Options,
1717
): Promise<TestCommandResult> {
1818
const plugin = getPlugin(ecosystem);
19-
// TODO: this is an intermediate step before consolidating ecosystem plugins
20-
// to accept flows that act differently in the testDependencies step
21-
if (plugin.test) {
22-
const { readableResult: res } = await plugin.test(paths, options);
23-
return TestCommandResult.createHumanReadableTestCommandResult(res, '');
24-
}
2519
const scanResultsByPath: { [dir: string]: ScanResult[] } = {};
2620
for (const path of paths) {
2721
await spinner(`Scanning dependencies in ${path}`);

0 commit comments

Comments
 (0)