Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ $ secureflow scan ./path/to/project
### Code-Pathfinder CLI

```bash
docker run --rm -v "./src:/src" shivasurya/code-pathfinder:stable-latest ci --project /src/code-pathfinder/test-src --ruleset cpf/java
docker run --rm -v "./src:/src" shivasurya/code-pathfinder:stable-latest ci --project /src/your-project --ruleset cpf/java
```

## :book: Documentation
Expand Down
6 changes: 0 additions & 6 deletions sourcecode-parser/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@ task buildGo(type: Exec, dependsOn: 'cleanGo') {
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", '.'
}

// gradle run --console=plain
task runGo(type: Exec, dependsOn: build) {
commandLine "${buildDir}/go/pathfinder", '--project', '../test-src/android', '--stdin', 'true'
standardInput = System.in
}

task testGo(type: Exec) {
commandLine 'go', 'test', './...'
}
Expand Down
2 changes: 1 addition & 1 deletion sourcecode-parser/graph/callgraph/benchmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
// These paths are used for performance testing against real-world codebases.
const (
// Small project: ~5 Python files, simple imports.
smallProjectPath = "../../../test-src/python/simple_project"
smallProjectPath = "../test-fixtures/python/simple_project"

// Medium project: label-studio (~1000 Python files, complex imports).
mediumProjectPath = "/Users/shiva/src/label-studio/label_studio"
Expand Down
2 changes: 1 addition & 1 deletion sourcecode-parser/graph/callgraph/registry/module_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

func TestBuildModuleRegistry_SimpleProject(t *testing.T) {
// Use the simple_project test fixture
testRoot := filepath.Join("..", "..", "..", "..", "test-src", "python", "simple_project")
testRoot := filepath.Join("..", "..", "..", "test-fixtures", "python", "simple_project")

registry, err := BuildModuleRegistry(testRoot)
require.NoError(t, err)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def process():

func TestExtractCallSites_WithTestFixture(t *testing.T) {
// Create a test fixture
fixturePath := filepath.Join("..", "..", "..", "test-src", "python", "callsites_test", "simple_calls.py")
fixturePath := filepath.Join("..", "..", "..", "test-fixtures", "python", "callsites_test", "simple_calls.py")

// Check if fixture exists
if _, err := os.Stat(fixturePath); os.IsNotExist(err) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ from ..config import settings
func TestExtractImports_WithTestFixture_RelativeImports(t *testing.T) {
// Build module registry for the test fixture - use absolute path from start
// Note: This file is now in resolution/ subpackage, so we need one extra ..
projectRoot := filepath.Join("..", "..", "..", "..", "test-src", "python", "relative_imports_test")
projectRoot := filepath.Join("..", "..", "..", "test-fixtures", "python", "relative_imports_test")
absProjectRoot, err := filepath.Abs(projectRoot)
require.NoError(t, err)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ func TestExtractImports_WithTestFixtures(t *testing.T) {

for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
fixturePath := filepath.Join("..", "..", "..", "test-src", "python", "imports_test", tt.fixtureFile)
fixturePath := filepath.Join("..", "..", "..", "test-fixtures", "python", "imports_test", tt.fixtureFile)

// Check if fixture exists
if _, err := os.Stat(fixturePath); os.IsNotExist(err) {
Expand Down
File renamed without changes.
8 changes: 0 additions & 8 deletions test-src/android/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions test-src/android/README.md

This file was deleted.

1 change: 0 additions & 1 deletion test-src/android/app/.gitignore

This file was deleted.

32 changes: 0 additions & 32 deletions test-src/android/app/build.gradle

This file was deleted.

17 changes: 0 additions & 17 deletions test-src/android/app/proguard-rules.pro

This file was deleted.

This file was deleted.

33 changes: 0 additions & 33 deletions test-src/android/app/src/main/AndroidManifest.xml

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading