-
We've partly implemented apex pmd (via sfdx scanner) by cleaning up some of the classes that don't have too many problems. However, we have a ton of classes that with high cyclomatic complexity, etc that is unfeasible to solve immediately. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @sjurgis,
Example: # create new classes in the repository
...
# create a commit to store those classes
git commit -am 'feat: add new classes'
# modify existing classes in the repository
...
# create a commit to store the modification on those classes
git commit -am 'feat: modify classes'
# create folders for the incremental packages
mkdir added
mkdir modified
# run SGD for added only
sfdx sgd:source:delta -f "HEAD~2" -t "HEAD~1" -d -o added
# run SGD for modified only
sfdx sgd:source:delta -f "HEAD~1" -t "HEAD" -d -o modified |
Beta Was this translation helpful? Give feedback.
-
Hmmm, thanks for posting this. I googled a bit and turns out solution might be much simpler - I can just grab a list added files and pass those to sfdx scanner.
|
Beta Was this translation helpful? Give feedback.
Hmmm, thanks for posting this. I googled a bit and turns out solution might be much simpler - I can just grab a list added files and pass those to sfdx scanner.
i.e.