Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 737 Bytes

README.md

File metadata and controls

25 lines (18 loc) · 737 Bytes

Drop Project Detekt Extensions

Custom rules for Detekt used by Drop Project.

Current rules include:

  • ForbiddenKeywords, searches students submissions for forbidden keywords such as 'break'

How to use

Include the following dependency on your pom file:

<dependency>
    <groupId>pt.ulusofona.deisi</groupId>
    <artifactId>drop-project-detekt-extensions</artifactId>
    <version>0.1.2</version>
</dependency>

Add this configuration to detekt.yml:

drop-project:
  active: true
  ForbiddenKeywords:
    active: true
    forbiddenKeywords: 'for,break,split,indexOf,contains'
    excludes: "**/Test*.kt"