headroom-0.1.0.0: License Header Manager
Copyright(c) 2019-2020 Vaclav Svejcar
LicenseBSD-3
Maintainervaclav.svejcar@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Headroom.Header.Impl.Scala

Description

Support for detecting license header in Scala source code files.

Synopsis

Documentation

headerSizeScala :: Text -> Int Source #

Returns size of license header (as number of lines) in given Scala source code. Current implementation is pretty simple and it only takes line starting with one of the following keywords as the start of code itself:

  • class
  • object
  • package