norm
norm copied to clipboard
Use JGit to filter newly added/modified sql queries only for codegen
Feature: Add support for generating code for newly added or modified files based on git index.
Existing implementation:
It takes all the sql files provided in the configured directory for code generation.
New Implementation:
- If no GIT repository is configured in target project then fallback to default behaviour viz. use all sql files for codegen
- If any untracked file or modified file is available then use only those files for code generation
Advantage:
It does not depend on gradle cache hence the initial run also does not generate code for unintended files.
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
0.0% Duplication
This is great start. It would be great if you could cover or plan for cases when:
- [ ] file has a diff (the happy path)
- [ ] file is new and not in git index yet
- [ ] file is renamed
- [ ] file path has changed
- [ ] file is deleted
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
0.0% Duplication
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
0.0% Duplication