git.iko.soy/typeable/pandoc
on 2.13 help sign in
typeable/pandoc/.hlint.yaml
111 lines 2.6 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: "Eta reduce"}
13- ignore: {name: "Evaluate"}
14- ignore: {name: "Reduce duplication"} # TODO: could be more fine-grained
15- ignore: {name: "Use &&&"}
16- ignore: {name: "Use String"}
17- ignore: {name: "Use camelCase"}
18- ignore: {name: "Use fmap"} # specific for GHC 7.8 compat
19- ignore: {name: "Use isDigit"}
21- ignore:
22 name: "Monad law, left identity"
23 within: Text.Pandoc.App.OutputSettings
25- ignore:
26 name: "Move brackets to avoid $"
27 within: Text.Pandoc.Writers.CslJson
29- ignore:
30 name: "Redundant <$>"
31 within:
32 - Text.Pandoc.Readers.Docx.Parse
33 - Text.Pandoc.Writers.MediaWiki
34 - Text.Pandoc.Writers.OpenDocument
35 - Text.Pandoc.Writers.Powerpoint.Output
36 - Text.Pandoc.Writers.Powerpoint.Presentation
38- ignore:
39 name: "Redundant return"
40 within: Text.Pandoc.Citeproc.BibTeX
42# With recent hlint this rule has given false positives on TH
43- ignore:
44 name: "Redundant bracket"
47- ignore:
48 name: "Use <$>"
49 within:
50 - Text.Pandoc.Readers.LaTeX
51 - Text.Pandoc.Readers.Markdown
53- ignore:
54 name: "Use camelCase"
55 within:
56 - Tests.Writers.Docbook
57 - Tests.Writers.Native
58 - Text.Pandoc.Citeproc
59 - Text.Pandoc.Extensions
60 - Text.Pandoc.Lua.Marshaling.Version
61 - Text.Pandoc.Lua.Module.Pandoc
62 - Text.Pandoc.Lua.Module.Utils
63 - Text.Pandoc.Readers.Odt.ContentReader
64 - Text.Pandoc.Readers.Odt.Namespaces
66- ignore:
67 name: "Use forM_"
68 within:
69 - Text.Pandoc.Readers.DocBook
71- ignore:
72 name: "Use Just"
73 within:
74 - Text.Pandoc.Citeproc.MetaValue
75 - Text.Pandoc.Readers.Odt.ContentReader
76 - Text.Pandoc.Writers.Roff
78- ignore:
79 name: "Use list comprehension"
80 within: Text.Pandoc.Citeproc.BibTeX
82- ignore:
83 name: "Use list literal pattern"
84 within: Text.Pandoc.Citeproc.MetaValue
86# TODO: check
87- ignore:
88 name: "Use second"
89 within:
90 - Text.Pandoc.Citeproc.BibTeX
91 - Text.Pandoc.Citeproc.Locator
93# TODO: check
94- ignore:
95 name: "Use sortOn"
96 within: Text.Pandoc.Writers.OpenDocument
98- ignore:
99 name: "Use tuple-section"
100 within:
101 - Text.Pandoc.Readers.EPUB
102 - Text.Pandoc.ImageSize
103 - Text.Pandoc.Readers.Markdown
104 - Text.Pandoc.Readers.RST
106# fromRight is only in base >= 4.10
107- ignore:
108 name: "Use fromRight"
110# Define some custom infix operators
111# - fixity: infixr 3 ~^#^~