@codacy/tools-opengrep-1 0.2.2 → 0.4.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.
Files changed (2) hide show
  1. package/dist/index.js +4 -8
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -20469,14 +20469,10 @@ var adapter = {
20469
20469
  if (enabledPatterns.size > 0) {
20470
20470
  configFile = await materializeConfig(ctx, enabledPatterns);
20471
20471
  } else {
20472
- try {
20473
- await import_promises.default.access(RULES_PATH);
20474
- configFile = RULES_PATH;
20475
- } catch {
20476
- ctx.logger.warn(
20477
- `Bundled rules.yaml not found at ${RULES_PATH}. Cannot run opengrep without rules. Run the fetch-rules script to generate it.`
20478
- );
20479
- }
20472
+ ctx.logger.info("Skipping analysis: no local config and no patterns enabled", {
20473
+ toolId: TOOL_ID
20474
+ });
20475
+ return buildResult(startedAt, /* @__PURE__ */ new Date(), issues, errors, ctx.targetFiles.length);
20480
20476
  }
20481
20477
  }
20482
20478
  if (!configFile) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codacy/tools-opengrep-1",
3
- "version": "0.2.2",
3
+ "version": "0.4.0",
4
4
  "description": "Opengrep adapter — CLI-mode multi-language SAST scanner",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -9,7 +9,7 @@
9
9
  ],
10
10
  "dependencies": {
11
11
  "yaml": "^2.6.0",
12
- "@codacy/tooling": "0.2.2"
12
+ "@codacy/tooling": "0.4.0"
13
13
  },
14
14
  "license": "MIT",
15
15
  "author": "Codacy <support@codacy.com> (https://www.codacy.com)",