Skip to content

How to run diktat only for new changes? #1275

Answered by akuleshov7
humancalico asked this question in Q&A
Discussion options

You must be logged in to vote

You can use baseline for this purpose: https://github.com/analysis-dev/diktat#running-against-the-baseline


<?xml version="1.0" encoding="utf-8"?>
<baseline version="1.0">
    <file name="src/test/resources/TestBaselineFile.kt">
        <error line="1" column="24" source="no-empty-class-body" />
        <error line="2" column="1" source="no-blank-line-before-rbrace" />
    </file>
    <file name="src/test/resources/TestBaselineExtraErrorFile.kt">
        <error line="1" column="34" source="no-empty-class-body" />
    </file>
</baseline>

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by akuleshov7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants