How to run diktat only for new changes? #1275
Answered
by
orchestr7
akshatagarwl
asked this question in
Q&A
-
Introducing a linter to new project becomes a huge task especially fixing all the existing issues first. Is there a way to run diktat only for new changes and add that check in the CI so that any new code that has been added to a codebase doesn't violate the rules set by diktat? |
Beta Was this translation helpful? Give feedback.
Answered by
orchestr7
Apr 28, 2022
Replies: 1 comment
-
You can use baseline for this purpose: https://github.com/analysis-dev/diktat#running-against-the-baseline
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
orchestr7
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use baseline for this purpose: https://github.com/analysis-dev/diktat#running-against-the-baseline