Thread
#detekt
    Ankur Gupta

    Ankur Gupta

    1 year ago
    Hi, I'm trying out detekt first time. I want to add additional functionality to it. I want to be able to detect authorship comments at top of file. There is rule for comments
    ForbiddenComment
    but I'm not sure how to customize it to check for the specific type of comments. Or do I need to make a new rule altogether, Please point me to the relevant path. Thanks! Example comment I'm talking about:-
    /**
     * Created by Dev Name on 28/05/21.
     */
    Example 2-
    /*
     * @Author: Dev name
     * Email: <mailto:devname@company.com|devname@company.com>
     */
    Edit: So I figured it out. Needed to add custom configuration *.yml file with values
    created
    and
    author
    to add check. Also needed to set
    buildUponDefaultConfig = true
    gammax

    gammax

    1 year ago
    Great so you solved right?
    Ankur Gupta

    Ankur Gupta

    1 year ago
    Yes