File tree Expand file tree Collapse file tree 5 files changed +141
-4
lines changed Expand file tree Collapse file tree 5 files changed +141
-4
lines changed Original file line number Diff line number Diff line change
1
+ name : stan
2
+
3
+ on :
4
+ push :
5
+ pull_request :
6
+
7
+ jobs :
8
+ build :
9
+ name : ghc ${{ matrix.ghc }}
10
+ runs-on : ubuntu-latest
11
+ strategy :
12
+ matrix :
13
+ cabal : ["3.6"]
14
+ ghc :
15
+ - " 8.10.7"
16
+
17
+ steps :
18
+ - uses : actions/checkout@v2
19
+ with :
20
+ submodules : true
21
+
22
+ - uses : haskell/actions/setup@v1
23
+ name : Setup GHC and cabal-install
24
+ with :
25
+ ghc-version : ${{ matrix.ghc }}
26
+ cabal-version : ${{ matrix.cabal }}
27
+
28
+ - uses : actions/cache@v2
29
+ name : cache ~/.cabal/store
30
+ with :
31
+ path : ~/.cabal/store
32
+ key : ${{ runner.os }}-${{ matrix.ghc }}-cabal
33
+
34
+ - name : update
35
+ run : cabal update
36
+
37
+ - name : install stan
38
+ run : cabal install stan --installdir=.bin --install-method=copy --overwrite-policy=always
39
+
40
+ - name : generate .hie for analysis
41
+ run : cabal build stack:lib:stack
42
+
43
+ - name : stan
44
+ run : .bin/stan report
Original file line number Diff line number Diff line change 29
29
better-cache /
30
30
stack * .yaml.lock
31
31
dist-newstyle /
32
+ .hie
33
+ stan.html
Original file line number Diff line number Diff line change
1
+ # Partial: base/!!
2
+ [[check ]]
3
+ id = " STAN-0005"
4
+ scope = " all"
5
+ type = " Exclude"
6
+
7
+ # Partial: base/minimum
8
+ [[check ]]
9
+ id = " STAN-0014"
10
+ scope = " all"
11
+ type = " Exclude"
12
+
13
+ # Partial: base/minimumBy
14
+ [[check ]]
15
+ id = " STAN-0016"
16
+ scope = " all"
17
+ type = " Exclude"
18
+
19
+ # Partial: base/fromList
20
+ [[check ]]
21
+ id = " STAN-0020"
22
+ scope = " all"
23
+ type = " Exclude"
24
+
25
+ # Infinite: base/reverse
26
+ [[check ]]
27
+ id = " STAN-0101"
28
+ scope = " all"
29
+ type = " Exclude"
30
+
31
+ # Infinite: base/isSuffixOf
32
+ [[check ]]
33
+ id = " STAN-0102"
34
+ scope = " all"
35
+ type = " Exclude"
36
+
37
+ # Infinite: base/length
38
+ [[check ]]
39
+ id = " STAN-0103"
40
+ scope = " all"
41
+ type = " Exclude"
42
+
43
+ # Anti-pattern: foldl
44
+ [[check ]]
45
+ id = " STAN-0202"
46
+ scope = " all"
47
+ type = " Exclude"
48
+
49
+ # Anti-pattern: Data.ByteString.Char8.pack
50
+ [[check ]]
51
+ id = " STAN-0203"
52
+ scope = " all"
53
+ type = " Exclude"
54
+
55
+ # Data types with non-strict fields
56
+ [[check ]]
57
+ id = " STAN-0206"
58
+ scope = " all"
59
+ type = " Exclude"
60
+
61
+ # Anti-pattern: Foldable methods on possibly error-prone structures
62
+ [[check ]]
63
+ id = " STAN-0207"
64
+ scope = " all"
65
+ type = " Exclude"
66
+
67
+ # Anti-pattern: Slow 'length' for Text
68
+ [[check ]]
69
+ id = " STAN-0208"
70
+ scope = " all"
71
+ type = " Exclude"
72
+
73
+ # Anti-pattern: unsafe functions
74
+ [[check ]]
75
+ id = " STAN-0212"
76
+ scope = " all"
77
+ type = " Exclude"
78
+
79
+ # Anti-pattern: Pattern matching on '_'
80
+ [[check ]]
81
+ id = " STAN-0213"
82
+ scope = " all"
83
+ type = " Exclude"
84
+
85
+ # Using tuples of big size (>= 4) can decrease code readability
86
+ [[check ]]
87
+ id = " STAN-0302"
88
+ scope = " all"
89
+ type = " Exclude"
Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ extra-source-files:
40
40
- src/test/Stack/Untar/test1.tar.gz
41
41
- src/test/Stack/Untar/test2.tar.gz
42
42
ghc-options :
43
+ - -fwrite-ide-info
44
+ - -hiedir=.hie
43
45
- -Wall
44
46
- -fwarn-tabs
45
47
- -fwarn-incomplete-uni-patterns
Original file line number Diff line number Diff line change @@ -223,7 +223,7 @@ library
223
223
Paths_stack
224
224
hs-source-dirs :
225
225
src/
226
- ghc-options : -Wall -fwarn-tabs -fwarn-incomplete-uni-patterns -fwarn-incomplete-record-updates -optP-Wno-nonportable-include-path -fwarn-identities
226
+ ghc-options : -fwrite-ide-info -hiedir = . hie - Wall -fwarn-tabs -fwarn-incomplete-uni-patterns -fwarn-incomplete-record-updates -optP-Wno-nonportable-include-path -fwarn-identities
227
227
build-depends :
228
228
Cabal
229
229
, aeson
@@ -346,7 +346,7 @@ executable stack
346
346
Paths_stack
347
347
hs-source-dirs :
348
348
src/main
349
- ghc-options : -Wall -fwarn-tabs -fwarn-incomplete-uni-patterns -fwarn-incomplete-record-updates -optP-Wno-nonportable-include-path -threaded -rtsopts
349
+ ghc-options : -fwrite-ide-info -hiedir = . hie - Wall -fwarn-tabs -fwarn-incomplete-uni-patterns -fwarn-incomplete-record-updates -optP-Wno-nonportable-include-path -threaded -rtsopts
350
350
build-depends :
351
351
Cabal
352
352
, aeson
@@ -468,7 +468,7 @@ executable stack-integration-test
468
468
hs-source-dirs :
469
469
test/integration
470
470
test/integration/lib
471
- ghc-options : -Wall -fwarn-tabs -fwarn-incomplete-uni-patterns -fwarn-incomplete-record-updates -optP-Wno-nonportable-include-path -threaded -rtsopts -with-rtsopts=-N
471
+ ghc-options : -fwrite-ide-info -hiedir = . hie - Wall -fwarn-tabs -fwarn-incomplete-uni-patterns -fwarn-incomplete-record-updates -optP-Wno-nonportable-include-path -threaded -rtsopts -with-rtsopts=-N
472
472
build-depends :
473
473
Cabal
474
474
, aeson
@@ -597,7 +597,7 @@ test-suite stack-test
597
597
Paths_stack
598
598
hs-source-dirs :
599
599
src/test
600
- ghc-options : -Wall -fwarn-tabs -fwarn-incomplete-uni-patterns -fwarn-incomplete-record-updates -optP-Wno-nonportable-include-path -threaded
600
+ ghc-options : -fwrite-ide-info -hiedir = . hie - Wall -fwarn-tabs -fwarn-incomplete-uni-patterns -fwarn-incomplete-record-updates -optP-Wno-nonportable-include-path -threaded
601
601
build-depends :
602
602
Cabal
603
603
, QuickCheck
You can’t perform that action at this time.
0 commit comments