aboutsummaryrefslogtreecommitdiff
path: root/.hlint.yaml
blob: 177aa2e32cea1369a50e836eaca860e199140f5a (plain)
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
# HLint configuration file
# https://github.com/ndmitchell/hlint
##########################

# Specify additional command line arguments
#
- arguments: [--color=auto, --cpp-ansi]

# Ignore some builtin hints
#
- ignore: {name: "Avoid lambda"}
- ignore: {name: "Use bimap"}
- ignore: {name: "Use void"}
- ignore: {name: "Eta reduce"}
- ignore: {name: "Evaluate"}
- ignore: {name: "Reduce duplication"} # TODO: could be more fine-grained
- ignore: {name: "Use &&&"}
- ignore: {name: "Use String"}
- ignore: {name: "Use camelCase"}
- ignore: {name: "Use fmap"}  # specific for GHC 7.8 compat
- ignore: {name: "Use isDigit"}

- ignore:
    name: "Monad law, left identity"
    within: Text.Pandoc.App.OutputSettings

- ignore:
    name: "Move brackets to avoid $"
    within: Text.Pandoc.Writers.CslJson

- ignore:
    name: "Redundant <$>"
    within:
      - Text.Pandoc.Readers.Docx.Parse
      - Text.Pandoc.Writers.MediaWiki
      - Text.Pandoc.Writers.OpenDocument
      - Text.Pandoc.Writers.Powerpoint.Output
      - Text.Pandoc.Writers.Powerpoint.Presentation

- ignore:
    name: "Redundant return"
    within: Text.Pandoc.Citeproc.BibTeX

# With recent hlint this rule has given false positives on TH
- ignore:
    name: "Redundant bracket"


- ignore:
    name: "Use <$>"
    within:
      - Text.Pandoc.Readers.LaTeX
      - Text.Pandoc.Readers.Markdown

- ignore:
    name: "Use camelCase"
    within:
      - Tests.Writers.Docbook
      - Tests.Writers.Native
      - Text.Pandoc.Citeproc
      - Text.Pandoc.Extensions
      - Text.Pandoc.Lua.Marshaling.Version
      - Text.Pandoc.Lua.Module.Pandoc
      - Text.Pandoc.Lua.Module.Utils
      - Text.Pandoc.Readers.Odt.ContentReader
      - Text.Pandoc.Readers.Odt.Namespaces

- ignore:
    name: "Use forM_"
    within:
      - Text.Pandoc.Readers.DocBook

- ignore:
    name: "Use Just"
    within:
      - Text.Pandoc.Citeproc.MetaValue
      - Text.Pandoc.Readers.Odt.ContentReader
      - Text.Pandoc.Writers.Roff

- ignore:
    name: "Use list comprehension"
    within: Text.Pandoc.Citeproc.BibTeX

- ignore:
    name: "Use list literal pattern"
    within: Text.Pandoc.Citeproc.MetaValue

# TODO: check
- ignore:
    name: "Use second"
    within:
      - Text.Pandoc.Citeproc.BibTeX
      - Text.Pandoc.Citeproc.Locator

# TODO: check
- ignore:
    name: "Use sortOn"
    within: Text.Pandoc.Writers.OpenDocument

- ignore:
    name: "Use tuple-section"
    within:
      - Text.Pandoc.Readers.EPUB
      - Text.Pandoc.ImageSize
      - Text.Pandoc.Readers.Markdown
      - Text.Pandoc.Readers.RST

# fromRight is only in base >= 4.10
- ignore:
    name: "Use fromRight"

# Define some custom infix operators
# - fixity: infixr 3 ~^#^~