Copyright | (c) 2019-2020 Vaclav Svejcar |
---|---|
License | BSD-3 |
Maintainer | vaclav.svejcar@gmail.com |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
Re-exports headerSizeXY
functions from all existing implementation modules.
Synopsis
- headerSizeCSS :: Text -> Int
- headerSizeHaskell :: Text -> Int
- headerSizeHTML :: Text -> Int
- headerSizeJava :: Text -> Int
- headerSizeJS :: Text -> Int
- headerSizeScala :: Text -> Int
Documentation
headerSizeCSS :: Text -> Int Source #
Returns size of license header (as number of lines) in given CSS source code. The very first comment block is considered as license header, anything after as start of the actual code.
headerSizeHaskell :: Text -> Int Source #
Returns size of license header (as number of lines) in given Haskell 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:
{-#
module
headerSizeHTML :: Text -> Int Source #
Returns size of license header (as number of lines) in given HTML source code. The very first HTML comment is considered as license header, anything after as start of the actual code.
headerSizeJava :: Text -> Int Source #
Returns size of license header (as number of lines) in given Java 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:
package
headerSizeJS :: Text -> Int Source #
Returns size of license header (as number of lines) in given JS source code. The very first comment block is considered as license header, anything after as start of the actual code.
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