Skip to content
Ahmed Tarek edited this page Feb 14, 2019 · 8 revisions

Welcome to the Koshry wiki!

How to write Koshry Rules?

Koshry has ready rules to apply on the git diff of your pull request:

1. Protected File Rule

  • Protect a list of files to be changed by any pull request author.
  • Exclude some an author or more from this rule if you want.
val rule = protectedFileRule {
    reportTitle = "Files are protected and can't be modified, ask @tarek360 to modify"
    issueLevel = ERROR()
    files {
        filePath = "dependencies.kts"
        filePath = ".circleci/config.yml"
    }
    excludeAuthors {
        author = "tarek360"
    }
}
Clone this wiki locally