From 2f585d4a167589005de71f17db2f6afd2c9f9b21 Mon Sep 17 00:00:00 2001 From: shivasurya Date: Fri, 28 Nov 2025 20:05:34 -0500 Subject: [PATCH 1/2] refactor: Rename sourcecode-parser to sast-engine (v1.1.0) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Major refactoring to rename the core directory for better clarity: - Rename sourcecode-parser → sast-engine - Update Go module path in all 174+ files - Update GitHub Actions workflows (4 files) - Update Docker configurations (2 files) - Update build.gradle, codecov.yml - Update documentation (CLAUDE.md, CONTRIBUTING.md, perf_tools/README.md) - Update playground module dependencies - Bump version to 1.1.0 Breaking change: Go module import path changed from github.com/shivasurya/code-pathfinder/sourcecode-parser to github.com/shivasurya/code-pathfinder/sast-engine No external impact (no external Go module consumers). Testing: - ✅ gradle buildGo - Binary works, version 1.1.0 - ✅ gradle testGo - All 19 packages pass - ✅ gradle lintGo - 0 issues - ✅ Docker build - Image builds and runs 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .github/workflows/build.yml | 10 +-- .github/workflows/docker-publish.yml | 6 +- .github/workflows/release.yml | 60 +++++++++--------- .github/workflows/stdlib-r2-upload.yml | 2 +- CLAUDE.md | 14 ++-- CONTRIBUTING.md | 2 +- Dockerfile | 4 +- codecov.yml | 2 +- package.json | 2 +- perf_tools/README.md | 12 ++-- playground-Dockerfile | 4 +- playground/go.mod | 4 +- playground/pkg/handlers/analyze.go | 4 +- {sourcecode-parser => sast-engine}/.gitignore | 0 .../.golangci.yml | 0 sast-engine/VERSION | 1 + .../analytics/usage.go | 0 .../analytics/usage_test.go | 0 .../build.gradle | 2 +- {sourcecode-parser => sast-engine}/cli.md | 0 {sourcecode-parser => sast-engine}/cmd/ci.go | 12 ++-- .../cmd/ci_test.go | 0 .../cmd/diagnose.go | 2 +- .../cmd/exit_code_integration_test.go | 0 .../cmd/resolution_report.go | 8 +-- .../cmd/resolution_report_test.go | 2 +- .../cmd/root.go | 4 +- .../cmd/root_test.go | 0 .../cmd/scan.go | 12 ++-- .../cmd/scan_test.go | 4 +- .../cmd/version.go | 2 +- .../cmd/version_test.go | 0 .../diagnostic/analyzer.go | 6 +- .../diagnostic/analyzer_test.go | 2 +- .../diagnostic/comparator.go | 0 .../diagnostic/comparator_test.go | 0 .../diagnostic/extractor.go | 0 .../diagnostic/extractor_test.go | 0 .../diagnostic/llm.go | 0 .../diagnostic/llm_test.go | 0 .../diagnostic/metrics.go | 0 .../diagnostic/metrics_test.go | 0 .../diagnostic/normalizer.go | 0 .../diagnostic/normalizer_test.go | 0 .../diagnostic/prompt.go | 0 .../diagnostic/prompt_test.go | 0 .../diagnostic/reporter.go | 0 .../diagnostic/reporter_test.go | 0 .../diagnostic/types.go | 0 .../dsl/call_matcher.go | 2 +- .../dsl/call_matcher_test.go | 2 +- .../dsl/dataflow_executor.go | 2 +- .../dsl/dataflow_executor_test.go | 2 +- .../dsl/enriched_detection.go | 0 .../dsl/enriched_detection_test.go | 0 .../dsl/ir_types.go | 0 .../dsl/ir_types_test.go | 0 .../dsl/loader.go | 2 +- .../dsl/loader_test.go | 2 +- .../dsl/variable_matcher.go | 2 +- .../dsl/variable_matcher_test.go | 2 +- {sourcecode-parser => sast-engine}/go.mod | 2 +- {sourcecode-parser => sast-engine}/go.sum | 0 {sourcecode-parser => sast-engine}/go.work | 0 .../go.work.sum | 0 .../gradle.properties | 0 .../callgraph/analysis/taint/analyzer.go | 2 +- .../callgraph/analysis/taint/analyzer_test.go | 2 +- .../graph/callgraph/analysis/taint/doc.go | 0 .../graph/callgraph/benchmark_test.go | 10 +-- .../graph/callgraph/builder/builder.go | 12 ++-- .../graph/callgraph/builder/builder_test.go | 8 +-- .../graph/callgraph/builder/cache.go | 4 +- .../graph/callgraph/builder/cache_test.go | 2 +- .../graph/callgraph/builder/doc.go | 0 .../graph/callgraph/builder/helpers.go | 0 .../graph/callgraph/builder/helpers_test.go | 2 +- .../graph/callgraph/builder/integration.go | 8 +-- .../callgraph/builder/integration_test.go | 4 +- .../graph/callgraph/builder/taint.go | 8 +-- .../graph/callgraph/builder/taint_test.go | 8 +-- .../graph/callgraph/builder_framework_test.go | 8 +-- .../callgraph/builder_integration_test.go | 8 +-- .../graph/callgraph/cfg/cfg.go | 2 +- .../graph/callgraph/cfg/cfg_test.go | 2 +- .../graph/callgraph/cfg/doc.go | 0 .../graph/callgraph/core/attribute_types.go | 2 +- .../graph/callgraph/core/doc.go | 2 +- .../graph/callgraph/core/frameworks.go | 0 .../graph/callgraph/core/frameworks_test.go | 0 .../graph/callgraph/core/statement.go | 0 .../graph/callgraph/core/statement_test.go | 0 .../graph/callgraph/core/stdlib_types.go | 0 .../graph/callgraph/core/stdlib_types_test.go | 0 .../graph/callgraph/core/taint_summary.go | 0 .../callgraph/core/taint_summary_test.go | 0 .../graph/callgraph/core/types.go | 2 +- .../graph/callgraph/core/types_test.go | 2 +- .../graph/callgraph/doc.go | 20 +++--- .../graph/callgraph/extraction/attributes.go | 8 +-- .../extraction/attributes_coverage_test.go | 8 +-- .../extraction/attributes_simple_test.go | 0 .../graph/callgraph/extraction/doc.go | 0 .../graph/callgraph/extraction/statements.go | 2 +- .../callgraph/extraction/statements_test.go | 2 +- .../graph/callgraph/extraction/variables.go | 6 +- .../callgraph/extraction/variables_test.go | 4 +- .../graph/callgraph/integration.go | 12 ++-- .../graph/callgraph/integration_test.go | 4 +- .../graph/callgraph/patterns/detector.go | 6 +- .../graph/callgraph/patterns/detector_test.go | 4 +- .../graph/callgraph/patterns/doc.go | 0 .../graph/callgraph/patterns/frameworks.go | 2 +- .../callgraph/patterns/frameworks_test.go | 2 +- .../graph/callgraph/patterns/helpers.go | 0 .../graph/callgraph/patterns/helpers_test.go | 2 +- .../graph/callgraph/registry/attribute.go | 2 +- .../callgraph/registry/attribute_test.go | 4 +- .../graph/callgraph/registry/builtin.go | 2 +- .../graph/callgraph/registry/builtin_test.go | 0 .../graph/callgraph/registry/doc.go | 0 .../graph/callgraph/registry/module.go | 2 +- .../graph/callgraph/registry/module_test.go | 0 .../graph/callgraph/registry/stdlib_loader.go | 2 +- .../callgraph/registry/stdlib_loader_test.go | 2 +- .../graph/callgraph/registry/stdlib_remote.go | 4 +- .../callgraph/registry/stdlib_remote_test.go | 4 +- .../graph/callgraph/resolution/attribute.go | 6 +- .../callgraph/resolution/attribute_test.go | 6 +- .../graph/callgraph/resolution/callsites.go | 2 +- .../callgraph/resolution/callsites_test.go | 2 +- .../graph/callgraph/resolution/chaining.go | 6 +- .../callgraph/resolution/chaining_test.go | 6 +- .../graph/callgraph/resolution/doc.go | 0 .../graph/callgraph/resolution/imports.go | 2 +- .../resolution/imports_relative_test.go | 4 +- .../callgraph/resolution/imports_test.go | 2 +- .../graph/callgraph/resolution/inference.go | 4 +- .../callgraph/resolution/inference_test.go | 4 +- .../graph/callgraph/resolution/orm.go | 4 +- .../graph/callgraph/resolution/orm_test.go | 4 +- .../graph/callgraph/resolution/return_type.go | 4 +- .../resolution/return_type_class_test.go | 4 +- .../callgraph/resolution/return_type_test.go | 4 +- .../graph/callgraph/resolution/types.go | 2 +- .../graph/callgraph/resolution/types_test.go | 2 +- .../stdlib_registry_regression_test.go | 6 +- .../graph/graph.go | 0 .../graph/graph_test.go | 2 +- .../graph/initialize.go | 0 .../graph/initialize_test.go | 0 .../graph/java/parse_statement.go | 2 +- .../graph/java/parse_statement_test.go | 2 +- .../graph/parser.go | 0 .../graph/parser_java.go | 2 +- .../graph/parser_python.go | 2 +- .../graph/parser_python_test.go | 0 .../graph/parser_statements.go | 4 +- .../graph/python/parse_statement.go | 2 +- .../graph/python/parse_statement_test.go | 0 .../graph/types.go | 2 +- .../graph/types_test.go | 2 +- .../graph/utils.go | 2 +- .../graph/utils_test.go | 0 {sourcecode-parser => sast-engine}/main.go | 2 +- .../main_test.go | 0 .../model/container.go | 0 .../model/container_test.go | 0 .../model/expr.go | 0 .../model/expr_test.go | 0 .../model/javadoc.go | 0 .../model/javadoc_test.go | 0 .../model/location.go | 0 .../model/location_test.go | 0 .../model/member.go | 0 .../model/member_test.go | 0 .../model/module.go | 0 .../model/module_test.go | 0 .../model/stmt.go | 0 .../model/stmt_test.go | 0 .../model/top.go | 0 .../model/top_test.go | 0 .../output/csv_formatter.go | 2 +- .../output/csv_formatter_test.go | 2 +- .../output/enricher.go | 4 +- .../output/enricher_test.go | 6 +- .../output/exit_code.go | 2 +- .../output/exit_code_test.go | 2 +- .../output/json_formatter.go | 2 +- .../output/json_formatter_test.go | 2 +- .../output/logger.go | 0 .../output/logger_test.go | 0 .../output/options.go | 0 .../output/sarif_formatter.go | 2 +- .../output/sarif_formatter_test.go | 2 +- .../output/text_formatter.go | 2 +- .../output/text_formatter_test.go | 2 +- .../settings.gradle | 0 .../python/callsites_test/simple_calls.py | 0 .../python/imports_test/aliased_imports.py | 0 .../python/imports_test/from_imports.py | 0 .../python/imports_test/mixed_imports.py | 0 .../python/imports_test/simple_imports.py | 0 .../relative_imports_test/myapp/__init__.py | 0 .../myapp/config/__init__.py | 0 .../myapp/config/settings.py | 0 .../myapp/submodule/__init__.py | 0 .../myapp/submodule/handler.py | 0 .../myapp/submodule/utils.py | 0 .../myapp/utils/__init__.py | 0 .../myapp/utils/helper.py | 0 .../test-fixtures/python/sample.py | 0 .../python/simple_project/main.py | 0 .../simple_project/submodule/__init__.py | 0 .../simple_project/submodule/helpers.py | 0 .../python/simple_project/utils.py | 0 .../generate_stdlib_registry.cpython-314.pyc | Bin .../tools/generate_stdlib_registry.py | 0 .../tools/test_generation_local.sh | 0 .../tools/test_generator.py | 0 .../tools/upload_to_r2.sh | 0 sourcecode-parser/VERSION | 1 - 222 files changed, 266 insertions(+), 266 deletions(-) rename {sourcecode-parser => sast-engine}/.gitignore (100%) rename {sourcecode-parser => sast-engine}/.golangci.yml (100%) create mode 100644 sast-engine/VERSION rename {sourcecode-parser => sast-engine}/analytics/usage.go (100%) rename {sourcecode-parser => sast-engine}/analytics/usage_test.go (100%) rename {sourcecode-parser => sast-engine}/build.gradle (92%) rename {sourcecode-parser => sast-engine}/cli.md (100%) rename {sourcecode-parser => sast-engine}/cmd/ci.go (93%) rename {sourcecode-parser => sast-engine}/cmd/ci_test.go (100%) rename {sourcecode-parser => sast-engine}/cmd/diagnose.go (99%) rename {sourcecode-parser => sast-engine}/cmd/exit_code_integration_test.go (100%) rename {sourcecode-parser => sast-engine}/cmd/resolution_report.go (98%) rename {sourcecode-parser => sast-engine}/cmd/resolution_report_test.go (98%) rename {sourcecode-parser => sast-engine}/cmd/root.go (86%) rename {sourcecode-parser => sast-engine}/cmd/root_test.go (100%) rename {sourcecode-parser => sast-engine}/cmd/scan.go (93%) rename {sourcecode-parser => sast-engine}/cmd/scan_test.go (96%) rename {sourcecode-parser => sast-engine}/cmd/version.go (86%) rename {sourcecode-parser => sast-engine}/cmd/version_test.go (100%) rename {sourcecode-parser => sast-engine}/diagnostic/analyzer.go (96%) rename {sourcecode-parser => sast-engine}/diagnostic/analyzer_test.go (97%) rename {sourcecode-parser => sast-engine}/diagnostic/comparator.go (100%) rename {sourcecode-parser => sast-engine}/diagnostic/comparator_test.go (100%) rename {sourcecode-parser => sast-engine}/diagnostic/extractor.go (100%) rename {sourcecode-parser => sast-engine}/diagnostic/extractor_test.go (100%) rename {sourcecode-parser => sast-engine}/diagnostic/llm.go (100%) rename {sourcecode-parser => sast-engine}/diagnostic/llm_test.go (100%) rename {sourcecode-parser => sast-engine}/diagnostic/metrics.go (100%) rename {sourcecode-parser => sast-engine}/diagnostic/metrics_test.go (100%) rename {sourcecode-parser => sast-engine}/diagnostic/normalizer.go (100%) rename {sourcecode-parser => sast-engine}/diagnostic/normalizer_test.go (100%) rename {sourcecode-parser => sast-engine}/diagnostic/prompt.go (100%) rename {sourcecode-parser => sast-engine}/diagnostic/prompt_test.go (100%) rename {sourcecode-parser => sast-engine}/diagnostic/reporter.go (100%) rename {sourcecode-parser => sast-engine}/diagnostic/reporter_test.go (100%) rename {sourcecode-parser => sast-engine}/diagnostic/types.go (100%) rename {sourcecode-parser => sast-engine}/dsl/call_matcher.go (99%) rename {sourcecode-parser => sast-engine}/dsl/call_matcher_test.go (99%) rename {sourcecode-parser => sast-engine}/dsl/dataflow_executor.go (98%) rename {sourcecode-parser => sast-engine}/dsl/dataflow_executor_test.go (99%) rename {sourcecode-parser => sast-engine}/dsl/enriched_detection.go (100%) rename {sourcecode-parser => sast-engine}/dsl/enriched_detection_test.go (100%) rename {sourcecode-parser => sast-engine}/dsl/ir_types.go (100%) rename {sourcecode-parser => sast-engine}/dsl/ir_types_test.go (100%) rename {sourcecode-parser => sast-engine}/dsl/loader.go (99%) rename {sourcecode-parser => sast-engine}/dsl/loader_test.go (98%) rename {sourcecode-parser => sast-engine}/dsl/variable_matcher.go (96%) rename {sourcecode-parser => sast-engine}/dsl/variable_matcher_test.go (96%) rename {sourcecode-parser => sast-engine}/go.mod (90%) rename {sourcecode-parser => sast-engine}/go.sum (100%) rename {sourcecode-parser => sast-engine}/go.work (100%) rename {sourcecode-parser => sast-engine}/go.work.sum (100%) rename {sourcecode-parser => sast-engine}/gradle.properties (100%) rename {sourcecode-parser => sast-engine}/graph/callgraph/analysis/taint/analyzer.go (99%) rename {sourcecode-parser => sast-engine}/graph/callgraph/analysis/taint/analyzer_test.go (99%) rename {sourcecode-parser => sast-engine}/graph/callgraph/analysis/taint/doc.go (100%) rename {sourcecode-parser => sast-engine}/graph/callgraph/benchmark_test.go (96%) rename {sourcecode-parser => sast-engine}/graph/callgraph/builder/builder.go (98%) rename {sourcecode-parser => sast-engine}/graph/callgraph/builder/builder_test.go (95%) rename {sourcecode-parser => sast-engine}/graph/callgraph/builder/cache.go (93%) rename {sourcecode-parser => sast-engine}/graph/callgraph/builder/cache_test.go (98%) rename {sourcecode-parser => sast-engine}/graph/callgraph/builder/doc.go (100%) rename {sourcecode-parser => sast-engine}/graph/callgraph/builder/helpers.go (100%) rename {sourcecode-parser => sast-engine}/graph/callgraph/builder/helpers_test.go (96%) rename {sourcecode-parser => sast-engine}/graph/callgraph/builder/integration.go (83%) rename {sourcecode-parser => sast-engine}/graph/callgraph/builder/integration_test.go (95%) rename {sourcecode-parser => sast-engine}/graph/callgraph/builder/taint.go (89%) rename {sourcecode-parser => sast-engine}/graph/callgraph/builder/taint_test.go (91%) rename {sourcecode-parser => sast-engine}/graph/callgraph/builder_framework_test.go (95%) rename {sourcecode-parser => sast-engine}/graph/callgraph/builder_integration_test.go (86%) rename {sourcecode-parser => sast-engine}/graph/callgraph/cfg/cfg.go (99%) rename {sourcecode-parser => sast-engine}/graph/callgraph/cfg/cfg_test.go (99%) rename {sourcecode-parser => sast-engine}/graph/callgraph/cfg/doc.go (100%) rename {sourcecode-parser => sast-engine}/graph/callgraph/core/attribute_types.go (95%) rename {sourcecode-parser => sast-engine}/graph/callgraph/core/doc.go (88%) rename {sourcecode-parser => sast-engine}/graph/callgraph/core/frameworks.go (100%) rename {sourcecode-parser => sast-engine}/graph/callgraph/core/frameworks_test.go (100%) rename {sourcecode-parser => sast-engine}/graph/callgraph/core/statement.go (100%) rename {sourcecode-parser => sast-engine}/graph/callgraph/core/statement_test.go (100%) rename {sourcecode-parser => sast-engine}/graph/callgraph/core/stdlib_types.go (100%) rename {sourcecode-parser => sast-engine}/graph/callgraph/core/stdlib_types_test.go (100%) rename {sourcecode-parser => sast-engine}/graph/callgraph/core/taint_summary.go (100%) rename {sourcecode-parser => sast-engine}/graph/callgraph/core/taint_summary_test.go (100%) rename {sourcecode-parser => sast-engine}/graph/callgraph/core/types.go (99%) rename {sourcecode-parser => sast-engine}/graph/callgraph/core/types_test.go (99%) rename {sourcecode-parser => sast-engine}/graph/callgraph/doc.go (69%) rename {sourcecode-parser => sast-engine}/graph/callgraph/extraction/attributes.go (97%) rename {sourcecode-parser => sast-engine}/graph/callgraph/extraction/attributes_coverage_test.go (98%) rename {sourcecode-parser => sast-engine}/graph/callgraph/extraction/attributes_simple_test.go (100%) rename {sourcecode-parser => sast-engine}/graph/callgraph/extraction/doc.go (100%) rename {sourcecode-parser => sast-engine}/graph/callgraph/extraction/statements.go (99%) rename {sourcecode-parser => sast-engine}/graph/callgraph/extraction/statements_test.go (99%) rename {sourcecode-parser => sast-engine}/graph/callgraph/extraction/variables.go (97%) rename {sourcecode-parser => sast-engine}/graph/callgraph/extraction/variables_test.go (98%) rename {sourcecode-parser => sast-engine}/graph/callgraph/integration.go (92%) rename {sourcecode-parser => sast-engine}/graph/callgraph/integration_test.go (98%) rename {sourcecode-parser => sast-engine}/graph/callgraph/patterns/detector.go (98%) rename {sourcecode-parser => sast-engine}/graph/callgraph/patterns/detector_test.go (99%) rename {sourcecode-parser => sast-engine}/graph/callgraph/patterns/doc.go (100%) rename {sourcecode-parser => sast-engine}/graph/callgraph/patterns/frameworks.go (94%) rename {sourcecode-parser => sast-engine}/graph/callgraph/patterns/frameworks_test.go (98%) rename {sourcecode-parser => sast-engine}/graph/callgraph/patterns/helpers.go (100%) rename {sourcecode-parser => sast-engine}/graph/callgraph/patterns/helpers_test.go (96%) rename {sourcecode-parser => sast-engine}/graph/callgraph/registry/attribute.go (97%) rename {sourcecode-parser => sast-engine}/graph/callgraph/registry/attribute_test.go (98%) rename {sourcecode-parser => sast-engine}/graph/callgraph/registry/builtin.go (99%) rename {sourcecode-parser => sast-engine}/graph/callgraph/registry/builtin_test.go (100%) rename {sourcecode-parser => sast-engine}/graph/callgraph/registry/doc.go (100%) rename {sourcecode-parser => sast-engine}/graph/callgraph/registry/module.go (98%) rename {sourcecode-parser => sast-engine}/graph/callgraph/registry/module_test.go (100%) rename {sourcecode-parser => sast-engine}/graph/callgraph/registry/stdlib_loader.go (97%) rename {sourcecode-parser => sast-engine}/graph/callgraph/registry/stdlib_loader_test.go (98%) rename {sourcecode-parser => sast-engine}/graph/callgraph/registry/stdlib_remote.go (98%) rename {sourcecode-parser => sast-engine}/graph/callgraph/registry/stdlib_remote_test.go (99%) rename {sourcecode-parser => sast-engine}/graph/callgraph/resolution/attribute.go (98%) rename {sourcecode-parser => sast-engine}/graph/callgraph/resolution/attribute_test.go (99%) rename {sourcecode-parser => sast-engine}/graph/callgraph/resolution/callsites.go (99%) rename {sourcecode-parser => sast-engine}/graph/callgraph/resolution/callsites_test.go (99%) rename {sourcecode-parser => sast-engine}/graph/callgraph/resolution/chaining.go (98%) rename {sourcecode-parser => sast-engine}/graph/callgraph/resolution/chaining_test.go (99%) rename {sourcecode-parser => sast-engine}/graph/callgraph/resolution/doc.go (100%) rename {sourcecode-parser => sast-engine}/graph/callgraph/resolution/imports.go (99%) rename {sourcecode-parser => sast-engine}/graph/callgraph/resolution/imports_relative_test.go (98%) rename {sourcecode-parser => sast-engine}/graph/callgraph/resolution/imports_test.go (99%) rename {sourcecode-parser => sast-engine}/graph/callgraph/resolution/inference.go (96%) rename {sourcecode-parser => sast-engine}/graph/callgraph/resolution/inference_test.go (99%) rename {sourcecode-parser => sast-engine}/graph/callgraph/resolution/orm.go (98%) rename {sourcecode-parser => sast-engine}/graph/callgraph/resolution/orm_test.go (98%) rename {sourcecode-parser => sast-engine}/graph/callgraph/resolution/return_type.go (98%) rename {sourcecode-parser => sast-engine}/graph/callgraph/resolution/return_type_class_test.go (96%) rename {sourcecode-parser => sast-engine}/graph/callgraph/resolution/return_type_test.go (97%) rename {sourcecode-parser => sast-engine}/graph/callgraph/resolution/types.go (96%) rename {sourcecode-parser => sast-engine}/graph/callgraph/resolution/types_test.go (97%) rename {sourcecode-parser => sast-engine}/graph/callgraph/stdlib_registry_regression_test.go (97%) rename {sourcecode-parser => sast-engine}/graph/graph.go (100%) rename {sourcecode-parser => sast-engine}/graph/graph_test.go (99%) rename {sourcecode-parser => sast-engine}/graph/initialize.go (100%) rename {sourcecode-parser => sast-engine}/graph/initialize_test.go (100%) rename {sourcecode-parser => sast-engine}/graph/java/parse_statement.go (96%) rename {sourcecode-parser => sast-engine}/graph/java/parse_statement_test.go (99%) rename {sourcecode-parser => sast-engine}/graph/parser.go (100%) rename {sourcecode-parser => sast-engine}/graph/parser_java.go (99%) rename {sourcecode-parser => sast-engine}/graph/parser_python.go (99%) rename {sourcecode-parser => sast-engine}/graph/parser_python_test.go (100%) rename {sourcecode-parser => sast-engine}/graph/parser_statements.go (98%) rename {sourcecode-parser => sast-engine}/graph/python/parse_statement.go (97%) rename {sourcecode-parser => sast-engine}/graph/python/parse_statement_test.go (100%) rename {sourcecode-parser => sast-engine}/graph/types.go (97%) rename {sourcecode-parser => sast-engine}/graph/types_test.go (98%) rename {sourcecode-parser => sast-engine}/graph/utils.go (99%) rename {sourcecode-parser => sast-engine}/graph/utils_test.go (100%) rename {sourcecode-parser => sast-engine}/main.go (67%) rename {sourcecode-parser => sast-engine}/main_test.go (100%) rename {sourcecode-parser => sast-engine}/model/container.go (100%) rename {sourcecode-parser => sast-engine}/model/container_test.go (100%) rename {sourcecode-parser => sast-engine}/model/expr.go (100%) rename {sourcecode-parser => sast-engine}/model/expr_test.go (100%) rename {sourcecode-parser => sast-engine}/model/javadoc.go (100%) rename {sourcecode-parser => sast-engine}/model/javadoc_test.go (100%) rename {sourcecode-parser => sast-engine}/model/location.go (100%) rename {sourcecode-parser => sast-engine}/model/location_test.go (100%) rename {sourcecode-parser => sast-engine}/model/member.go (100%) rename {sourcecode-parser => sast-engine}/model/member_test.go (100%) rename {sourcecode-parser => sast-engine}/model/module.go (100%) rename {sourcecode-parser => sast-engine}/model/module_test.go (100%) rename {sourcecode-parser => sast-engine}/model/stmt.go (100%) rename {sourcecode-parser => sast-engine}/model/stmt_test.go (100%) rename {sourcecode-parser => sast-engine}/model/top.go (100%) rename {sourcecode-parser => sast-engine}/model/top_test.go (100%) rename {sourcecode-parser => sast-engine}/output/csv_formatter.go (97%) rename {sourcecode-parser => sast-engine}/output/csv_formatter_test.go (99%) rename {sourcecode-parser => sast-engine}/output/enricher.go (98%) rename {sourcecode-parser => sast-engine}/output/enricher_test.go (98%) rename {sourcecode-parser => sast-engine}/output/exit_code.go (97%) rename {sourcecode-parser => sast-engine}/output/exit_code_test.go (99%) rename {sourcecode-parser => sast-engine}/output/json_formatter.go (99%) rename {sourcecode-parser => sast-engine}/output/json_formatter_test.go (99%) rename {sourcecode-parser => sast-engine}/output/logger.go (100%) rename {sourcecode-parser => sast-engine}/output/logger_test.go (100%) rename {sourcecode-parser => sast-engine}/output/options.go (100%) rename {sourcecode-parser => sast-engine}/output/sarif_formatter.go (99%) rename {sourcecode-parser => sast-engine}/output/sarif_formatter_test.go (99%) rename {sourcecode-parser => sast-engine}/output/text_formatter.go (99%) rename {sourcecode-parser => sast-engine}/output/text_formatter_test.go (99%) rename {sourcecode-parser => sast-engine}/settings.gradle (100%) rename {sourcecode-parser => sast-engine}/test-fixtures/python/callsites_test/simple_calls.py (100%) rename {sourcecode-parser => sast-engine}/test-fixtures/python/imports_test/aliased_imports.py (100%) rename {sourcecode-parser => sast-engine}/test-fixtures/python/imports_test/from_imports.py (100%) rename {sourcecode-parser => sast-engine}/test-fixtures/python/imports_test/mixed_imports.py (100%) rename {sourcecode-parser => sast-engine}/test-fixtures/python/imports_test/simple_imports.py (100%) rename {sourcecode-parser => sast-engine}/test-fixtures/python/relative_imports_test/myapp/__init__.py (100%) rename {sourcecode-parser => sast-engine}/test-fixtures/python/relative_imports_test/myapp/config/__init__.py (100%) rename {sourcecode-parser => sast-engine}/test-fixtures/python/relative_imports_test/myapp/config/settings.py (100%) rename {sourcecode-parser => sast-engine}/test-fixtures/python/relative_imports_test/myapp/submodule/__init__.py (100%) rename {sourcecode-parser => sast-engine}/test-fixtures/python/relative_imports_test/myapp/submodule/handler.py (100%) rename {sourcecode-parser => sast-engine}/test-fixtures/python/relative_imports_test/myapp/submodule/utils.py (100%) rename {sourcecode-parser => sast-engine}/test-fixtures/python/relative_imports_test/myapp/utils/__init__.py (100%) rename {sourcecode-parser => sast-engine}/test-fixtures/python/relative_imports_test/myapp/utils/helper.py (100%) rename {sourcecode-parser => sast-engine}/test-fixtures/python/sample.py (100%) rename {sourcecode-parser => sast-engine}/test-fixtures/python/simple_project/main.py (100%) rename {sourcecode-parser => sast-engine}/test-fixtures/python/simple_project/submodule/__init__.py (100%) rename {sourcecode-parser => sast-engine}/test-fixtures/python/simple_project/submodule/helpers.py (100%) rename {sourcecode-parser => sast-engine}/test-fixtures/python/simple_project/utils.py (100%) rename {sourcecode-parser => sast-engine}/tools/__pycache__/generate_stdlib_registry.cpython-314.pyc (100%) rename {sourcecode-parser => sast-engine}/tools/generate_stdlib_registry.py (100%) rename {sourcecode-parser => sast-engine}/tools/test_generation_local.sh (100%) rename {sourcecode-parser => sast-engine}/tools/test_generator.py (100%) rename {sourcecode-parser => sast-engine}/tools/upload_to_r2.sh (100%) delete mode 100644 sourcecode-parser/VERSION diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ac320cd7..b1184fa6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,7 +7,7 @@ on: - master pull_request: paths: - - 'sourcecode-parser/**' + - 'sast-engine/**' - 'playground/**' - 'pathfinder-rules/**' @@ -33,12 +33,12 @@ jobs: - name: Get dependencies run: | - cd sourcecode-parser + cd sast-engine go mod download - name: Test run: | - cd sourcecode-parser + cd sast-engine go test -p 2 -v ./... -coverprofile=coverage.out -covermode=atomic - name: Upload coverage reports to Codecov @@ -51,7 +51,7 @@ jobs: runs-on: ubuntu-latest defaults: run: - working-directory: sourcecode-parser + working-directory: sast-engine steps: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 @@ -61,4 +61,4 @@ jobs: uses: golangci/golangci-lint-action@v8 with: version: v2.5.0 - working-directory: sourcecode-parser + working-directory: sast-engine diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index ee501f01..c83de5bd 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -29,7 +29,7 @@ jobs: - name: Compute Version and Commit Info id: cpfinfo run: | - VERSION=$(cat sourcecode-parser/VERSION) + VERSION=$(cat sast-engine/VERSION) COMMIT=$(git describe --tags) echo $VERSION echo $COMMIT @@ -40,11 +40,11 @@ jobs: id: vars run: | if [[ "${{ github.ref }}" == refs/tags/* ]]; then - VERSION=$(cat sourcecode-parser/VERSION) + VERSION=$(cat sast-engine/VERSION) echo "tag1=v${VERSION}" >> $GITHUB_OUTPUT echo "tag2=stable-latest" >> $GITHUB_OUTPUT elif [ "${{ github.event_name }}" == "push" ] && [ "${{ github.ref }}" == "refs/heads/main" ]; then - VERSION=$(cat sourcecode-parser/VERSION) + VERSION=$(cat sast-engine/VERSION) echo "tag1=dev-${VERSION}" >> $GITHUB_OUTPUT echo "tag2=nightly-latest" >> $GITHUB_OUTPUT else diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5dd1c8b4..57ddb0b3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,16 +30,16 @@ jobs: GOARCH: amd64 POSTHOG_WEB_ANALYTICS: ${{ secrets.POSTHOG_WEB_ANALYTICS }} run: | - cd sourcecode-parser + cd sast-engine gitCommit=$(git describe --tags) projectVersion=$(cat VERSION) posthogkey=$(echo $POSTHOG_WEB_ANALYTICS) - go build -ldflags="-s -w -X github.com/shivasurya/code-pathfinder/sourcecode-parser/cmd.Version=${projectVersion} -X github.com/shivasurya/code-pathfinder/sourcecode-parser/cmd.GitCommit=${gitCommit} -X github.com/shivasurya/code-pathfinder/sourcecode-parser/analytics.PublicKey=${posthogkey}" -v -o pathfinder-linux-amd64 . + go build -ldflags="-s -w -X github.com/shivasurya/code-pathfinder/sast-engine/cmd.Version=${projectVersion} -X github.com/shivasurya/code-pathfinder/sast-engine/cmd.GitCommit=${gitCommit} -X github.com/shivasurya/code-pathfinder/sast-engine/analytics.PublicKey=${posthogkey}" -v -o pathfinder-linux-amd64 . chmod +x pathfinder-linux-amd64 - name: Calculate SHA256 run: | - cd sourcecode-parser + cd sast-engine sha256sum pathfinder-linux-amd64 > pathfinder-linux-amd64.sha256sum.txt cp pathfinder-linux-amd64 pathfinder tar -czvf pathfinder-linux-amd64.tar.gz pathfinder @@ -49,9 +49,9 @@ jobs: with: name: pathfinder-linux-amd64 path: | - sourcecode-parser/pathfinder-linux-amd64 - sourcecode-parser/pathfinder-linux-amd64.sha256sum.txt - sourcecode-parser/pathfinder-linux-amd64.tar.gz + sast-engine/pathfinder-linux-amd64 + sast-engine/pathfinder-linux-amd64.sha256sum.txt + sast-engine/pathfinder-linux-amd64.tar.gz build-linux-arm64: runs-on: ubuntu-24.04-arm # Native ARM64 runner (public repos only) @@ -73,16 +73,16 @@ jobs: CGO_ENABLED: 1 # Required for tree-sitter POSTHOG_WEB_ANALYTICS: ${{ secrets.POSTHOG_WEB_ANALYTICS }} run: | - cd sourcecode-parser + cd sast-engine gitCommit=$(git describe --tags) projectVersion=$(cat VERSION) posthogkey=$(echo $POSTHOG_WEB_ANALYTICS) - go build -ldflags="-s -w -X github.com/shivasurya/code-pathfinder/sourcecode-parser/cmd.Version=${projectVersion} -X github.com/shivasurya/code-pathfinder/sourcecode-parser/cmd.GitCommit=${gitCommit} -X github.com/shivasurya/code-pathfinder/sourcecode-parser/analytics.PublicKey=${posthogkey}" -v -o pathfinder-linux-arm64 . + go build -ldflags="-s -w -X github.com/shivasurya/code-pathfinder/sast-engine/cmd.Version=${projectVersion} -X github.com/shivasurya/code-pathfinder/sast-engine/cmd.GitCommit=${gitCommit} -X github.com/shivasurya/code-pathfinder/sast-engine/analytics.PublicKey=${posthogkey}" -v -o pathfinder-linux-arm64 . chmod +x pathfinder-linux-arm64 - name: Calculate SHA256 run: | - cd sourcecode-parser + cd sast-engine sha256sum pathfinder-linux-arm64 > pathfinder-linux-arm64.sha256sum.txt cp pathfinder-linux-arm64 pathfinder tar -czvf pathfinder-linux-arm64.tar.gz pathfinder @@ -92,9 +92,9 @@ jobs: with: name: pathfinder-linux-arm64 path: | - sourcecode-parser/pathfinder-linux-arm64 - sourcecode-parser/pathfinder-linux-arm64.sha256sum.txt - sourcecode-parser/pathfinder-linux-arm64.tar.gz + sast-engine/pathfinder-linux-arm64 + sast-engine/pathfinder-linux-arm64.sha256sum.txt + sast-engine/pathfinder-linux-arm64.tar.gz build-windows: runs-on: windows-latest @@ -115,15 +115,15 @@ jobs: GOARCH: amd64 POSTHOG_WEB_ANALYTICS: ${{ secrets.POSTHOG_WEB_ANALYTICS }} run: | - cd sourcecode-parser + cd sast-engine $gitCommit = (git describe --tags).Trim() $projectVersion = Get-Content VERSION $posthogkey=$env:POSTHOG_WEB_ANALYTICS - go build -ldflags="-s -w -X github.com/shivasurya/code-pathfinder/sourcecode-parser/cmd.Version=${projectVersion} -X github.com/shivasurya/code-pathfinder/sourcecode-parser/cmd.GitCommit=${gitCommit} -X github.com/shivasurya/code-pathfinder/sourcecode-parser/analytics.PublicKey=${posthogkey}" -v -o pathfinder-windows-amd64.exe . + go build -ldflags="-s -w -X github.com/shivasurya/code-pathfinder/sast-engine/cmd.Version=${projectVersion} -X github.com/shivasurya/code-pathfinder/sast-engine/cmd.GitCommit=${gitCommit} -X github.com/shivasurya/code-pathfinder/sast-engine/analytics.PublicKey=${posthogkey}" -v -o pathfinder-windows-amd64.exe . - name: Calculate SHA256 run: | - cd sourcecode-parser + cd sast-engine Get-FileHash -Algorithm SHA256 pathfinder-windows-amd64.exe | Select-Object Hash | Out-File -Encoding UTF8 pathfinder-windows-amd64.exe.sha256sum.txt Copy-Item pathfinder-windows-amd64.exe pathfinder.exe Compress-Archive -Path pathfinder.exe -DestinationPath pathfinder-windows-amd64.zip @@ -133,9 +133,9 @@ jobs: with: name: pathfinder-windows-amd64 path: | - sourcecode-parser/pathfinder-windows-amd64.exe - sourcecode-parser/pathfinder-windows-amd64.exe.sha256sum.txt - sourcecode-parser/pathfinder-windows-amd64.zip + sast-engine/pathfinder-windows-amd64.exe + sast-engine/pathfinder-windows-amd64.exe.sha256sum.txt + sast-engine/pathfinder-windows-amd64.zip build-macos: runs-on: macos-latest @@ -156,16 +156,16 @@ jobs: GOARCH: arm64 POSTHOG_WEB_ANALYTICS: ${{ secrets.POSTHOG_WEB_ANALYTICS }} run: | - cd sourcecode-parser + cd sast-engine gitCommit=$(git describe --tags) projectVersion=$(cat VERSION) posthogkey=$(echo $POSTHOG_WEB_ANALYTICS) - go build -ldflags="-s -w -X github.com/shivasurya/code-pathfinder/sourcecode-parser/cmd.Version=${projectVersion} -X github.com/shivasurya/code-pathfinder/sourcecode-parser/cmd.GitCommit=${gitCommit} -X github.com/shivasurya/code-pathfinder/sourcecode-parser/analytics.PublicKey=${posthogkey}" -v -o pathfinder-darwin-arm64 . + go build -ldflags="-s -w -X github.com/shivasurya/code-pathfinder/sast-engine/cmd.Version=${projectVersion} -X github.com/shivasurya/code-pathfinder/sast-engine/cmd.GitCommit=${gitCommit} -X github.com/shivasurya/code-pathfinder/sast-engine/analytics.PublicKey=${posthogkey}" -v -o pathfinder-darwin-arm64 . chmod +x pathfinder-darwin-arm64 - name: Calculate SHA256 run: | - cd sourcecode-parser + cd sast-engine shasum -a 256 pathfinder-darwin-arm64 > pathfinder-darwin-arm64.sha256sum.txt cp pathfinder-darwin-arm64 pathfinder tar -czvf pathfinder-darwin-arm64.tar.gz pathfinder @@ -175,9 +175,9 @@ jobs: with: name: pathfinder-darwin-arm64 path: | - sourcecode-parser/pathfinder-darwin-arm64 - sourcecode-parser/pathfinder-darwin-arm64.sha256sum.txt - sourcecode-parser/pathfinder-darwin-arm64.tar.gz + sast-engine/pathfinder-darwin-arm64 + sast-engine/pathfinder-darwin-arm64.sha256sum.txt + sast-engine/pathfinder-darwin-arm64.tar.gz build-macos-intel: runs-on: macos-13 # Last Intel-based macOS runner @@ -199,16 +199,16 @@ jobs: CGO_ENABLED: 1 # Required for tree-sitter POSTHOG_WEB_ANALYTICS: ${{ secrets.POSTHOG_WEB_ANALYTICS }} run: | - cd sourcecode-parser + cd sast-engine gitCommit=$(git describe --tags) projectVersion=$(cat VERSION) posthogkey=$(echo $POSTHOG_WEB_ANALYTICS) - go build -ldflags="-s -w -X github.com/shivasurya/code-pathfinder/sourcecode-parser/cmd.Version=${projectVersion} -X github.com/shivasurya/code-pathfinder/sourcecode-parser/cmd.GitCommit=${gitCommit} -X github.com/shivasurya/code-pathfinder/sourcecode-parser/analytics.PublicKey=${posthogkey}" -v -o pathfinder-darwin-amd64 . + go build -ldflags="-s -w -X github.com/shivasurya/code-pathfinder/sast-engine/cmd.Version=${projectVersion} -X github.com/shivasurya/code-pathfinder/sast-engine/cmd.GitCommit=${gitCommit} -X github.com/shivasurya/code-pathfinder/sast-engine/analytics.PublicKey=${posthogkey}" -v -o pathfinder-darwin-amd64 . chmod +x pathfinder-darwin-amd64 - name: Calculate SHA256 run: | - cd sourcecode-parser + cd sast-engine shasum -a 256 pathfinder-darwin-amd64 > pathfinder-darwin-amd64.sha256sum.txt cp pathfinder-darwin-amd64 pathfinder tar -czvf pathfinder-darwin-amd64.tar.gz pathfinder @@ -218,9 +218,9 @@ jobs: with: name: pathfinder-darwin-amd64 path: | - sourcecode-parser/pathfinder-darwin-amd64 - sourcecode-parser/pathfinder-darwin-amd64.sha256sum.txt - sourcecode-parser/pathfinder-darwin-amd64.tar.gz + sast-engine/pathfinder-darwin-amd64 + sast-engine/pathfinder-darwin-amd64.sha256sum.txt + sast-engine/pathfinder-darwin-amd64.tar.gz release: needs: [build-linux, build-linux-arm64, build-windows, build-macos, build-macos-intel] diff --git a/.github/workflows/stdlib-r2-upload.yml b/.github/workflows/stdlib-r2-upload.yml index 27f6fdea..96845a7c 100644 --- a/.github/workflows/stdlib-r2-upload.yml +++ b/.github/workflows/stdlib-r2-upload.yml @@ -55,7 +55,7 @@ jobs: R2_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }} R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }} run: | - cd sourcecode-parser/tools + cd sast-engine/tools chmod +x upload_to_r2.sh ./upload_to_r2.sh diff --git a/CLAUDE.md b/CLAUDE.md index 54d1bf76..229f1fd1 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -6,7 +6,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co ### Building the Binary ```bash -cd sourcecode-parser +cd sast-engine gradle buildGo ``` The binary is output to `build/go/pathfinder`. The build automatically cleans previous builds first. @@ -65,7 +65,7 @@ Output Formats (JSON, SARIF, Table) ### Core Packages -**sourcecode-parser/graph/** - Code graph construction and management +**sast-engine/graph/** - Code graph construction and management - `initialize.go`: Multi-threaded file parsing with 5 workers - `parser.go`: AST traversal orchestrator (language-agnostic entry point) - `parser_java.go`: Java-specific node parsing @@ -73,21 +73,21 @@ Output Formats (JSON, SARIF, Table) - `query.go`: Query execution engine with Cartesian product optimization - `utils.go`: SHA256-based ID generation, file operations -**sourcecode-parser/antlr/** - Query language parsing +**sast-engine/antlr/** - Query language parsing - `Query.g4`: ANTLR grammar for PathFinder query language - `listener_impl.go`: Semantic analysis of parsed queries -**sourcecode-parser/cmd/** - CLI interface +**sast-engine/cmd/** - CLI interface - `query.go`: Interactive/batch query execution with pagination - `ci.go`: CI/CD integration with rule loading from codepathfinder.dev - `scan.go`: Scan project against local ruleset -**sourcecode-parser/model/** - AST data models +**sast-engine/model/** - AST data models - `stmt.go`: Statement models (if/while/for/blocks) - `expr.go`: Expression models - `location.go`: Source location tracking for lazy loading -**sourcecode-parser/analytics/** - Optional PostHog telemetry +**sast-engine/analytics/** - Optional PostHog telemetry ## Critical Design Patterns @@ -398,7 +398,7 @@ This counteracts non-determinism from multi-threaded parsing. ## Release and Versioning ### Version Management -Version is stored in `sourcecode-parser/VERSION` and injected at build time: +Version is stored in `sast-engine/VERSION` and injected at build time: ```gradle // In build.gradle commandLine 'go', 'build', '-ldflags', diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ee125dfd..f9adb3a5 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -12,7 +12,7 @@ We recommend using the following IDEs for developing with Code Pathfinder: ## Core Project -The core of Code Pathfinder is the `sourcecode-parser` project, written in Go. +The core of Code Pathfinder is the `sast-engine` project, written in Go. ## Build System diff --git a/Dockerfile b/Dockerfile index 891dea7d..fe976c91 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM cgr.dev/chainguard/go:latest AS builder WORKDIR /app -COPY sourcecode-parser . +COPY sast-engine . ARG POSTHOG_WEB_ANALYTICS @@ -16,7 +16,7 @@ RUN echo "Building version ${PROJECT_VERSION} with commit ${PROJECT_COMMIT}" RUN go mod download -RUN go build -ldflags="-s -w -X github.com/shivasurya/code-pathfinder/sourcecode-parser/cmd.Version=${PROJECT_VERSION} -X github.com/shivasurya/code-pathfinder/sourcecode-parser/cmd.GitCommit=${PROJECT_COMMIT} -X github.com/shivasurya/code-pathfinder/sourcecode-parser/analytics.PublicKey=${POSTHOG_API_KEY}" -v -o pathfinder . +RUN go build -ldflags="-s -w -X github.com/shivasurya/code-pathfinder/sast-engine/cmd.Version=${PROJECT_VERSION} -X github.com/shivasurya/code-pathfinder/sast-engine/cmd.GitCommit=${PROJECT_COMMIT} -X github.com/shivasurya/code-pathfinder/sast-engine/analytics.PublicKey=${POSTHOG_API_KEY}" -v -o pathfinder . FROM cgr.dev/chainguard/wolfi-base:latest diff --git a/codecov.yml b/codecov.yml index 143c3a5c..c78666e1 100644 --- a/codecov.yml +++ b/codecov.yml @@ -1,2 +1,2 @@ ignore: - - "sourcecode-parser/antlr/" # ignore folders and all its contents \ No newline at end of file + - "sast-engine/antlr/" # ignore folders and all its contents \ No newline at end of file diff --git a/package.json b/package.json index 21138dd9..66e4284b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "codepathfinder", - "version": "1.0.0", + "version": "1.1.0", "description": "Code Pathfinder, the open-source alternative to CodeQL. Designed for precise flow analysis and advanced structural search, it identifies vulnerabilities in source code.", "goBinary": { "name": "pathfinder", diff --git a/perf_tools/README.md b/perf_tools/README.md index 36fa52d3..29050458 100644 --- a/perf_tools/README.md +++ b/perf_tools/README.md @@ -34,7 +34,7 @@ Options: -p, --project DIR Project directory to analyze (default: ~/src/shivasurya/salt) -q, --query QUERY Query to run (default: 'FROM function_definition AS fd SELECT fd') -o, --output NAME Output file prefix (default: 'benchmark') - -b, --binary PATH Path to pathfinder binary (default: ../sourcecode-parser/build/go/pathfinder) + -b, --binary PATH Path to pathfinder binary (default: ../sast-engine/build/go/pathfinder) -h, --help Show this help message ``` @@ -117,7 +117,7 @@ Memory Usage Over Time ### Required - Bash shell -- Built pathfinder binary (run `cd ../sourcecode-parser && gradle buildGo`) +- Built pathfinder binary (run `cd ../sast-engine && gradle buildGo`) ### Optional - Python 3 with matplotlib and pandas for graph generation @@ -133,7 +133,7 @@ If you want more control, use the individual scripts: ```bash # Terminal 1: Start query -../sourcecode-parser/build/go/pathfinder query --project ~/salt --query "..." & +../sast-engine/build/go/pathfinder query --project ~/salt --query "..." & PID=$! # Terminal 2: Monitor memory @@ -163,12 +163,12 @@ To measure the impact of performance optimizations: ```bash # Before optimization git checkout main -cd sourcecode-parser && gradle clean buildGo && cd ../perf_tools +cd sast-engine && gradle clean buildGo && cd ../perf_tools ./benchmark.sh -o before_optimization # After optimization git checkout feature-branch -cd sourcecode-parser && gradle clean buildGo && cd ../perf_tools +cd sast-engine && gradle clean buildGo && cd ../perf_tools ./benchmark.sh -o after_optimization # Compare results @@ -182,7 +182,7 @@ echo "After: $(grep 'Peak RSS' after_optimization.csv | tail -1)" Build the binary first: ```bash -cd ../sourcecode-parser +cd ../sast-engine gradle clean buildGo cd ../perf_tools ``` diff --git a/playground-Dockerfile b/playground-Dockerfile index b0a7a9b8..2d8dd24c 100644 --- a/playground-Dockerfile +++ b/playground-Dockerfile @@ -4,8 +4,8 @@ FROM cgr.dev/chainguard/go:latest as builder # Set working directory WORKDIR /build -# First, copy the sourcecode-parser module -COPY ./sourcecode-parser /build/sourcecode-parser +# First, copy the sast-engine module +COPY ./sast-engine /build/sast-engine # Copy the playground module COPY ./playground /build/playground diff --git a/playground/go.mod b/playground/go.mod index 5dd74dd5..a19eab04 100644 --- a/playground/go.mod +++ b/playground/go.mod @@ -2,11 +2,11 @@ module github.com/shivasurya/code-pathfinder/playground go 1.25.3 -replace github.com/shivasurya/code-pathfinder/sourcecode-parser => ../sourcecode-parser +replace github.com/shivasurya/code-pathfinder/sast-engine => ../sast-engine require ( github.com/google/uuid v1.6.0 - github.com/shivasurya/code-pathfinder/sourcecode-parser v0.0.0-20251019001255-25ad474e19a3 + github.com/shivasurya/code-pathfinder/sast-engine v0.0.0-20251019001255-25ad474e19a3 github.com/smacker/go-tree-sitter v0.0.0-20240827094217-dd81d9e9be82 ) diff --git a/playground/pkg/handlers/analyze.go b/playground/pkg/handlers/analyze.go index e4c5040d..cc95a283 100644 --- a/playground/pkg/handlers/analyze.go +++ b/playground/pkg/handlers/analyze.go @@ -9,8 +9,8 @@ import ( "github.com/shivasurya/code-pathfinder/playground/pkg/models" "github.com/shivasurya/code-pathfinder/playground/pkg/utils" - parser "github.com/shivasurya/code-pathfinder/sourcecode-parser/antlr" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph" + parser "github.com/shivasurya/code-pathfinder/sast-engine/antlr" + "github.com/shivasurya/code-pathfinder/sast-engine/graph" ) const ( diff --git a/sourcecode-parser/.gitignore b/sast-engine/.gitignore similarity index 100% rename from sourcecode-parser/.gitignore rename to sast-engine/.gitignore diff --git a/sourcecode-parser/.golangci.yml b/sast-engine/.golangci.yml similarity index 100% rename from sourcecode-parser/.golangci.yml rename to sast-engine/.golangci.yml diff --git a/sast-engine/VERSION b/sast-engine/VERSION new file mode 100644 index 00000000..9084fa2f --- /dev/null +++ b/sast-engine/VERSION @@ -0,0 +1 @@ +1.1.0 diff --git a/sourcecode-parser/analytics/usage.go b/sast-engine/analytics/usage.go similarity index 100% rename from sourcecode-parser/analytics/usage.go rename to sast-engine/analytics/usage.go diff --git a/sourcecode-parser/analytics/usage_test.go b/sast-engine/analytics/usage_test.go similarity index 100% rename from sourcecode-parser/analytics/usage_test.go rename to sast-engine/analytics/usage_test.go diff --git a/sourcecode-parser/build.gradle b/sast-engine/build.gradle similarity index 92% rename from sourcecode-parser/build.gradle rename to sast-engine/build.gradle index 35955455..f456e70c 100644 --- a/sourcecode-parser/build.gradle +++ b/sast-engine/build.gradle @@ -19,7 +19,7 @@ task version { task buildGo(type: Exec, dependsOn: 'cleanGo') { def outputDir = "${buildDir}/go" outputs.dir outputDir - commandLine 'go', 'build', '-ldflags', "-s -w -X github.com/shivasurya/code-pathfinder/sourcecode-parser/cmd.Version=${projectVersion} -X github.com/shivasurya/code-pathfinder/sourcecode-parser/cmd.GitCommit=${gitCommit} -X github.com/shivasurya/code-pathfinder/sourcecode-parser/analytics.PublicKey=${analyticskey}", '-o', "${outputDir}/pathfinder", '.' + commandLine 'go', 'build', '-ldflags', "-s -w -X github.com/shivasurya/code-pathfinder/sast-engine/cmd.Version=${projectVersion} -X github.com/shivasurya/code-pathfinder/sast-engine/cmd.GitCommit=${gitCommit} -X github.com/shivasurya/code-pathfinder/sast-engine/analytics.PublicKey=${analyticskey}", '-o', "${outputDir}/pathfinder", '.' } task testGo(type: Exec) { diff --git a/sourcecode-parser/cli.md b/sast-engine/cli.md similarity index 100% rename from sourcecode-parser/cli.md rename to sast-engine/cli.md diff --git a/sourcecode-parser/cmd/ci.go b/sast-engine/cmd/ci.go similarity index 93% rename from sourcecode-parser/cmd/ci.go rename to sast-engine/cmd/ci.go index 90749dd2..d4497219 100644 --- a/sourcecode-parser/cmd/ci.go +++ b/sast-engine/cmd/ci.go @@ -4,12 +4,12 @@ import ( "fmt" "os" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/dsl" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/builder" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/registry" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/output" + "github.com/shivasurya/code-pathfinder/sast-engine/dsl" + "github.com/shivasurya/code-pathfinder/sast-engine/graph" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/builder" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/registry" + "github.com/shivasurya/code-pathfinder/sast-engine/output" "github.com/spf13/cobra" ) diff --git a/sourcecode-parser/cmd/ci_test.go b/sast-engine/cmd/ci_test.go similarity index 100% rename from sourcecode-parser/cmd/ci_test.go rename to sast-engine/cmd/ci_test.go diff --git a/sourcecode-parser/cmd/diagnose.go b/sast-engine/cmd/diagnose.go similarity index 99% rename from sourcecode-parser/cmd/diagnose.go rename to sast-engine/cmd/diagnose.go index 16f90acf..9fd8d92d 100644 --- a/sourcecode-parser/cmd/diagnose.go +++ b/sast-engine/cmd/diagnose.go @@ -7,7 +7,7 @@ import ( "strings" "time" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/diagnostic" + "github.com/shivasurya/code-pathfinder/sast-engine/diagnostic" "github.com/spf13/cobra" ) diff --git a/sourcecode-parser/cmd/exit_code_integration_test.go b/sast-engine/cmd/exit_code_integration_test.go similarity index 100% rename from sourcecode-parser/cmd/exit_code_integration_test.go rename to sast-engine/cmd/exit_code_integration_test.go diff --git a/sourcecode-parser/cmd/resolution_report.go b/sast-engine/cmd/resolution_report.go similarity index 98% rename from sourcecode-parser/cmd/resolution_report.go rename to sast-engine/cmd/resolution_report.go index b4b79717..3b4d6c5a 100644 --- a/sourcecode-parser/cmd/resolution_report.go +++ b/sast-engine/cmd/resolution_report.go @@ -4,10 +4,10 @@ import ( "fmt" "sort" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/output" + "github.com/shivasurya/code-pathfinder/sast-engine/graph" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/output" "github.com/spf13/cobra" ) diff --git a/sourcecode-parser/cmd/resolution_report_test.go b/sast-engine/cmd/resolution_report_test.go similarity index 98% rename from sourcecode-parser/cmd/resolution_report_test.go rename to sast-engine/cmd/resolution_report_test.go index 137f7a9a..98646762 100644 --- a/sourcecode-parser/cmd/resolution_report_test.go +++ b/sast-engine/cmd/resolution_report_test.go @@ -3,7 +3,7 @@ package cmd import ( "testing" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" "github.com/stretchr/testify/assert" ) diff --git a/sourcecode-parser/cmd/root.go b/sast-engine/cmd/root.go similarity index 86% rename from sourcecode-parser/cmd/root.go rename to sast-engine/cmd/root.go index 17f84551..da9e626a 100644 --- a/sourcecode-parser/cmd/root.go +++ b/sast-engine/cmd/root.go @@ -1,8 +1,8 @@ package cmd import ( - "github.com/shivasurya/code-pathfinder/sourcecode-parser/analytics" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph" + "github.com/shivasurya/code-pathfinder/sast-engine/analytics" + "github.com/shivasurya/code-pathfinder/sast-engine/graph" "github.com/spf13/cobra" ) diff --git a/sourcecode-parser/cmd/root_test.go b/sast-engine/cmd/root_test.go similarity index 100% rename from sourcecode-parser/cmd/root_test.go rename to sast-engine/cmd/root_test.go diff --git a/sourcecode-parser/cmd/scan.go b/sast-engine/cmd/scan.go similarity index 93% rename from sourcecode-parser/cmd/scan.go rename to sast-engine/cmd/scan.go index c4ffde71..f1892aed 100644 --- a/sourcecode-parser/cmd/scan.go +++ b/sast-engine/cmd/scan.go @@ -5,12 +5,12 @@ import ( "os" "path/filepath" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/dsl" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/builder" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/registry" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/output" + "github.com/shivasurya/code-pathfinder/sast-engine/dsl" + "github.com/shivasurya/code-pathfinder/sast-engine/graph" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/builder" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/registry" + "github.com/shivasurya/code-pathfinder/sast-engine/output" "github.com/spf13/cobra" ) diff --git a/sourcecode-parser/cmd/scan_test.go b/sast-engine/cmd/scan_test.go similarity index 96% rename from sourcecode-parser/cmd/scan_test.go rename to sast-engine/cmd/scan_test.go index cedbb632..279964b9 100644 --- a/sourcecode-parser/cmd/scan_test.go +++ b/sast-engine/cmd/scan_test.go @@ -6,8 +6,8 @@ import ( "os" "testing" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/dsl" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/dsl" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" "github.com/stretchr/testify/assert" ) diff --git a/sourcecode-parser/cmd/version.go b/sast-engine/cmd/version.go similarity index 86% rename from sourcecode-parser/cmd/version.go rename to sast-engine/cmd/version.go index 65ad58b5..a7b1a5fd 100644 --- a/sourcecode-parser/cmd/version.go +++ b/sast-engine/cmd/version.go @@ -3,7 +3,7 @@ package cmd import ( "fmt" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/analytics" + "github.com/shivasurya/code-pathfinder/sast-engine/analytics" "github.com/spf13/cobra" ) diff --git a/sourcecode-parser/cmd/version_test.go b/sast-engine/cmd/version_test.go similarity index 100% rename from sourcecode-parser/cmd/version_test.go rename to sast-engine/cmd/version_test.go diff --git a/sourcecode-parser/diagnostic/analyzer.go b/sast-engine/diagnostic/analyzer.go similarity index 96% rename from sourcecode-parser/diagnostic/analyzer.go rename to sast-engine/diagnostic/analyzer.go index e494771e..abbcf110 100644 --- a/sourcecode-parser/diagnostic/analyzer.go +++ b/sast-engine/diagnostic/analyzer.go @@ -5,9 +5,9 @@ import ( "strings" sitter "github.com/smacker/go-tree-sitter" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/analysis/taint" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/extraction" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/analysis/taint" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/extraction" ) // FunctionTaintResult represents the structured taint analysis result for a single function. diff --git a/sourcecode-parser/diagnostic/analyzer_test.go b/sast-engine/diagnostic/analyzer_test.go similarity index 97% rename from sourcecode-parser/diagnostic/analyzer_test.go rename to sast-engine/diagnostic/analyzer_test.go index 5a3d62f4..8366eea4 100644 --- a/sourcecode-parser/diagnostic/analyzer_test.go +++ b/sast-engine/diagnostic/analyzer_test.go @@ -3,7 +3,7 @@ package diagnostic import ( "testing" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/extraction" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/extraction" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/sourcecode-parser/diagnostic/comparator.go b/sast-engine/diagnostic/comparator.go similarity index 100% rename from sourcecode-parser/diagnostic/comparator.go rename to sast-engine/diagnostic/comparator.go diff --git a/sourcecode-parser/diagnostic/comparator_test.go b/sast-engine/diagnostic/comparator_test.go similarity index 100% rename from sourcecode-parser/diagnostic/comparator_test.go rename to sast-engine/diagnostic/comparator_test.go diff --git a/sourcecode-parser/diagnostic/extractor.go b/sast-engine/diagnostic/extractor.go similarity index 100% rename from sourcecode-parser/diagnostic/extractor.go rename to sast-engine/diagnostic/extractor.go diff --git a/sourcecode-parser/diagnostic/extractor_test.go b/sast-engine/diagnostic/extractor_test.go similarity index 100% rename from sourcecode-parser/diagnostic/extractor_test.go rename to sast-engine/diagnostic/extractor_test.go diff --git a/sourcecode-parser/diagnostic/llm.go b/sast-engine/diagnostic/llm.go similarity index 100% rename from sourcecode-parser/diagnostic/llm.go rename to sast-engine/diagnostic/llm.go diff --git a/sourcecode-parser/diagnostic/llm_test.go b/sast-engine/diagnostic/llm_test.go similarity index 100% rename from sourcecode-parser/diagnostic/llm_test.go rename to sast-engine/diagnostic/llm_test.go diff --git a/sourcecode-parser/diagnostic/metrics.go b/sast-engine/diagnostic/metrics.go similarity index 100% rename from sourcecode-parser/diagnostic/metrics.go rename to sast-engine/diagnostic/metrics.go diff --git a/sourcecode-parser/diagnostic/metrics_test.go b/sast-engine/diagnostic/metrics_test.go similarity index 100% rename from sourcecode-parser/diagnostic/metrics_test.go rename to sast-engine/diagnostic/metrics_test.go diff --git a/sourcecode-parser/diagnostic/normalizer.go b/sast-engine/diagnostic/normalizer.go similarity index 100% rename from sourcecode-parser/diagnostic/normalizer.go rename to sast-engine/diagnostic/normalizer.go diff --git a/sourcecode-parser/diagnostic/normalizer_test.go b/sast-engine/diagnostic/normalizer_test.go similarity index 100% rename from sourcecode-parser/diagnostic/normalizer_test.go rename to sast-engine/diagnostic/normalizer_test.go diff --git a/sourcecode-parser/diagnostic/prompt.go b/sast-engine/diagnostic/prompt.go similarity index 100% rename from sourcecode-parser/diagnostic/prompt.go rename to sast-engine/diagnostic/prompt.go diff --git a/sourcecode-parser/diagnostic/prompt_test.go b/sast-engine/diagnostic/prompt_test.go similarity index 100% rename from sourcecode-parser/diagnostic/prompt_test.go rename to sast-engine/diagnostic/prompt_test.go diff --git a/sourcecode-parser/diagnostic/reporter.go b/sast-engine/diagnostic/reporter.go similarity index 100% rename from sourcecode-parser/diagnostic/reporter.go rename to sast-engine/diagnostic/reporter.go diff --git a/sourcecode-parser/diagnostic/reporter_test.go b/sast-engine/diagnostic/reporter_test.go similarity index 100% rename from sourcecode-parser/diagnostic/reporter_test.go rename to sast-engine/diagnostic/reporter_test.go diff --git a/sourcecode-parser/diagnostic/types.go b/sast-engine/diagnostic/types.go similarity index 100% rename from sourcecode-parser/diagnostic/types.go rename to sast-engine/diagnostic/types.go diff --git a/sourcecode-parser/dsl/call_matcher.go b/sast-engine/dsl/call_matcher.go similarity index 99% rename from sourcecode-parser/dsl/call_matcher.go rename to sast-engine/dsl/call_matcher.go index 16cc65c4..7285c4d8 100644 --- a/sourcecode-parser/dsl/call_matcher.go +++ b/sast-engine/dsl/call_matcher.go @@ -4,7 +4,7 @@ import ( "strconv" "strings" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" ) // CallMatcherExecutor executes call_matcher IR against callgraph. diff --git a/sourcecode-parser/dsl/call_matcher_test.go b/sast-engine/dsl/call_matcher_test.go similarity index 99% rename from sourcecode-parser/dsl/call_matcher_test.go rename to sast-engine/dsl/call_matcher_test.go index 4b8d01db..cc0f36e4 100644 --- a/sourcecode-parser/dsl/call_matcher_test.go +++ b/sast-engine/dsl/call_matcher_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" "github.com/stretchr/testify/assert" ) diff --git a/sourcecode-parser/dsl/dataflow_executor.go b/sast-engine/dsl/dataflow_executor.go similarity index 98% rename from sourcecode-parser/dsl/dataflow_executor.go rename to sast-engine/dsl/dataflow_executor.go index 46b6085a..04300a20 100644 --- a/sourcecode-parser/dsl/dataflow_executor.go +++ b/sast-engine/dsl/dataflow_executor.go @@ -3,7 +3,7 @@ package dsl import ( "strings" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" ) // DataflowExecutor wraps existing taint analysis functions. diff --git a/sourcecode-parser/dsl/dataflow_executor_test.go b/sast-engine/dsl/dataflow_executor_test.go similarity index 99% rename from sourcecode-parser/dsl/dataflow_executor_test.go rename to sast-engine/dsl/dataflow_executor_test.go index af44fceb..1a937b12 100644 --- a/sourcecode-parser/dsl/dataflow_executor_test.go +++ b/sast-engine/dsl/dataflow_executor_test.go @@ -3,7 +3,7 @@ package dsl import ( "testing" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" "github.com/stretchr/testify/assert" ) diff --git a/sourcecode-parser/dsl/enriched_detection.go b/sast-engine/dsl/enriched_detection.go similarity index 100% rename from sourcecode-parser/dsl/enriched_detection.go rename to sast-engine/dsl/enriched_detection.go diff --git a/sourcecode-parser/dsl/enriched_detection_test.go b/sast-engine/dsl/enriched_detection_test.go similarity index 100% rename from sourcecode-parser/dsl/enriched_detection_test.go rename to sast-engine/dsl/enriched_detection_test.go diff --git a/sourcecode-parser/dsl/ir_types.go b/sast-engine/dsl/ir_types.go similarity index 100% rename from sourcecode-parser/dsl/ir_types.go rename to sast-engine/dsl/ir_types.go diff --git a/sourcecode-parser/dsl/ir_types_test.go b/sast-engine/dsl/ir_types_test.go similarity index 100% rename from sourcecode-parser/dsl/ir_types_test.go rename to sast-engine/dsl/ir_types_test.go diff --git a/sourcecode-parser/dsl/loader.go b/sast-engine/dsl/loader.go similarity index 99% rename from sourcecode-parser/dsl/loader.go rename to sast-engine/dsl/loader.go index a84d84bb..c314e5da 100644 --- a/sourcecode-parser/dsl/loader.go +++ b/sast-engine/dsl/loader.go @@ -10,7 +10,7 @@ import ( "strings" "time" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" ) // RuleLoader loads Python DSL rules and executes them. diff --git a/sourcecode-parser/dsl/loader_test.go b/sast-engine/dsl/loader_test.go similarity index 98% rename from sourcecode-parser/dsl/loader_test.go rename to sast-engine/dsl/loader_test.go index 35da14bc..c9bf5091 100644 --- a/sourcecode-parser/dsl/loader_test.go +++ b/sast-engine/dsl/loader_test.go @@ -5,7 +5,7 @@ import ( "path/filepath" "testing" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/sourcecode-parser/dsl/variable_matcher.go b/sast-engine/dsl/variable_matcher.go similarity index 96% rename from sourcecode-parser/dsl/variable_matcher.go rename to sast-engine/dsl/variable_matcher.go index ba4b4e3e..2d3e3bd0 100644 --- a/sourcecode-parser/dsl/variable_matcher.go +++ b/sast-engine/dsl/variable_matcher.go @@ -3,7 +3,7 @@ package dsl import ( "strings" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" ) // VariableMatcherExecutor executes variable_matcher IR. diff --git a/sourcecode-parser/dsl/variable_matcher_test.go b/sast-engine/dsl/variable_matcher_test.go similarity index 96% rename from sourcecode-parser/dsl/variable_matcher_test.go rename to sast-engine/dsl/variable_matcher_test.go index 187f0412..f9704e09 100644 --- a/sourcecode-parser/dsl/variable_matcher_test.go +++ b/sast-engine/dsl/variable_matcher_test.go @@ -3,7 +3,7 @@ package dsl import ( "testing" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" "github.com/stretchr/testify/assert" ) diff --git a/sourcecode-parser/go.mod b/sast-engine/go.mod similarity index 90% rename from sourcecode-parser/go.mod rename to sast-engine/go.mod index ef45e169..5ff27ef9 100644 --- a/sourcecode-parser/go.mod +++ b/sast-engine/go.mod @@ -1,4 +1,4 @@ -module github.com/shivasurya/code-pathfinder/sourcecode-parser +module github.com/shivasurya/code-pathfinder/sast-engine go 1.25.3 diff --git a/sourcecode-parser/go.sum b/sast-engine/go.sum similarity index 100% rename from sourcecode-parser/go.sum rename to sast-engine/go.sum diff --git a/sourcecode-parser/go.work b/sast-engine/go.work similarity index 100% rename from sourcecode-parser/go.work rename to sast-engine/go.work diff --git a/sourcecode-parser/go.work.sum b/sast-engine/go.work.sum similarity index 100% rename from sourcecode-parser/go.work.sum rename to sast-engine/go.work.sum diff --git a/sourcecode-parser/gradle.properties b/sast-engine/gradle.properties similarity index 100% rename from sourcecode-parser/gradle.properties rename to sast-engine/gradle.properties diff --git a/sourcecode-parser/graph/callgraph/analysis/taint/analyzer.go b/sast-engine/graph/callgraph/analysis/taint/analyzer.go similarity index 99% rename from sourcecode-parser/graph/callgraph/analysis/taint/analyzer.go rename to sast-engine/graph/callgraph/analysis/taint/analyzer.go index e35ac105..a591050c 100644 --- a/sourcecode-parser/graph/callgraph/analysis/taint/analyzer.go +++ b/sast-engine/graph/callgraph/analysis/taint/analyzer.go @@ -3,7 +3,7 @@ package taint import ( "strings" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" ) // variableTaintInfo tracks taint status for a variable (internal type). diff --git a/sourcecode-parser/graph/callgraph/analysis/taint/analyzer_test.go b/sast-engine/graph/callgraph/analysis/taint/analyzer_test.go similarity index 99% rename from sourcecode-parser/graph/callgraph/analysis/taint/analyzer_test.go rename to sast-engine/graph/callgraph/analysis/taint/analyzer_test.go index 66e0ec77..0c80b8c8 100644 --- a/sourcecode-parser/graph/callgraph/analysis/taint/analyzer_test.go +++ b/sast-engine/graph/callgraph/analysis/taint/analyzer_test.go @@ -3,7 +3,7 @@ package taint import ( "testing" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" "github.com/stretchr/testify/assert" ) diff --git a/sourcecode-parser/graph/callgraph/analysis/taint/doc.go b/sast-engine/graph/callgraph/analysis/taint/doc.go similarity index 100% rename from sourcecode-parser/graph/callgraph/analysis/taint/doc.go rename to sast-engine/graph/callgraph/analysis/taint/doc.go diff --git a/sourcecode-parser/graph/callgraph/benchmark_test.go b/sast-engine/graph/callgraph/benchmark_test.go similarity index 96% rename from sourcecode-parser/graph/callgraph/benchmark_test.go rename to sast-engine/graph/callgraph/benchmark_test.go index 33799715..474cb935 100644 --- a/sourcecode-parser/graph/callgraph/benchmark_test.go +++ b/sast-engine/graph/callgraph/benchmark_test.go @@ -4,11 +4,11 @@ import ( "os" "testing" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/registry" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/resolution" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/output" + "github.com/shivasurya/code-pathfinder/sast-engine/graph" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/registry" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/resolution" + "github.com/shivasurya/code-pathfinder/sast-engine/output" ) // Benchmark project paths diff --git a/sourcecode-parser/graph/callgraph/builder/builder.go b/sast-engine/graph/callgraph/builder/builder.go similarity index 98% rename from sourcecode-parser/graph/callgraph/builder/builder.go rename to sast-engine/graph/callgraph/builder/builder.go index a1ae679b..8c4f08a0 100644 --- a/sourcecode-parser/graph/callgraph/builder/builder.go +++ b/sast-engine/graph/callgraph/builder/builder.go @@ -4,12 +4,12 @@ import ( "path/filepath" "strings" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/extraction" - cgregistry "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/registry" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/resolution" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/output" + "github.com/shivasurya/code-pathfinder/sast-engine/graph" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/extraction" + cgregistry "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/registry" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/resolution" + "github.com/shivasurya/code-pathfinder/sast-engine/output" ) // BuildCallGraph constructs the complete call graph for a Python project. diff --git a/sourcecode-parser/graph/callgraph/builder/builder_test.go b/sast-engine/graph/callgraph/builder/builder_test.go similarity index 95% rename from sourcecode-parser/graph/callgraph/builder/builder_test.go rename to sast-engine/graph/callgraph/builder/builder_test.go index 94cd6e5a..0f3b106a 100644 --- a/sourcecode-parser/graph/callgraph/builder/builder_test.go +++ b/sast-engine/graph/callgraph/builder/builder_test.go @@ -5,10 +5,10 @@ import ( "path/filepath" "testing" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/registry" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/output" + "github.com/shivasurya/code-pathfinder/sast-engine/graph" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/registry" + "github.com/shivasurya/code-pathfinder/sast-engine/output" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/sourcecode-parser/graph/callgraph/builder/cache.go b/sast-engine/graph/callgraph/builder/cache.go similarity index 93% rename from sourcecode-parser/graph/callgraph/builder/cache.go rename to sast-engine/graph/callgraph/builder/cache.go index 37aafba7..b2723150 100644 --- a/sourcecode-parser/graph/callgraph/builder/cache.go +++ b/sast-engine/graph/callgraph/builder/cache.go @@ -3,8 +3,8 @@ package builder import ( "sync" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/resolution" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/resolution" ) // ImportMapCache provides thread-safe caching of ImportMap instances. diff --git a/sourcecode-parser/graph/callgraph/builder/cache_test.go b/sast-engine/graph/callgraph/builder/cache_test.go similarity index 98% rename from sourcecode-parser/graph/callgraph/builder/cache_test.go rename to sast-engine/graph/callgraph/builder/cache_test.go index 1aea3352..8bc948e8 100644 --- a/sourcecode-parser/graph/callgraph/builder/cache_test.go +++ b/sast-engine/graph/callgraph/builder/cache_test.go @@ -4,7 +4,7 @@ import ( "sync" "testing" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/sourcecode-parser/graph/callgraph/builder/doc.go b/sast-engine/graph/callgraph/builder/doc.go similarity index 100% rename from sourcecode-parser/graph/callgraph/builder/doc.go rename to sast-engine/graph/callgraph/builder/doc.go diff --git a/sourcecode-parser/graph/callgraph/builder/helpers.go b/sast-engine/graph/callgraph/builder/helpers.go similarity index 100% rename from sourcecode-parser/graph/callgraph/builder/helpers.go rename to sast-engine/graph/callgraph/builder/helpers.go diff --git a/sourcecode-parser/graph/callgraph/builder/helpers_test.go b/sast-engine/graph/callgraph/builder/helpers_test.go similarity index 96% rename from sourcecode-parser/graph/callgraph/builder/helpers_test.go rename to sast-engine/graph/callgraph/builder/helpers_test.go index 5a5609fb..d4879a7b 100644 --- a/sourcecode-parser/graph/callgraph/builder/helpers_test.go +++ b/sast-engine/graph/callgraph/builder/helpers_test.go @@ -5,7 +5,7 @@ import ( "path/filepath" "testing" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/extraction" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/extraction" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/sourcecode-parser/graph/callgraph/builder/integration.go b/sast-engine/graph/callgraph/builder/integration.go similarity index 83% rename from sourcecode-parser/graph/callgraph/builder/integration.go rename to sast-engine/graph/callgraph/builder/integration.go index 3010854b..b9ac4720 100644 --- a/sourcecode-parser/graph/callgraph/builder/integration.go +++ b/sast-engine/graph/callgraph/builder/integration.go @@ -3,10 +3,10 @@ package builder import ( "time" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/registry" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/output" + "github.com/shivasurya/code-pathfinder/sast-engine/graph" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/registry" + "github.com/shivasurya/code-pathfinder/sast-engine/output" ) // BuildCallGraphFromPath is a convenience function that builds a call graph diff --git a/sourcecode-parser/graph/callgraph/builder/integration_test.go b/sast-engine/graph/callgraph/builder/integration_test.go similarity index 95% rename from sourcecode-parser/graph/callgraph/builder/integration_test.go rename to sast-engine/graph/callgraph/builder/integration_test.go index 47ac52c8..35630cae 100644 --- a/sourcecode-parser/graph/callgraph/builder/integration_test.go +++ b/sast-engine/graph/callgraph/builder/integration_test.go @@ -5,8 +5,8 @@ import ( "path/filepath" "testing" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/output" + "github.com/shivasurya/code-pathfinder/sast-engine/graph" + "github.com/shivasurya/code-pathfinder/sast-engine/output" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/sourcecode-parser/graph/callgraph/builder/taint.go b/sast-engine/graph/callgraph/builder/taint.go similarity index 89% rename from sourcecode-parser/graph/callgraph/builder/taint.go rename to sast-engine/graph/callgraph/builder/taint.go index 1fb5a3be..8177842f 100644 --- a/sourcecode-parser/graph/callgraph/builder/taint.go +++ b/sast-engine/graph/callgraph/builder/taint.go @@ -3,10 +3,10 @@ package builder import ( "log" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/analysis/taint" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/extraction" + "github.com/shivasurya/code-pathfinder/sast-engine/graph" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/analysis/taint" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/extraction" ) // GenerateTaintSummaries analyzes all Python functions for taint flows. diff --git a/sourcecode-parser/graph/callgraph/builder/taint_test.go b/sast-engine/graph/callgraph/builder/taint_test.go similarity index 91% rename from sourcecode-parser/graph/callgraph/builder/taint_test.go rename to sast-engine/graph/callgraph/builder/taint_test.go index f04143ea..c159da14 100644 --- a/sourcecode-parser/graph/callgraph/builder/taint_test.go +++ b/sast-engine/graph/callgraph/builder/taint_test.go @@ -5,10 +5,10 @@ import ( "path/filepath" "testing" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/registry" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/output" + "github.com/shivasurya/code-pathfinder/sast-engine/graph" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/registry" + "github.com/shivasurya/code-pathfinder/sast-engine/output" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/sourcecode-parser/graph/callgraph/builder_framework_test.go b/sast-engine/graph/callgraph/builder_framework_test.go similarity index 95% rename from sourcecode-parser/graph/callgraph/builder_framework_test.go rename to sast-engine/graph/callgraph/builder_framework_test.go index 832cc6da..e6845b65 100644 --- a/sourcecode-parser/graph/callgraph/builder_framework_test.go +++ b/sast-engine/graph/callgraph/builder_framework_test.go @@ -5,10 +5,10 @@ import ( "path/filepath" "testing" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/builder" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/registry" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/output" + "github.com/shivasurya/code-pathfinder/sast-engine/graph" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/builder" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/registry" + "github.com/shivasurya/code-pathfinder/sast-engine/output" "github.com/stretchr/testify/assert" ) diff --git a/sourcecode-parser/graph/callgraph/builder_integration_test.go b/sast-engine/graph/callgraph/builder_integration_test.go similarity index 86% rename from sourcecode-parser/graph/callgraph/builder_integration_test.go rename to sast-engine/graph/callgraph/builder_integration_test.go index 57ce8ce9..da734f37 100644 --- a/sourcecode-parser/graph/callgraph/builder_integration_test.go +++ b/sast-engine/graph/callgraph/builder_integration_test.go @@ -5,10 +5,10 @@ import ( "path/filepath" "testing" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/builder" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/registry" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/output" + "github.com/shivasurya/code-pathfinder/sast-engine/graph" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/builder" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/registry" + "github.com/shivasurya/code-pathfinder/sast-engine/output" "github.com/stretchr/testify/assert" ) diff --git a/sourcecode-parser/graph/callgraph/cfg/cfg.go b/sast-engine/graph/callgraph/cfg/cfg.go similarity index 99% rename from sourcecode-parser/graph/callgraph/cfg/cfg.go rename to sast-engine/graph/callgraph/cfg/cfg.go index b56fee42..bd52611b 100644 --- a/sourcecode-parser/graph/callgraph/cfg/cfg.go +++ b/sast-engine/graph/callgraph/cfg/cfg.go @@ -1,7 +1,7 @@ package cfg import ( - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" ) // BlockType represents the type of basic block in a control flow graph. diff --git a/sourcecode-parser/graph/callgraph/cfg/cfg_test.go b/sast-engine/graph/callgraph/cfg/cfg_test.go similarity index 99% rename from sourcecode-parser/graph/callgraph/cfg/cfg_test.go rename to sast-engine/graph/callgraph/cfg/cfg_test.go index 50d19470..2cb06d7a 100644 --- a/sourcecode-parser/graph/callgraph/cfg/cfg_test.go +++ b/sast-engine/graph/callgraph/cfg/cfg_test.go @@ -3,7 +3,7 @@ package cfg import ( "testing" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/sourcecode-parser/graph/callgraph/cfg/doc.go b/sast-engine/graph/callgraph/cfg/doc.go similarity index 100% rename from sourcecode-parser/graph/callgraph/cfg/doc.go rename to sast-engine/graph/callgraph/cfg/doc.go diff --git a/sourcecode-parser/graph/callgraph/core/attribute_types.go b/sast-engine/graph/callgraph/core/attribute_types.go similarity index 95% rename from sourcecode-parser/graph/callgraph/core/attribute_types.go rename to sast-engine/graph/callgraph/core/attribute_types.go index 02edadaa..6e8af051 100644 --- a/sourcecode-parser/graph/callgraph/core/attribute_types.go +++ b/sast-engine/graph/callgraph/core/attribute_types.go @@ -1,7 +1,7 @@ package core import ( - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph" + "github.com/shivasurya/code-pathfinder/sast-engine/graph" ) // TypeInfo represents inferred type information for a variable or expression. diff --git a/sourcecode-parser/graph/callgraph/core/doc.go b/sast-engine/graph/callgraph/core/doc.go similarity index 88% rename from sourcecode-parser/graph/callgraph/core/doc.go rename to sast-engine/graph/callgraph/core/doc.go index 149243af..6113de20 100644 --- a/sourcecode-parser/graph/callgraph/core/doc.go +++ b/sast-engine/graph/callgraph/core/doc.go @@ -17,7 +17,7 @@ // // # Usage // -// import "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" +// import "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" // // cg := core.NewCallGraph() // cg.AddEdge("main.foo", "main.bar") diff --git a/sourcecode-parser/graph/callgraph/core/frameworks.go b/sast-engine/graph/callgraph/core/frameworks.go similarity index 100% rename from sourcecode-parser/graph/callgraph/core/frameworks.go rename to sast-engine/graph/callgraph/core/frameworks.go diff --git a/sourcecode-parser/graph/callgraph/core/frameworks_test.go b/sast-engine/graph/callgraph/core/frameworks_test.go similarity index 100% rename from sourcecode-parser/graph/callgraph/core/frameworks_test.go rename to sast-engine/graph/callgraph/core/frameworks_test.go diff --git a/sourcecode-parser/graph/callgraph/core/statement.go b/sast-engine/graph/callgraph/core/statement.go similarity index 100% rename from sourcecode-parser/graph/callgraph/core/statement.go rename to sast-engine/graph/callgraph/core/statement.go diff --git a/sourcecode-parser/graph/callgraph/core/statement_test.go b/sast-engine/graph/callgraph/core/statement_test.go similarity index 100% rename from sourcecode-parser/graph/callgraph/core/statement_test.go rename to sast-engine/graph/callgraph/core/statement_test.go diff --git a/sourcecode-parser/graph/callgraph/core/stdlib_types.go b/sast-engine/graph/callgraph/core/stdlib_types.go similarity index 100% rename from sourcecode-parser/graph/callgraph/core/stdlib_types.go rename to sast-engine/graph/callgraph/core/stdlib_types.go diff --git a/sourcecode-parser/graph/callgraph/core/stdlib_types_test.go b/sast-engine/graph/callgraph/core/stdlib_types_test.go similarity index 100% rename from sourcecode-parser/graph/callgraph/core/stdlib_types_test.go rename to sast-engine/graph/callgraph/core/stdlib_types_test.go diff --git a/sourcecode-parser/graph/callgraph/core/taint_summary.go b/sast-engine/graph/callgraph/core/taint_summary.go similarity index 100% rename from sourcecode-parser/graph/callgraph/core/taint_summary.go rename to sast-engine/graph/callgraph/core/taint_summary.go diff --git a/sourcecode-parser/graph/callgraph/core/taint_summary_test.go b/sast-engine/graph/callgraph/core/taint_summary_test.go similarity index 100% rename from sourcecode-parser/graph/callgraph/core/taint_summary_test.go rename to sast-engine/graph/callgraph/core/taint_summary_test.go diff --git a/sourcecode-parser/graph/callgraph/core/types.go b/sast-engine/graph/callgraph/core/types.go similarity index 99% rename from sourcecode-parser/graph/callgraph/core/types.go rename to sast-engine/graph/callgraph/core/types.go index 769c3001..b7b6f009 100644 --- a/sourcecode-parser/graph/callgraph/core/types.go +++ b/sast-engine/graph/callgraph/core/types.go @@ -1,7 +1,7 @@ package core import ( - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph" + "github.com/shivasurya/code-pathfinder/sast-engine/graph" ) // Location represents a source code location for tracking call sites. diff --git a/sourcecode-parser/graph/callgraph/core/types_test.go b/sast-engine/graph/callgraph/core/types_test.go similarity index 99% rename from sourcecode-parser/graph/callgraph/core/types_test.go rename to sast-engine/graph/callgraph/core/types_test.go index 9e6c8bdc..91db605a 100644 --- a/sourcecode-parser/graph/callgraph/core/types_test.go +++ b/sast-engine/graph/callgraph/core/types_test.go @@ -3,7 +3,7 @@ package core import ( "testing" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph" + "github.com/shivasurya/code-pathfinder/sast-engine/graph" "github.com/stretchr/testify/assert" ) diff --git a/sourcecode-parser/graph/callgraph/doc.go b/sast-engine/graph/callgraph/doc.go similarity index 69% rename from sourcecode-parser/graph/callgraph/doc.go rename to sast-engine/graph/callgraph/doc.go index 169f7987..1d5204d8 100644 --- a/sourcecode-parser/graph/callgraph/doc.go +++ b/sast-engine/graph/callgraph/doc.go @@ -6,7 +6,7 @@ // // The core package contains fundamental data structures: // -// import "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" +// import "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" // // cg := core.NewCallGraph() // cg.AddEdge("main.foo", "main.bar") @@ -15,7 +15,7 @@ // // The registry package manages module, builtin, and stdlib registries: // -// import "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/registry" +// import "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/registry" // // moduleRegistry := registry.BuildModuleRegistry("/path/to/project") // builtins := registry.NewBuiltinRegistry() @@ -24,7 +24,7 @@ // // The resolution package handles import, type, and call resolution: // -// import "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/resolution" +// import "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/resolution" // // engine := resolution.NewTypeInferenceEngine(moduleRegistry) // typeInfo := engine.InferType(expr, scope) @@ -33,7 +33,7 @@ // // The extraction package extracts code elements from AST: // -// import "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/extraction" +// import "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/extraction" // // statements := extraction.ExtractStatements(sourceCode, functionName) // @@ -41,7 +41,7 @@ // // The patterns package detects security and framework patterns: // -// import "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/patterns" +// import "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/patterns" // // registry := patterns.NewPatternRegistry() // matched := patterns.MatchPattern(pattern, funcFQN, statements) @@ -50,7 +50,7 @@ // // The analysis package provides taint analysis: // -// import "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/analysis/taint" +// import "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/analysis/taint" // // summary := taint.AnalyzeIntraProceduralTaint(funcFQN, statements, ...) // @@ -58,7 +58,7 @@ // // The cfg package provides control flow graph construction: // -// import "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/cfg" +// import "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/cfg" // // controlFlow := cfg.BuildCFG(statements) // @@ -66,7 +66,7 @@ // // The builder package orchestrates call graph construction: // -// import "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/builder" +// import "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/builder" // // callGraph, err := builder.BuildCallGraphFromPath(codeGraph, "/path/to/project") // @@ -75,8 +75,8 @@ // To build a call graph for a Python project: // // import ( -// "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph" -// "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph" +// "github.com/shivasurya/code-pathfinder/sast-engine/graph" +// "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph" // ) // // // Parse project diff --git a/sourcecode-parser/graph/callgraph/extraction/attributes.go b/sast-engine/graph/callgraph/extraction/attributes.go similarity index 97% rename from sourcecode-parser/graph/callgraph/extraction/attributes.go rename to sast-engine/graph/callgraph/extraction/attributes.go index feacb3da..2f34ff2e 100644 --- a/sourcecode-parser/graph/callgraph/extraction/attributes.go +++ b/sast-engine/graph/callgraph/extraction/attributes.go @@ -6,10 +6,10 @@ import ( sitter "github.com/smacker/go-tree-sitter" "github.com/smacker/go-tree-sitter/python" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/registry" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/resolution" + "github.com/shivasurya/code-pathfinder/sast-engine/graph" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/registry" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/resolution" ) // ExtractClassAttributes extracts all class attributes from a Python file diff --git a/sourcecode-parser/graph/callgraph/extraction/attributes_coverage_test.go b/sast-engine/graph/callgraph/extraction/attributes_coverage_test.go similarity index 98% rename from sourcecode-parser/graph/callgraph/extraction/attributes_coverage_test.go rename to sast-engine/graph/callgraph/extraction/attributes_coverage_test.go index ae3c08d4..10d6de5b 100644 --- a/sourcecode-parser/graph/callgraph/extraction/attributes_coverage_test.go +++ b/sast-engine/graph/callgraph/extraction/attributes_coverage_test.go @@ -3,10 +3,10 @@ package extraction import ( "testing" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/registry" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/resolution" + "github.com/shivasurya/code-pathfinder/sast-engine/graph" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/registry" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/resolution" sitter "github.com/smacker/go-tree-sitter" "github.com/smacker/go-tree-sitter/python" "github.com/stretchr/testify/assert" diff --git a/sourcecode-parser/graph/callgraph/extraction/attributes_simple_test.go b/sast-engine/graph/callgraph/extraction/attributes_simple_test.go similarity index 100% rename from sourcecode-parser/graph/callgraph/extraction/attributes_simple_test.go rename to sast-engine/graph/callgraph/extraction/attributes_simple_test.go diff --git a/sourcecode-parser/graph/callgraph/extraction/doc.go b/sast-engine/graph/callgraph/extraction/doc.go similarity index 100% rename from sourcecode-parser/graph/callgraph/extraction/doc.go rename to sast-engine/graph/callgraph/extraction/doc.go diff --git a/sourcecode-parser/graph/callgraph/extraction/statements.go b/sast-engine/graph/callgraph/extraction/statements.go similarity index 99% rename from sourcecode-parser/graph/callgraph/extraction/statements.go rename to sast-engine/graph/callgraph/extraction/statements.go index 28703d75..0dd421d7 100644 --- a/sourcecode-parser/graph/callgraph/extraction/statements.go +++ b/sast-engine/graph/callgraph/extraction/statements.go @@ -6,7 +6,7 @@ import ( sitter "github.com/smacker/go-tree-sitter" "github.com/smacker/go-tree-sitter/python" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" ) // ExtractStatements extracts all statements from a Python function body. diff --git a/sourcecode-parser/graph/callgraph/extraction/statements_test.go b/sast-engine/graph/callgraph/extraction/statements_test.go similarity index 99% rename from sourcecode-parser/graph/callgraph/extraction/statements_test.go rename to sast-engine/graph/callgraph/extraction/statements_test.go index 63ece1ac..b8ae2767 100644 --- a/sourcecode-parser/graph/callgraph/extraction/statements_test.go +++ b/sast-engine/graph/callgraph/extraction/statements_test.go @@ -1,7 +1,7 @@ package extraction import ( - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" "context" "testing" diff --git a/sourcecode-parser/graph/callgraph/extraction/variables.go b/sast-engine/graph/callgraph/extraction/variables.go similarity index 97% rename from sourcecode-parser/graph/callgraph/extraction/variables.go rename to sast-engine/graph/callgraph/extraction/variables.go index 2028b8d1..1b6b1078 100644 --- a/sourcecode-parser/graph/callgraph/extraction/variables.go +++ b/sast-engine/graph/callgraph/extraction/variables.go @@ -6,9 +6,9 @@ import ( sitter "github.com/smacker/go-tree-sitter" "github.com/smacker/go-tree-sitter/python" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/registry" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/resolution" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/registry" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/resolution" ) // ExtractVariableAssignments extracts variable assignments from a Python file diff --git a/sourcecode-parser/graph/callgraph/extraction/variables_test.go b/sast-engine/graph/callgraph/extraction/variables_test.go similarity index 98% rename from sourcecode-parser/graph/callgraph/extraction/variables_test.go rename to sast-engine/graph/callgraph/extraction/variables_test.go index 340bc942..c4fa7176 100644 --- a/sourcecode-parser/graph/callgraph/extraction/variables_test.go +++ b/sast-engine/graph/callgraph/extraction/variables_test.go @@ -5,8 +5,8 @@ import ( "path/filepath" "testing" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/registry" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/resolution" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/registry" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/resolution" "github.com/stretchr/testify/assert" ) diff --git a/sourcecode-parser/graph/callgraph/integration.go b/sast-engine/graph/callgraph/integration.go similarity index 92% rename from sourcecode-parser/graph/callgraph/integration.go rename to sast-engine/graph/callgraph/integration.go index fa54bb44..6ed8571c 100644 --- a/sourcecode-parser/graph/callgraph/integration.go +++ b/sast-engine/graph/callgraph/integration.go @@ -5,12 +5,12 @@ import ( "os" "strings" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/builder" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/patterns" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/registry" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/output" + "github.com/shivasurya/code-pathfinder/sast-engine/graph" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/builder" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/patterns" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/registry" + "github.com/shivasurya/code-pathfinder/sast-engine/output" ) // SecurityMatch represents a detected security vulnerability. diff --git a/sourcecode-parser/graph/callgraph/integration_test.go b/sast-engine/graph/callgraph/integration_test.go similarity index 98% rename from sourcecode-parser/graph/callgraph/integration_test.go rename to sast-engine/graph/callgraph/integration_test.go index 6065c1dd..31972ea2 100644 --- a/sourcecode-parser/graph/callgraph/integration_test.go +++ b/sast-engine/graph/callgraph/integration_test.go @@ -5,8 +5,8 @@ import ( "path/filepath" "testing" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/output" + "github.com/shivasurya/code-pathfinder/sast-engine/graph" + "github.com/shivasurya/code-pathfinder/sast-engine/output" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/sourcecode-parser/graph/callgraph/patterns/detector.go b/sast-engine/graph/callgraph/patterns/detector.go similarity index 98% rename from sourcecode-parser/graph/callgraph/patterns/detector.go rename to sast-engine/graph/callgraph/patterns/detector.go index 5be1bf22..ed7135e2 100644 --- a/sourcecode-parser/graph/callgraph/patterns/detector.go +++ b/sast-engine/graph/callgraph/patterns/detector.go @@ -4,9 +4,9 @@ import ( "log" "strings" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/analysis/taint" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/extraction" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/analysis/taint" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/extraction" ) // PatternType categorizes security patterns for analysis. diff --git a/sourcecode-parser/graph/callgraph/patterns/detector_test.go b/sast-engine/graph/callgraph/patterns/detector_test.go similarity index 99% rename from sourcecode-parser/graph/callgraph/patterns/detector_test.go rename to sast-engine/graph/callgraph/patterns/detector_test.go index 67d7e854..77d274a0 100644 --- a/sourcecode-parser/graph/callgraph/patterns/detector_test.go +++ b/sast-engine/graph/callgraph/patterns/detector_test.go @@ -5,8 +5,8 @@ import ( "path/filepath" "testing" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/sourcecode-parser/graph/callgraph/patterns/doc.go b/sast-engine/graph/callgraph/patterns/doc.go similarity index 100% rename from sourcecode-parser/graph/callgraph/patterns/doc.go rename to sast-engine/graph/callgraph/patterns/doc.go diff --git a/sourcecode-parser/graph/callgraph/patterns/frameworks.go b/sast-engine/graph/callgraph/patterns/frameworks.go similarity index 94% rename from sourcecode-parser/graph/callgraph/patterns/frameworks.go rename to sast-engine/graph/callgraph/patterns/frameworks.go index d7d5a776..99e7b6c5 100644 --- a/sourcecode-parser/graph/callgraph/patterns/frameworks.go +++ b/sast-engine/graph/callgraph/patterns/frameworks.go @@ -1,7 +1,7 @@ package patterns import ( - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" ) // Framework represents a detected framework. diff --git a/sourcecode-parser/graph/callgraph/patterns/frameworks_test.go b/sast-engine/graph/callgraph/patterns/frameworks_test.go similarity index 98% rename from sourcecode-parser/graph/callgraph/patterns/frameworks_test.go rename to sast-engine/graph/callgraph/patterns/frameworks_test.go index a3da3539..37ff97f9 100644 --- a/sourcecode-parser/graph/callgraph/patterns/frameworks_test.go +++ b/sast-engine/graph/callgraph/patterns/frameworks_test.go @@ -3,7 +3,7 @@ package patterns import ( "testing" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" "github.com/stretchr/testify/assert" ) diff --git a/sourcecode-parser/graph/callgraph/patterns/helpers.go b/sast-engine/graph/callgraph/patterns/helpers.go similarity index 100% rename from sourcecode-parser/graph/callgraph/patterns/helpers.go rename to sast-engine/graph/callgraph/patterns/helpers.go diff --git a/sourcecode-parser/graph/callgraph/patterns/helpers_test.go b/sast-engine/graph/callgraph/patterns/helpers_test.go similarity index 96% rename from sourcecode-parser/graph/callgraph/patterns/helpers_test.go rename to sast-engine/graph/callgraph/patterns/helpers_test.go index 5099ffbf..fe73b20e 100644 --- a/sourcecode-parser/graph/callgraph/patterns/helpers_test.go +++ b/sast-engine/graph/callgraph/patterns/helpers_test.go @@ -5,7 +5,7 @@ import ( "path/filepath" "testing" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/extraction" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/extraction" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/sourcecode-parser/graph/callgraph/registry/attribute.go b/sast-engine/graph/callgraph/registry/attribute.go similarity index 97% rename from sourcecode-parser/graph/callgraph/registry/attribute.go rename to sast-engine/graph/callgraph/registry/attribute.go index eb456c5b..457acae9 100644 --- a/sourcecode-parser/graph/callgraph/registry/attribute.go +++ b/sast-engine/graph/callgraph/registry/attribute.go @@ -3,7 +3,7 @@ package registry import ( "sync" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" ) // AttributeRegistry is the global registry of class attributes diff --git a/sourcecode-parser/graph/callgraph/registry/attribute_test.go b/sast-engine/graph/callgraph/registry/attribute_test.go similarity index 98% rename from sourcecode-parser/graph/callgraph/registry/attribute_test.go rename to sast-engine/graph/callgraph/registry/attribute_test.go index b13201a7..6a943fec 100644 --- a/sourcecode-parser/graph/callgraph/registry/attribute_test.go +++ b/sast-engine/graph/callgraph/registry/attribute_test.go @@ -3,8 +3,8 @@ package registry import ( "testing" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" "github.com/stretchr/testify/assert" ) diff --git a/sourcecode-parser/graph/callgraph/registry/builtin.go b/sast-engine/graph/callgraph/registry/builtin.go similarity index 99% rename from sourcecode-parser/graph/callgraph/registry/builtin.go rename to sast-engine/graph/callgraph/registry/builtin.go index ee85440d..0858e431 100644 --- a/sourcecode-parser/graph/callgraph/registry/builtin.go +++ b/sast-engine/graph/callgraph/registry/builtin.go @@ -3,7 +3,7 @@ package registry import ( "strings" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" ) // BuiltinMethod represents a method available on a builtin type. diff --git a/sourcecode-parser/graph/callgraph/registry/builtin_test.go b/sast-engine/graph/callgraph/registry/builtin_test.go similarity index 100% rename from sourcecode-parser/graph/callgraph/registry/builtin_test.go rename to sast-engine/graph/callgraph/registry/builtin_test.go diff --git a/sourcecode-parser/graph/callgraph/registry/doc.go b/sast-engine/graph/callgraph/registry/doc.go similarity index 100% rename from sourcecode-parser/graph/callgraph/registry/doc.go rename to sast-engine/graph/callgraph/registry/doc.go diff --git a/sourcecode-parser/graph/callgraph/registry/module.go b/sast-engine/graph/callgraph/registry/module.go similarity index 98% rename from sourcecode-parser/graph/callgraph/registry/module.go rename to sast-engine/graph/callgraph/registry/module.go index eb763b0d..f408b1d7 100644 --- a/sourcecode-parser/graph/callgraph/registry/module.go +++ b/sast-engine/graph/callgraph/registry/module.go @@ -5,7 +5,7 @@ import ( "path/filepath" "strings" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" ) // skipDirs lists directory names that should be excluded during module registry building. diff --git a/sourcecode-parser/graph/callgraph/registry/module_test.go b/sast-engine/graph/callgraph/registry/module_test.go similarity index 100% rename from sourcecode-parser/graph/callgraph/registry/module_test.go rename to sast-engine/graph/callgraph/registry/module_test.go diff --git a/sourcecode-parser/graph/callgraph/registry/stdlib_loader.go b/sast-engine/graph/callgraph/registry/stdlib_loader.go similarity index 97% rename from sourcecode-parser/graph/callgraph/registry/stdlib_loader.go rename to sast-engine/graph/callgraph/registry/stdlib_loader.go index bce4b04c..2016dc72 100644 --- a/sourcecode-parser/graph/callgraph/registry/stdlib_loader.go +++ b/sast-engine/graph/callgraph/registry/stdlib_loader.go @@ -9,7 +9,7 @@ import ( "os" "path/filepath" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" ) // StdlibRegistryLoader loads stdlib registries from local filesystem. diff --git a/sourcecode-parser/graph/callgraph/registry/stdlib_loader_test.go b/sast-engine/graph/callgraph/registry/stdlib_loader_test.go similarity index 98% rename from sourcecode-parser/graph/callgraph/registry/stdlib_loader_test.go rename to sast-engine/graph/callgraph/registry/stdlib_loader_test.go index 18e5e53e..67662cd3 100644 --- a/sourcecode-parser/graph/callgraph/registry/stdlib_loader_test.go +++ b/sast-engine/graph/callgraph/registry/stdlib_loader_test.go @@ -6,7 +6,7 @@ import ( "path/filepath" "testing" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/sourcecode-parser/graph/callgraph/registry/stdlib_remote.go b/sast-engine/graph/callgraph/registry/stdlib_remote.go similarity index 98% rename from sourcecode-parser/graph/callgraph/registry/stdlib_remote.go rename to sast-engine/graph/callgraph/registry/stdlib_remote.go index 2a20f82b..bc7d812e 100644 --- a/sourcecode-parser/graph/callgraph/registry/stdlib_remote.go +++ b/sast-engine/graph/callgraph/registry/stdlib_remote.go @@ -12,8 +12,8 @@ import ( "sync" "time" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/output" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/output" ) // StdlibRegistryRemote loads Python stdlib registries from a remote CDN. diff --git a/sourcecode-parser/graph/callgraph/registry/stdlib_remote_test.go b/sast-engine/graph/callgraph/registry/stdlib_remote_test.go similarity index 99% rename from sourcecode-parser/graph/callgraph/registry/stdlib_remote_test.go rename to sast-engine/graph/callgraph/registry/stdlib_remote_test.go index f30a4a0c..38b6f8a2 100644 --- a/sourcecode-parser/graph/callgraph/registry/stdlib_remote_test.go +++ b/sast-engine/graph/callgraph/registry/stdlib_remote_test.go @@ -8,8 +8,8 @@ import ( "testing" "time" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/output" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/output" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/sourcecode-parser/graph/callgraph/resolution/attribute.go b/sast-engine/graph/callgraph/resolution/attribute.go similarity index 98% rename from sourcecode-parser/graph/callgraph/resolution/attribute.go rename to sast-engine/graph/callgraph/resolution/attribute.go index e6492a1d..78a10c32 100644 --- a/sourcecode-parser/graph/callgraph/resolution/attribute.go +++ b/sast-engine/graph/callgraph/resolution/attribute.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/registry" + "github.com/shivasurya/code-pathfinder/sast-engine/graph" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/registry" ) // FailureStats tracks why attribute chain resolution fails. diff --git a/sourcecode-parser/graph/callgraph/resolution/attribute_test.go b/sast-engine/graph/callgraph/resolution/attribute_test.go similarity index 99% rename from sourcecode-parser/graph/callgraph/resolution/attribute_test.go rename to sast-engine/graph/callgraph/resolution/attribute_test.go index da43f019..0176800b 100644 --- a/sourcecode-parser/graph/callgraph/resolution/attribute_test.go +++ b/sast-engine/graph/callgraph/resolution/attribute_test.go @@ -7,9 +7,9 @@ import ( "strings" "testing" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/registry" + "github.com/shivasurya/code-pathfinder/sast-engine/graph" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/registry" "github.com/stretchr/testify/assert" ) diff --git a/sourcecode-parser/graph/callgraph/resolution/callsites.go b/sast-engine/graph/callgraph/resolution/callsites.go similarity index 99% rename from sourcecode-parser/graph/callgraph/resolution/callsites.go rename to sast-engine/graph/callgraph/resolution/callsites.go index 2d1287a1..1e0c37c6 100644 --- a/sourcecode-parser/graph/callgraph/resolution/callsites.go +++ b/sast-engine/graph/callgraph/resolution/callsites.go @@ -5,7 +5,7 @@ import ( sitter "github.com/smacker/go-tree-sitter" "github.com/smacker/go-tree-sitter/python" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" ) // ExtractCallSites extracts all function/method call sites from a Python file. diff --git a/sourcecode-parser/graph/callgraph/resolution/callsites_test.go b/sast-engine/graph/callgraph/resolution/callsites_test.go similarity index 99% rename from sourcecode-parser/graph/callgraph/resolution/callsites_test.go rename to sast-engine/graph/callgraph/resolution/callsites_test.go index 061df940..df5e2e23 100644 --- a/sourcecode-parser/graph/callgraph/resolution/callsites_test.go +++ b/sast-engine/graph/callgraph/resolution/callsites_test.go @@ -5,7 +5,7 @@ import ( "path/filepath" "testing" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/sourcecode-parser/graph/callgraph/resolution/chaining.go b/sast-engine/graph/callgraph/resolution/chaining.go similarity index 98% rename from sourcecode-parser/graph/callgraph/resolution/chaining.go rename to sast-engine/graph/callgraph/resolution/chaining.go index a78e7f49..7ed636b1 100644 --- a/sourcecode-parser/graph/callgraph/resolution/chaining.go +++ b/sast-engine/graph/callgraph/resolution/chaining.go @@ -3,9 +3,9 @@ package resolution import ( "strings" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/registry" + "github.com/shivasurya/code-pathfinder/sast-engine/graph" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/registry" ) // ChainStep represents a single step in a method chain. diff --git a/sourcecode-parser/graph/callgraph/resolution/chaining_test.go b/sast-engine/graph/callgraph/resolution/chaining_test.go similarity index 99% rename from sourcecode-parser/graph/callgraph/resolution/chaining_test.go rename to sast-engine/graph/callgraph/resolution/chaining_test.go index f098a187..9931d14c 100644 --- a/sourcecode-parser/graph/callgraph/resolution/chaining_test.go +++ b/sast-engine/graph/callgraph/resolution/chaining_test.go @@ -3,9 +3,9 @@ package resolution import ( "testing" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/registry" + "github.com/shivasurya/code-pathfinder/sast-engine/graph" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/registry" "github.com/stretchr/testify/assert" ) diff --git a/sourcecode-parser/graph/callgraph/resolution/doc.go b/sast-engine/graph/callgraph/resolution/doc.go similarity index 100% rename from sourcecode-parser/graph/callgraph/resolution/doc.go rename to sast-engine/graph/callgraph/resolution/doc.go diff --git a/sourcecode-parser/graph/callgraph/resolution/imports.go b/sast-engine/graph/callgraph/resolution/imports.go similarity index 99% rename from sourcecode-parser/graph/callgraph/resolution/imports.go rename to sast-engine/graph/callgraph/resolution/imports.go index 2560d48e..5528fabf 100644 --- a/sourcecode-parser/graph/callgraph/resolution/imports.go +++ b/sast-engine/graph/callgraph/resolution/imports.go @@ -6,7 +6,7 @@ import ( sitter "github.com/smacker/go-tree-sitter" "github.com/smacker/go-tree-sitter/python" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" ) // ExtractImports extracts all import statements from a Python file and builds an ImportMap. diff --git a/sourcecode-parser/graph/callgraph/resolution/imports_relative_test.go b/sast-engine/graph/callgraph/resolution/imports_relative_test.go similarity index 98% rename from sourcecode-parser/graph/callgraph/resolution/imports_relative_test.go rename to sast-engine/graph/callgraph/resolution/imports_relative_test.go index 5527ac9a..6a7758b1 100644 --- a/sourcecode-parser/graph/callgraph/resolution/imports_relative_test.go +++ b/sast-engine/graph/callgraph/resolution/imports_relative_test.go @@ -5,8 +5,8 @@ import ( "path/filepath" "testing" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/registry" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/registry" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/sourcecode-parser/graph/callgraph/resolution/imports_test.go b/sast-engine/graph/callgraph/resolution/imports_test.go similarity index 99% rename from sourcecode-parser/graph/callgraph/resolution/imports_test.go rename to sast-engine/graph/callgraph/resolution/imports_test.go index 374d5f87..860aaa5a 100644 --- a/sourcecode-parser/graph/callgraph/resolution/imports_test.go +++ b/sast-engine/graph/callgraph/resolution/imports_test.go @@ -5,7 +5,7 @@ import ( "path/filepath" "testing" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/sourcecode-parser/graph/callgraph/resolution/inference.go b/sast-engine/graph/callgraph/resolution/inference.go similarity index 96% rename from sourcecode-parser/graph/callgraph/resolution/inference.go rename to sast-engine/graph/callgraph/resolution/inference.go index 45bd9ef4..f9c1dedc 100644 --- a/sourcecode-parser/graph/callgraph/resolution/inference.go +++ b/sast-engine/graph/callgraph/resolution/inference.go @@ -3,8 +3,8 @@ package resolution import ( "strings" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/registry" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/registry" ) // TypeInferenceEngine manages type inference across the codebase. diff --git a/sourcecode-parser/graph/callgraph/resolution/inference_test.go b/sast-engine/graph/callgraph/resolution/inference_test.go similarity index 99% rename from sourcecode-parser/graph/callgraph/resolution/inference_test.go rename to sast-engine/graph/callgraph/resolution/inference_test.go index 3b0be84c..63d15d87 100644 --- a/sourcecode-parser/graph/callgraph/resolution/inference_test.go +++ b/sast-engine/graph/callgraph/resolution/inference_test.go @@ -3,8 +3,8 @@ package resolution import ( "testing" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/registry" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/registry" "github.com/stretchr/testify/assert" ) diff --git a/sourcecode-parser/graph/callgraph/resolution/orm.go b/sast-engine/graph/callgraph/resolution/orm.go similarity index 98% rename from sourcecode-parser/graph/callgraph/resolution/orm.go rename to sast-engine/graph/callgraph/resolution/orm.go index a72e68aa..48293045 100644 --- a/sourcecode-parser/graph/callgraph/resolution/orm.go +++ b/sast-engine/graph/callgraph/resolution/orm.go @@ -3,8 +3,8 @@ package resolution import ( "strings" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" ) // ORMPattern represents a recognized ORM pattern (e.g., Django ORM, SQLAlchemy). diff --git a/sourcecode-parser/graph/callgraph/resolution/orm_test.go b/sast-engine/graph/callgraph/resolution/orm_test.go similarity index 98% rename from sourcecode-parser/graph/callgraph/resolution/orm_test.go rename to sast-engine/graph/callgraph/resolution/orm_test.go index 4877a844..8e7fa0cf 100644 --- a/sourcecode-parser/graph/callgraph/resolution/orm_test.go +++ b/sast-engine/graph/callgraph/resolution/orm_test.go @@ -3,8 +3,8 @@ package resolution import ( "testing" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" "github.com/stretchr/testify/assert" ) diff --git a/sourcecode-parser/graph/callgraph/resolution/return_type.go b/sast-engine/graph/callgraph/resolution/return_type.go similarity index 98% rename from sourcecode-parser/graph/callgraph/resolution/return_type.go rename to sast-engine/graph/callgraph/resolution/return_type.go index c2ff285e..07df736b 100644 --- a/sourcecode-parser/graph/callgraph/resolution/return_type.go +++ b/sast-engine/graph/callgraph/resolution/return_type.go @@ -6,8 +6,8 @@ import ( sitter "github.com/smacker/go-tree-sitter" "github.com/smacker/go-tree-sitter/python" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/registry" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/registry" ) // ReturnStatement represents a return statement in a function. diff --git a/sourcecode-parser/graph/callgraph/resolution/return_type_class_test.go b/sast-engine/graph/callgraph/resolution/return_type_class_test.go similarity index 96% rename from sourcecode-parser/graph/callgraph/resolution/return_type_class_test.go rename to sast-engine/graph/callgraph/resolution/return_type_class_test.go index 0d276604..26455a47 100644 --- a/sourcecode-parser/graph/callgraph/resolution/return_type_class_test.go +++ b/sast-engine/graph/callgraph/resolution/return_type_class_test.go @@ -4,8 +4,8 @@ import ( "context" "testing" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/registry" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/registry" sitter "github.com/smacker/go-tree-sitter" "github.com/smacker/go-tree-sitter/python" "github.com/stretchr/testify/assert" diff --git a/sourcecode-parser/graph/callgraph/resolution/return_type_test.go b/sast-engine/graph/callgraph/resolution/return_type_test.go similarity index 97% rename from sourcecode-parser/graph/callgraph/resolution/return_type_test.go rename to sast-engine/graph/callgraph/resolution/return_type_test.go index 6f5a7a14..72305729 100644 --- a/sourcecode-parser/graph/callgraph/resolution/return_type_test.go +++ b/sast-engine/graph/callgraph/resolution/return_type_test.go @@ -3,8 +3,8 @@ package resolution import ( "testing" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/registry" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/registry" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/sourcecode-parser/graph/callgraph/resolution/types.go b/sast-engine/graph/callgraph/resolution/types.go similarity index 96% rename from sourcecode-parser/graph/callgraph/resolution/types.go rename to sast-engine/graph/callgraph/resolution/types.go index 2b6cbad9..b23e04eb 100644 --- a/sourcecode-parser/graph/callgraph/resolution/types.go +++ b/sast-engine/graph/callgraph/resolution/types.go @@ -1,7 +1,7 @@ package resolution import ( - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" ) // Location represents a source code location. diff --git a/sourcecode-parser/graph/callgraph/resolution/types_test.go b/sast-engine/graph/callgraph/resolution/types_test.go similarity index 97% rename from sourcecode-parser/graph/callgraph/resolution/types_test.go rename to sast-engine/graph/callgraph/resolution/types_test.go index 64065d63..b9b50bf4 100644 --- a/sourcecode-parser/graph/callgraph/resolution/types_test.go +++ b/sast-engine/graph/callgraph/resolution/types_test.go @@ -3,7 +3,7 @@ package resolution import ( "testing" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" "github.com/stretchr/testify/assert" ) diff --git a/sourcecode-parser/graph/callgraph/stdlib_registry_regression_test.go b/sast-engine/graph/callgraph/stdlib_registry_regression_test.go similarity index 97% rename from sourcecode-parser/graph/callgraph/stdlib_registry_regression_test.go rename to sast-engine/graph/callgraph/stdlib_registry_regression_test.go index b74e958f..a58dc992 100644 --- a/sourcecode-parser/graph/callgraph/stdlib_registry_regression_test.go +++ b/sast-engine/graph/callgraph/stdlib_registry_regression_test.go @@ -5,9 +5,9 @@ import ( "path/filepath" "testing" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/output" + "github.com/shivasurya/code-pathfinder/sast-engine/graph" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/output" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/sourcecode-parser/graph/graph.go b/sast-engine/graph/graph.go similarity index 100% rename from sourcecode-parser/graph/graph.go rename to sast-engine/graph/graph.go diff --git a/sourcecode-parser/graph/graph_test.go b/sast-engine/graph/graph_test.go similarity index 99% rename from sourcecode-parser/graph/graph_test.go rename to sast-engine/graph/graph_test.go index b2834e8e..46fa0788 100644 --- a/sourcecode-parser/graph/graph_test.go +++ b/sast-engine/graph/graph_test.go @@ -3,7 +3,7 @@ package graph import ( "context" "fmt" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/model" + "github.com/shivasurya/code-pathfinder/sast-engine/model" sitter "github.com/smacker/go-tree-sitter" "github.com/smacker/go-tree-sitter/java" "github.com/smacker/go-tree-sitter/python" diff --git a/sourcecode-parser/graph/initialize.go b/sast-engine/graph/initialize.go similarity index 100% rename from sourcecode-parser/graph/initialize.go rename to sast-engine/graph/initialize.go diff --git a/sourcecode-parser/graph/initialize_test.go b/sast-engine/graph/initialize_test.go similarity index 100% rename from sourcecode-parser/graph/initialize_test.go rename to sast-engine/graph/initialize_test.go diff --git a/sourcecode-parser/graph/java/parse_statement.go b/sast-engine/graph/java/parse_statement.go similarity index 96% rename from sourcecode-parser/graph/java/parse_statement.go rename to sast-engine/graph/java/parse_statement.go index 5f554e31..936c55de 100644 --- a/sourcecode-parser/graph/java/parse_statement.go +++ b/sast-engine/graph/java/parse_statement.go @@ -1,7 +1,7 @@ package java import ( - "github.com/shivasurya/code-pathfinder/sourcecode-parser/model" + "github.com/shivasurya/code-pathfinder/sast-engine/model" sitter "github.com/smacker/go-tree-sitter" ) diff --git a/sourcecode-parser/graph/java/parse_statement_test.go b/sast-engine/graph/java/parse_statement_test.go similarity index 99% rename from sourcecode-parser/graph/java/parse_statement_test.go rename to sast-engine/graph/java/parse_statement_test.go index 16b0afdb..36a17027 100644 --- a/sourcecode-parser/graph/java/parse_statement_test.go +++ b/sast-engine/graph/java/parse_statement_test.go @@ -4,7 +4,7 @@ import ( "github.com/smacker/go-tree-sitter/java" "testing" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/model" + "github.com/shivasurya/code-pathfinder/sast-engine/model" sitter "github.com/smacker/go-tree-sitter" "github.com/stretchr/testify/assert" ) diff --git a/sourcecode-parser/graph/parser.go b/sast-engine/graph/parser.go similarity index 100% rename from sourcecode-parser/graph/parser.go rename to sast-engine/graph/parser.go diff --git a/sourcecode-parser/graph/parser_java.go b/sast-engine/graph/parser_java.go similarity index 99% rename from sourcecode-parser/graph/parser_java.go rename to sast-engine/graph/parser_java.go index 1e265f16..7747a6f2 100644 --- a/sourcecode-parser/graph/parser_java.go +++ b/sast-engine/graph/parser_java.go @@ -4,7 +4,7 @@ import ( "strconv" "strings" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/model" + "github.com/shivasurya/code-pathfinder/sast-engine/model" sitter "github.com/smacker/go-tree-sitter" ) diff --git a/sourcecode-parser/graph/parser_python.go b/sast-engine/graph/parser_python.go similarity index 99% rename from sourcecode-parser/graph/parser_python.go rename to sast-engine/graph/parser_python.go index b7d8744f..7a80d481 100644 --- a/sourcecode-parser/graph/parser_python.go +++ b/sast-engine/graph/parser_python.go @@ -3,7 +3,7 @@ package graph import ( "fmt" - pythonlang "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/python" + pythonlang "github.com/shivasurya/code-pathfinder/sast-engine/graph/python" sitter "github.com/smacker/go-tree-sitter" ) diff --git a/sourcecode-parser/graph/parser_python_test.go b/sast-engine/graph/parser_python_test.go similarity index 100% rename from sourcecode-parser/graph/parser_python_test.go rename to sast-engine/graph/parser_python_test.go diff --git a/sourcecode-parser/graph/parser_statements.go b/sast-engine/graph/parser_statements.go similarity index 98% rename from sourcecode-parser/graph/parser_statements.go rename to sast-engine/graph/parser_statements.go index 305616ce..f01c86ea 100644 --- a/sourcecode-parser/graph/parser_statements.go +++ b/sast-engine/graph/parser_statements.go @@ -3,8 +3,8 @@ package graph import ( "fmt" - javalang "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/java" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/model" + javalang "github.com/shivasurya/code-pathfinder/sast-engine/graph/java" + "github.com/shivasurya/code-pathfinder/sast-engine/model" sitter "github.com/smacker/go-tree-sitter" ) diff --git a/sourcecode-parser/graph/python/parse_statement.go b/sast-engine/graph/python/parse_statement.go similarity index 97% rename from sourcecode-parser/graph/python/parse_statement.go rename to sast-engine/graph/python/parse_statement.go index e440014e..bbe51986 100644 --- a/sourcecode-parser/graph/python/parse_statement.go +++ b/sast-engine/graph/python/parse_statement.go @@ -1,7 +1,7 @@ package python import ( - "github.com/shivasurya/code-pathfinder/sourcecode-parser/model" + "github.com/shivasurya/code-pathfinder/sast-engine/model" sitter "github.com/smacker/go-tree-sitter" ) diff --git a/sourcecode-parser/graph/python/parse_statement_test.go b/sast-engine/graph/python/parse_statement_test.go similarity index 100% rename from sourcecode-parser/graph/python/parse_statement_test.go rename to sast-engine/graph/python/parse_statement_test.go diff --git a/sourcecode-parser/graph/types.go b/sast-engine/graph/types.go similarity index 97% rename from sourcecode-parser/graph/types.go rename to sast-engine/graph/types.go index 99fac96d..ae5d62d7 100644 --- a/sourcecode-parser/graph/types.go +++ b/sast-engine/graph/types.go @@ -1,6 +1,6 @@ package graph -import "github.com/shivasurya/code-pathfinder/sourcecode-parser/model" +import "github.com/shivasurya/code-pathfinder/sast-engine/model" // SourceLocation stores the file location of a code snippet for lazy loading. type SourceLocation struct { diff --git a/sourcecode-parser/graph/types_test.go b/sast-engine/graph/types_test.go similarity index 98% rename from sourcecode-parser/graph/types_test.go rename to sast-engine/graph/types_test.go index a0b6b495..065a1b22 100644 --- a/sourcecode-parser/graph/types_test.go +++ b/sast-engine/graph/types_test.go @@ -3,7 +3,7 @@ package graph import ( "testing" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/model" + "github.com/shivasurya/code-pathfinder/sast-engine/model" ) func TestNodeCreation(t *testing.T) { diff --git a/sourcecode-parser/graph/utils.go b/sast-engine/graph/utils.go similarity index 99% rename from sourcecode-parser/graph/utils.go rename to sast-engine/graph/utils.go index f7a94727..7cd6b44e 100644 --- a/sourcecode-parser/graph/utils.go +++ b/sast-engine/graph/utils.go @@ -11,7 +11,7 @@ import ( "strconv" "strings" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/model" + "github.com/shivasurya/code-pathfinder/sast-engine/model" sitter "github.com/smacker/go-tree-sitter" ) diff --git a/sourcecode-parser/graph/utils_test.go b/sast-engine/graph/utils_test.go similarity index 100% rename from sourcecode-parser/graph/utils_test.go rename to sast-engine/graph/utils_test.go diff --git a/sourcecode-parser/main.go b/sast-engine/main.go similarity index 67% rename from sourcecode-parser/main.go rename to sast-engine/main.go index bb6321ba..223494e9 100644 --- a/sourcecode-parser/main.go +++ b/sast-engine/main.go @@ -4,7 +4,7 @@ import ( "fmt" "os" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/cmd" + "github.com/shivasurya/code-pathfinder/sast-engine/cmd" ) func main() { diff --git a/sourcecode-parser/main_test.go b/sast-engine/main_test.go similarity index 100% rename from sourcecode-parser/main_test.go rename to sast-engine/main_test.go diff --git a/sourcecode-parser/model/container.go b/sast-engine/model/container.go similarity index 100% rename from sourcecode-parser/model/container.go rename to sast-engine/model/container.go diff --git a/sourcecode-parser/model/container_test.go b/sast-engine/model/container_test.go similarity index 100% rename from sourcecode-parser/model/container_test.go rename to sast-engine/model/container_test.go diff --git a/sourcecode-parser/model/expr.go b/sast-engine/model/expr.go similarity index 100% rename from sourcecode-parser/model/expr.go rename to sast-engine/model/expr.go diff --git a/sourcecode-parser/model/expr_test.go b/sast-engine/model/expr_test.go similarity index 100% rename from sourcecode-parser/model/expr_test.go rename to sast-engine/model/expr_test.go diff --git a/sourcecode-parser/model/javadoc.go b/sast-engine/model/javadoc.go similarity index 100% rename from sourcecode-parser/model/javadoc.go rename to sast-engine/model/javadoc.go diff --git a/sourcecode-parser/model/javadoc_test.go b/sast-engine/model/javadoc_test.go similarity index 100% rename from sourcecode-parser/model/javadoc_test.go rename to sast-engine/model/javadoc_test.go diff --git a/sourcecode-parser/model/location.go b/sast-engine/model/location.go similarity index 100% rename from sourcecode-parser/model/location.go rename to sast-engine/model/location.go diff --git a/sourcecode-parser/model/location_test.go b/sast-engine/model/location_test.go similarity index 100% rename from sourcecode-parser/model/location_test.go rename to sast-engine/model/location_test.go diff --git a/sourcecode-parser/model/member.go b/sast-engine/model/member.go similarity index 100% rename from sourcecode-parser/model/member.go rename to sast-engine/model/member.go diff --git a/sourcecode-parser/model/member_test.go b/sast-engine/model/member_test.go similarity index 100% rename from sourcecode-parser/model/member_test.go rename to sast-engine/model/member_test.go diff --git a/sourcecode-parser/model/module.go b/sast-engine/model/module.go similarity index 100% rename from sourcecode-parser/model/module.go rename to sast-engine/model/module.go diff --git a/sourcecode-parser/model/module_test.go b/sast-engine/model/module_test.go similarity index 100% rename from sourcecode-parser/model/module_test.go rename to sast-engine/model/module_test.go diff --git a/sourcecode-parser/model/stmt.go b/sast-engine/model/stmt.go similarity index 100% rename from sourcecode-parser/model/stmt.go rename to sast-engine/model/stmt.go diff --git a/sourcecode-parser/model/stmt_test.go b/sast-engine/model/stmt_test.go similarity index 100% rename from sourcecode-parser/model/stmt_test.go rename to sast-engine/model/stmt_test.go diff --git a/sourcecode-parser/model/top.go b/sast-engine/model/top.go similarity index 100% rename from sourcecode-parser/model/top.go rename to sast-engine/model/top.go diff --git a/sourcecode-parser/model/top_test.go b/sast-engine/model/top_test.go similarity index 100% rename from sourcecode-parser/model/top_test.go rename to sast-engine/model/top_test.go diff --git a/sourcecode-parser/output/csv_formatter.go b/sast-engine/output/csv_formatter.go similarity index 97% rename from sourcecode-parser/output/csv_formatter.go rename to sast-engine/output/csv_formatter.go index 613ee5bb..1190c098 100644 --- a/sourcecode-parser/output/csv_formatter.go +++ b/sast-engine/output/csv_formatter.go @@ -6,7 +6,7 @@ import ( "os" "strconv" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/dsl" + "github.com/shivasurya/code-pathfinder/sast-engine/dsl" ) // CSVFormatter formats enriched detections as CSV. diff --git a/sourcecode-parser/output/csv_formatter_test.go b/sast-engine/output/csv_formatter_test.go similarity index 99% rename from sourcecode-parser/output/csv_formatter_test.go rename to sast-engine/output/csv_formatter_test.go index b6701ccb..3dc60df2 100644 --- a/sourcecode-parser/output/csv_formatter_test.go +++ b/sast-engine/output/csv_formatter_test.go @@ -5,7 +5,7 @@ import ( "encoding/csv" "testing" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/dsl" + "github.com/shivasurya/code-pathfinder/sast-engine/dsl" ) func TestNewCSVFormatter(t *testing.T) { diff --git a/sourcecode-parser/output/enricher.go b/sast-engine/output/enricher.go similarity index 98% rename from sourcecode-parser/output/enricher.go rename to sast-engine/output/enricher.go index 451b20d0..ba3774c2 100644 --- a/sourcecode-parser/output/enricher.go +++ b/sast-engine/output/enricher.go @@ -6,8 +6,8 @@ import ( "path/filepath" "strings" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/dsl" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/dsl" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" ) // Enricher adds context and metadata to detections. diff --git a/sourcecode-parser/output/enricher_test.go b/sast-engine/output/enricher_test.go similarity index 98% rename from sourcecode-parser/output/enricher_test.go rename to sast-engine/output/enricher_test.go index 2303c46e..327b6af5 100644 --- a/sourcecode-parser/output/enricher_test.go +++ b/sast-engine/output/enricher_test.go @@ -5,9 +5,9 @@ import ( "path/filepath" "testing" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/dsl" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/graph/callgraph/core" + "github.com/shivasurya/code-pathfinder/sast-engine/dsl" + "github.com/shivasurya/code-pathfinder/sast-engine/graph" + "github.com/shivasurya/code-pathfinder/sast-engine/graph/callgraph/core" ) func TestNewEnricher(t *testing.T) { diff --git a/sourcecode-parser/output/exit_code.go b/sast-engine/output/exit_code.go similarity index 97% rename from sourcecode-parser/output/exit_code.go rename to sast-engine/output/exit_code.go index 5458bd37..a09d6c40 100644 --- a/sourcecode-parser/output/exit_code.go +++ b/sast-engine/output/exit_code.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/dsl" + "github.com/shivasurya/code-pathfinder/sast-engine/dsl" ) // ExitCode represents the exit code for the CLI. diff --git a/sourcecode-parser/output/exit_code_test.go b/sast-engine/output/exit_code_test.go similarity index 99% rename from sourcecode-parser/output/exit_code_test.go rename to sast-engine/output/exit_code_test.go index 4a180789..6b918451 100644 --- a/sourcecode-parser/output/exit_code_test.go +++ b/sast-engine/output/exit_code_test.go @@ -4,7 +4,7 @@ import ( "errors" "testing" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/dsl" + "github.com/shivasurya/code-pathfinder/sast-engine/dsl" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/sourcecode-parser/output/json_formatter.go b/sast-engine/output/json_formatter.go similarity index 99% rename from sourcecode-parser/output/json_formatter.go rename to sast-engine/output/json_formatter.go index d3764a53..0f57bee3 100644 --- a/sourcecode-parser/output/json_formatter.go +++ b/sast-engine/output/json_formatter.go @@ -6,7 +6,7 @@ import ( "os" "time" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/dsl" + "github.com/shivasurya/code-pathfinder/sast-engine/dsl" ) // JSONFormatter formats enriched detections as JSON. diff --git a/sourcecode-parser/output/json_formatter_test.go b/sast-engine/output/json_formatter_test.go similarity index 99% rename from sourcecode-parser/output/json_formatter_test.go rename to sast-engine/output/json_formatter_test.go index 549d0119..6d458cfc 100644 --- a/sourcecode-parser/output/json_formatter_test.go +++ b/sast-engine/output/json_formatter_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/dsl" + "github.com/shivasurya/code-pathfinder/sast-engine/dsl" ) func TestNewJSONFormatter(t *testing.T) { diff --git a/sourcecode-parser/output/logger.go b/sast-engine/output/logger.go similarity index 100% rename from sourcecode-parser/output/logger.go rename to sast-engine/output/logger.go diff --git a/sourcecode-parser/output/logger_test.go b/sast-engine/output/logger_test.go similarity index 100% rename from sourcecode-parser/output/logger_test.go rename to sast-engine/output/logger_test.go diff --git a/sourcecode-parser/output/options.go b/sast-engine/output/options.go similarity index 100% rename from sourcecode-parser/output/options.go rename to sast-engine/output/options.go diff --git a/sourcecode-parser/output/sarif_formatter.go b/sast-engine/output/sarif_formatter.go similarity index 99% rename from sourcecode-parser/output/sarif_formatter.go rename to sast-engine/output/sarif_formatter.go index a7c9a91a..6c4995ff 100644 --- a/sourcecode-parser/output/sarif_formatter.go +++ b/sast-engine/output/sarif_formatter.go @@ -8,7 +8,7 @@ import ( "strings" sarif "github.com/owenrumney/go-sarif/v2/sarif" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/dsl" + "github.com/shivasurya/code-pathfinder/sast-engine/dsl" ) // SARIFFormatter formats enriched detections as SARIF 2.1.0. diff --git a/sourcecode-parser/output/sarif_formatter_test.go b/sast-engine/output/sarif_formatter_test.go similarity index 99% rename from sourcecode-parser/output/sarif_formatter_test.go rename to sast-engine/output/sarif_formatter_test.go index 2a162e04..6a5a9879 100644 --- a/sourcecode-parser/output/sarif_formatter_test.go +++ b/sast-engine/output/sarif_formatter_test.go @@ -5,7 +5,7 @@ import ( "encoding/json" "testing" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/dsl" + "github.com/shivasurya/code-pathfinder/sast-engine/dsl" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/sourcecode-parser/output/text_formatter.go b/sast-engine/output/text_formatter.go similarity index 99% rename from sourcecode-parser/output/text_formatter.go rename to sast-engine/output/text_formatter.go index ddee34a8..1aee4a78 100644 --- a/sourcecode-parser/output/text_formatter.go +++ b/sast-engine/output/text_formatter.go @@ -6,7 +6,7 @@ import ( "os" "strings" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/dsl" + "github.com/shivasurya/code-pathfinder/sast-engine/dsl" ) // TextFormatter formats enriched detections as human-readable text. diff --git a/sourcecode-parser/output/text_formatter_test.go b/sast-engine/output/text_formatter_test.go similarity index 99% rename from sourcecode-parser/output/text_formatter_test.go rename to sast-engine/output/text_formatter_test.go index c4a8cb6f..ebe3e72b 100644 --- a/sourcecode-parser/output/text_formatter_test.go +++ b/sast-engine/output/text_formatter_test.go @@ -5,7 +5,7 @@ import ( "strings" "testing" - "github.com/shivasurya/code-pathfinder/sourcecode-parser/dsl" + "github.com/shivasurya/code-pathfinder/sast-engine/dsl" ) func TestNewTextFormatter(t *testing.T) { diff --git a/sourcecode-parser/settings.gradle b/sast-engine/settings.gradle similarity index 100% rename from sourcecode-parser/settings.gradle rename to sast-engine/settings.gradle diff --git a/sourcecode-parser/test-fixtures/python/callsites_test/simple_calls.py b/sast-engine/test-fixtures/python/callsites_test/simple_calls.py similarity index 100% rename from sourcecode-parser/test-fixtures/python/callsites_test/simple_calls.py rename to sast-engine/test-fixtures/python/callsites_test/simple_calls.py diff --git a/sourcecode-parser/test-fixtures/python/imports_test/aliased_imports.py b/sast-engine/test-fixtures/python/imports_test/aliased_imports.py similarity index 100% rename from sourcecode-parser/test-fixtures/python/imports_test/aliased_imports.py rename to sast-engine/test-fixtures/python/imports_test/aliased_imports.py diff --git a/sourcecode-parser/test-fixtures/python/imports_test/from_imports.py b/sast-engine/test-fixtures/python/imports_test/from_imports.py similarity index 100% rename from sourcecode-parser/test-fixtures/python/imports_test/from_imports.py rename to sast-engine/test-fixtures/python/imports_test/from_imports.py diff --git a/sourcecode-parser/test-fixtures/python/imports_test/mixed_imports.py b/sast-engine/test-fixtures/python/imports_test/mixed_imports.py similarity index 100% rename from sourcecode-parser/test-fixtures/python/imports_test/mixed_imports.py rename to sast-engine/test-fixtures/python/imports_test/mixed_imports.py diff --git a/sourcecode-parser/test-fixtures/python/imports_test/simple_imports.py b/sast-engine/test-fixtures/python/imports_test/simple_imports.py similarity index 100% rename from sourcecode-parser/test-fixtures/python/imports_test/simple_imports.py rename to sast-engine/test-fixtures/python/imports_test/simple_imports.py diff --git a/sourcecode-parser/test-fixtures/python/relative_imports_test/myapp/__init__.py b/sast-engine/test-fixtures/python/relative_imports_test/myapp/__init__.py similarity index 100% rename from sourcecode-parser/test-fixtures/python/relative_imports_test/myapp/__init__.py rename to sast-engine/test-fixtures/python/relative_imports_test/myapp/__init__.py diff --git a/sourcecode-parser/test-fixtures/python/relative_imports_test/myapp/config/__init__.py b/sast-engine/test-fixtures/python/relative_imports_test/myapp/config/__init__.py similarity index 100% rename from sourcecode-parser/test-fixtures/python/relative_imports_test/myapp/config/__init__.py rename to sast-engine/test-fixtures/python/relative_imports_test/myapp/config/__init__.py diff --git a/sourcecode-parser/test-fixtures/python/relative_imports_test/myapp/config/settings.py b/sast-engine/test-fixtures/python/relative_imports_test/myapp/config/settings.py similarity index 100% rename from sourcecode-parser/test-fixtures/python/relative_imports_test/myapp/config/settings.py rename to sast-engine/test-fixtures/python/relative_imports_test/myapp/config/settings.py diff --git a/sourcecode-parser/test-fixtures/python/relative_imports_test/myapp/submodule/__init__.py b/sast-engine/test-fixtures/python/relative_imports_test/myapp/submodule/__init__.py similarity index 100% rename from sourcecode-parser/test-fixtures/python/relative_imports_test/myapp/submodule/__init__.py rename to sast-engine/test-fixtures/python/relative_imports_test/myapp/submodule/__init__.py diff --git a/sourcecode-parser/test-fixtures/python/relative_imports_test/myapp/submodule/handler.py b/sast-engine/test-fixtures/python/relative_imports_test/myapp/submodule/handler.py similarity index 100% rename from sourcecode-parser/test-fixtures/python/relative_imports_test/myapp/submodule/handler.py rename to sast-engine/test-fixtures/python/relative_imports_test/myapp/submodule/handler.py diff --git a/sourcecode-parser/test-fixtures/python/relative_imports_test/myapp/submodule/utils.py b/sast-engine/test-fixtures/python/relative_imports_test/myapp/submodule/utils.py similarity index 100% rename from sourcecode-parser/test-fixtures/python/relative_imports_test/myapp/submodule/utils.py rename to sast-engine/test-fixtures/python/relative_imports_test/myapp/submodule/utils.py diff --git a/sourcecode-parser/test-fixtures/python/relative_imports_test/myapp/utils/__init__.py b/sast-engine/test-fixtures/python/relative_imports_test/myapp/utils/__init__.py similarity index 100% rename from sourcecode-parser/test-fixtures/python/relative_imports_test/myapp/utils/__init__.py rename to sast-engine/test-fixtures/python/relative_imports_test/myapp/utils/__init__.py diff --git a/sourcecode-parser/test-fixtures/python/relative_imports_test/myapp/utils/helper.py b/sast-engine/test-fixtures/python/relative_imports_test/myapp/utils/helper.py similarity index 100% rename from sourcecode-parser/test-fixtures/python/relative_imports_test/myapp/utils/helper.py rename to sast-engine/test-fixtures/python/relative_imports_test/myapp/utils/helper.py diff --git a/sourcecode-parser/test-fixtures/python/sample.py b/sast-engine/test-fixtures/python/sample.py similarity index 100% rename from sourcecode-parser/test-fixtures/python/sample.py rename to sast-engine/test-fixtures/python/sample.py diff --git a/sourcecode-parser/test-fixtures/python/simple_project/main.py b/sast-engine/test-fixtures/python/simple_project/main.py similarity index 100% rename from sourcecode-parser/test-fixtures/python/simple_project/main.py rename to sast-engine/test-fixtures/python/simple_project/main.py diff --git a/sourcecode-parser/test-fixtures/python/simple_project/submodule/__init__.py b/sast-engine/test-fixtures/python/simple_project/submodule/__init__.py similarity index 100% rename from sourcecode-parser/test-fixtures/python/simple_project/submodule/__init__.py rename to sast-engine/test-fixtures/python/simple_project/submodule/__init__.py diff --git a/sourcecode-parser/test-fixtures/python/simple_project/submodule/helpers.py b/sast-engine/test-fixtures/python/simple_project/submodule/helpers.py similarity index 100% rename from sourcecode-parser/test-fixtures/python/simple_project/submodule/helpers.py rename to sast-engine/test-fixtures/python/simple_project/submodule/helpers.py diff --git a/sourcecode-parser/test-fixtures/python/simple_project/utils.py b/sast-engine/test-fixtures/python/simple_project/utils.py similarity index 100% rename from sourcecode-parser/test-fixtures/python/simple_project/utils.py rename to sast-engine/test-fixtures/python/simple_project/utils.py diff --git a/sourcecode-parser/tools/__pycache__/generate_stdlib_registry.cpython-314.pyc b/sast-engine/tools/__pycache__/generate_stdlib_registry.cpython-314.pyc similarity index 100% rename from sourcecode-parser/tools/__pycache__/generate_stdlib_registry.cpython-314.pyc rename to sast-engine/tools/__pycache__/generate_stdlib_registry.cpython-314.pyc diff --git a/sourcecode-parser/tools/generate_stdlib_registry.py b/sast-engine/tools/generate_stdlib_registry.py similarity index 100% rename from sourcecode-parser/tools/generate_stdlib_registry.py rename to sast-engine/tools/generate_stdlib_registry.py diff --git a/sourcecode-parser/tools/test_generation_local.sh b/sast-engine/tools/test_generation_local.sh similarity index 100% rename from sourcecode-parser/tools/test_generation_local.sh rename to sast-engine/tools/test_generation_local.sh diff --git a/sourcecode-parser/tools/test_generator.py b/sast-engine/tools/test_generator.py similarity index 100% rename from sourcecode-parser/tools/test_generator.py rename to sast-engine/tools/test_generator.py diff --git a/sourcecode-parser/tools/upload_to_r2.sh b/sast-engine/tools/upload_to_r2.sh similarity index 100% rename from sourcecode-parser/tools/upload_to_r2.sh rename to sast-engine/tools/upload_to_r2.sh diff --git a/sourcecode-parser/VERSION b/sourcecode-parser/VERSION deleted file mode 100644 index 3eefcb9d..00000000 --- a/sourcecode-parser/VERSION +++ /dev/null @@ -1 +0,0 @@ -1.0.0 From ca5c8e5a0260f97b56ac27c376ea08886d04dea7 Mon Sep 17 00:00:00 2001 From: shivasurya Date: Fri, 28 Nov 2025 20:10:11 -0500 Subject: [PATCH 2/2] docs: Add DeepWiki badge to README --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 9dec53a5..78a9d8b5 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,7 @@ [![npm version](https://img.shields.io/npm/v/@codepathfinder/secureflow-cli?logo=npm)](https://www.npmjs.com/package/@codepathfinder/secureflow-cli) [![Open VSX](https://img.shields.io/open-vsx/v/codepathfinder/secureflow?label=Open%20VSX&logo=vscodium)](https://open-vsx.org/extension/codepathfinder/secureflow) [![AGPL-3.0 License](https://img.shields.io/github/license/shivasurya/code-pathfinder)](https://github.com/shivasurya/code-pathfinder/blob/main/LICENSE) +[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/shivasurya/code-pathfinder) # Code Pathfinder