File tree Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -28,13 +28,16 @@ install:
28
28
- travis_retry fetch-configlet
29
29
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 -o pack.tgz
30
30
- tar xzf pack.tgz --wildcards --strip-components=1 -C ${HOME}/bin '*/stack'
31
+ - stack --resolver ${RESOLVER} --install-ghc install hlint
31
32
32
33
script :
33
34
- |
34
35
set -e
35
- configlet .
36
36
37
- # Explicit set the resolver only if it's not the current one.
37
+ configlet . # Check basic track configuration.
38
+ hlint ${TRAVIS_BUILD_DIR} # Run `hlint` on the entire repository.
39
+
40
+ # Explicit set exercises' resolver only if it's not the current one.
38
41
if [ "${CURRENT}" != "YES" ]; then
39
42
SET_RESOLVER="--resolver ${RESOLVER}"
40
43
fi
Original file line number Diff line number Diff line change @@ -50,12 +50,16 @@ stack test --pedantic
50
50
51
51
### Running HLint
52
52
53
- All code in this repository should be as idiomatic as possible, so it is
54
- highly recommended to run ` hlint ` on your sources before opening a
55
- * pull request * .
53
+ All code in this repository should be as idiomatic as possible, so we
54
+ enforce in [ Travis-CI ] that it returns ` No hints ` when processed by
55
+ HLint .
56
56
57
- Unless there is a good reason to ignore a suggestion, all submitted
58
- code is expected to return ** No hints** when processed by it.
57
+ It is highly recommended to run ` hlint ` on your sources before opening
58
+ a * pull request* , so you can fix your code before submitting it for review.
59
+
60
+ If you are certain that a suggestion given by ` hlint ` would make the
61
+ code worse, you can [ suppress it] ( https://github.com/ndmitchell/hlint#customizing-the-hints )
62
+ with annotations in the source file.
59
63
60
64
## License
61
65
You can’t perform that action at this time.
0 commit comments