-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathpackage.yaml
More file actions
140 lines (132 loc) · 3.4 KB
/
package.yaml
File metadata and controls
140 lines (132 loc) · 3.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
name: homplexity
version: '0.4.8.0'
synopsis: Haskell code quality tool
description: ! 'Homplexity aims to measure code complexity,
warning about fragments that might have higher defect probability
due to bad coding style on-the-large:
* too large functions
* too deeply nested conditions
* too few comments'
category: Language, Tools
author: Michal J. Gajda
maintainer: mjgajda@migamake.com
copyright: Copyright by Michal J. Gajda and contributors '2015-'2020 https://gitlab.com/migamake/homplexity/-/graphs/master
license: BSD3
git: https://gitlab.com/migamake/homplexity.git
homepage: https://gitlab.com/migamake/homplexity
bug-reports: https://gitlab.com/migamake/homplexity/issues
tested-with: GHC==8.4.4 GHC==8.6.5 GHC==8.8.2
extra-source-files:
- README.md
- changelog.md
dependencies:
- base >=4.5 && <4.16
- filepath >=1.2 && <1.5
- haskell-src-exts >=1.20 && <1.24
- template-haskell >=2.6 && <2.18
library:
source-dirs: lib
other-extensions:
- BangPatterns
- DeriveDataTypeable
- FlexibleContexts
- FlexibleInstances
- GeneralizedNewtypeDeriving
- IncoherentInstances
- MultiParamTypeClasses
- OverlappingInstances
- RecordWildCards
- ScopedTypeVariables
- StandaloneDeriving
- TemplateHaskell
- TypeFamilies
- TypeSynonymInstances
- UndecidableInstances
- ViewPatterns
exposed-modules:
- Language.Haskell.Homplexity.Assessment
- Language.Haskell.Homplexity.CabalFiles
- Language.Haskell.Homplexity.CodeFragment
- Language.Haskell.Homplexity.Comments
- Language.Haskell.Homplexity.Cyclomatic
- Language.Haskell.Homplexity.Message
- Language.Haskell.Homplexity.Metric
- Language.Haskell.Homplexity.Parse
- Language.Haskell.Homplexity.SrcSlice
- Language.Haskell.Homplexity.RecordFieldsCount
- Language.Haskell.Homplexity.TypeClassComplexity
- Language.Haskell.Homplexity.TypeComplexity
- Language.Haskell.Homplexity.Utilities
dependencies:
- bytestring
- containers >=0.3 && <0.7
- cpphs >=1.5 && <1.21
- deepseq >=1.3 && <1.7
- directory >=1.1 && <1.4
- hflags >=0.3 && <0.5
- uniplate >=1.4 && <1.7
when:
- condition: impl(ghc >=8.8.1)
then:
dependencies:
- Cabal >=3.0.0.0
else:
dependencies:
- Cabal >=2.2.0.0
- condition: flag(html)
cpp-options: -DHTML_OUTPUT
dependencies:
- blaze-html >=0.9 && <1
- blaze-markup >=0.8 && <0.9
executables:
homplexity-cli:
main: Homplexity.hs
source-dirs: app/
dependencies:
- homplexity
- containers >=0.3 && <0.7
- cpphs >=1.5 && <1.21
- deepseq >=1.3 && <1.7
- directory >=1.1 && <1.4
- githash >=0.1.2.0 && <1.0
- hflags >=0.3 && <0.5
- uniplate >=1.4 && <1.7
when:
- condition: flag(html)
cpp-options: -DHTML_OUTPUT
dependencies:
- blaze-html >=0.9 && <1
- bytestring >=0.10 && <0.11
tests:
homplexity-tests:
main: Tests.hs
source-dirs: tests
ghc-options:
- -Wall
- -threaded
- -rtsopts
- -with-rtsopts=-N
dependencies:
- homplexity
when:
- condition: impl(ghc >=8.8.0)
then:
dependencies:
- hspec >=2.7.0
else:
dependencies:
- hspec <2.6.0
flags:
html:
description: Enable HTML output via blaze-html
manual: false
default: true
static:
description: Build static binary
manual: true
default: false
when:
condition:
flag(static)
ld-options: -static
ghc-options: -fPIC