git.iko.soy/typeable/pandoc
on 2.14 help sign in
typeable/pandoc/.hlint.yaml
112 lines 2.7 kB history raw
1# HLint configuration file
2# https://github.com/ndmitchell/hlint
3##########################
5# Specify additional command line arguments
6#
7- arguments: [--color=auto, --cpp-ansi]
9# Ignore some builtin hints
11- ignore: {name: "Avoid lambda"}
12- ignore: {name: "Use bimap"}
13- ignore: {name: "Eta reduce"}
14- ignore: {name: "Evaluate"}
15- ignore: {name: "Reduce duplication"} # TODO: could be more fine-grained
16- ignore: {name: "Use &&&"}
17- ignore: {name: "Use String"}
18- ignore: {name: "Use camelCase"}
19- ignore: {name: "Use fmap"} # specific for GHC 7.8 compat
20- ignore: {name: "Use isDigit"}
22- ignore:
23 name: "Monad law, left identity"
24 within: Text.Pandoc.App.OutputSettings
26- ignore:
27 name: "Move brackets to avoid $"
28 within: Text.Pandoc.Writers.CslJson
30- ignore:
31 name: "Redundant <$>"
32 within:
33 - Text.Pandoc.Readers.Docx.Parse
34 - Text.Pandoc.Writers.MediaWiki
35 - Text.Pandoc.Writers.OpenDocument
36 - Text.Pandoc.Writers.Powerpoint.Output
37 - Text.Pandoc.Writers.Powerpoint.Presentation
39- ignore:
40 name: "Redundant return"
41 within: Text.Pandoc.Citeproc.BibTeX
43# With recent hlint this rule has given false positives on TH
44- ignore:
45 name: "Redundant bracket"
48- ignore:
49 name: "Use <$>"
50 within:
51 - Text.Pandoc.Readers.LaTeX
52 - Text.Pandoc.Readers.Markdown
54- ignore:
55 name: "Use camelCase"
56 within:
57 - Tests.Writers.Docbook
58 - Tests.Writers.Native
59 - Text.Pandoc.Citeproc
60 - Text.Pandoc.Extensions
61 - Text.Pandoc.Lua.Marshaling.Version
62 - Text.Pandoc.Lua.Module.Pandoc
63 - Text.Pandoc.Lua.Module.Utils
64 - Text.Pandoc.Readers.Odt.ContentReader
65 - Text.Pandoc.Readers.Odt.Namespaces
67- ignore:
68 name: "Use forM_"
69 within:
70 - Text.Pandoc.Readers.DocBook
72- ignore:
73 name: "Use Just"
74 within:
75 - Text.Pandoc.Citeproc.MetaValue
76 - Text.Pandoc.Readers.Odt.ContentReader
77 - Text.Pandoc.Writers.Roff
79- ignore:
80 name: "Use list comprehension"
81 within: Text.Pandoc.Citeproc.BibTeX
83- ignore:
84 name: "Use list literal pattern"
85 within: Text.Pandoc.Citeproc.MetaValue
87# TODO: check
88- ignore:
89 name: "Use second"
90 within:
91 - Text.Pandoc.Citeproc.BibTeX
92 - Text.Pandoc.Citeproc.Locator
94# TODO: check
95- ignore:
96 name: "Use sortOn"
97 within: Text.Pandoc.Writers.OpenDocument
99- ignore:
100 name: "Use tuple-section"
101 within:
102 - Text.Pandoc.Readers.EPUB
103 - Text.Pandoc.ImageSize
104 - Text.Pandoc.Readers.Markdown
105 - Text.Pandoc.Readers.RST
107# fromRight is only in base >= 4.10
108- ignore:
109 name: "Use fromRight"
111# Define some custom infix operators
112# - fixity: infixr 3 ~^#^~