Skip to content

drop-project-edu/detekt-extensions

Repository files navigation

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'
  • GlobalVariables, detect the use of global variables - should be avoided in certain projects

How to use

Include the following dependency on your pom file:

<dependency>
    <groupId>org.dropproject</groupId>
    <artifactId>drop-project-detekt-extensions</artifactId>
    <version>0.3.0</version>
</dependency>

Add this configuration to detekt.yml:

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

About

Some custom rules for detekt

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages