Skip to content

Feature : Add Incremental Analysis#171

Merged
sourya-deepsource merged 17 commits intoDeepSourceCorp:masterfrom
unnxt30:issue#19
Mar 26, 2025
Merged

Feature : Add Incremental Analysis#171
sourya-deepsource merged 17 commits intoDeepSourceCorp:masterfrom
unnxt30:issue#19

Conversation

@unnxt30
Copy link
Contributor

@unnxt30 unnxt30 commented Mar 19, 2025

  • Removed methods not necessary from the original PR
  • Refactored the Cli interface to include the incremental analysis flag

@vercel
Copy link

vercel bot commented Mar 19, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
globstar ⬜️ Ignored (Inspect) Visit Preview Mar 26, 2025 3:54pm

@unnxt30 unnxt30 changed the title Issue#19 : Add Incremental Analysis (Cleanup) Feature : Add Incremental Analysis Mar 21, 2025
pkg/cli/cli.go Outdated
},

&cli.StringFlag{
Name: "Incremental Analyzer",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Name: "Incremental Analyzer",
Name: "Analyze changeset",

pkg/cli/cli.go Outdated
Config *config.Config
Checkers []analysis.Checker
Config *config.Config
IncMode *IncrementalConfig
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Run go fmt locally before pushing.

pkg/cli/cli.go Outdated

result := checkResult{}
err := filepath.Walk(c.RootDirectory, func(path string, d fs.FileInfo, err error) error {
if c.IncMode == nil || c.IncMode.compareHash == "" {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If no git revision is provided, all files should be analyzed.

pkg/cli/git.go Outdated
}

// Define references for the current and previous commits
head := "HEAD"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need a diff between the current state of the repo and the compareCommitHash. The repo state may not be clean at the time of analysis.

@sourya-deepsource sourya-deepsource merged commit cd5c5d6 into DeepSourceCorp:master Mar 26, 2025
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants