git.iko.soy/typeable/pandoc
on rc/test4 help sign in
typeable/pandoc/.hlint.yaml
86 lines 2.9 kB history raw
1# HLint configuration file
2# https://github.com/ndmitchell/hlint
3##########################
5# This file contains a template configuration file, which is typically
6# placed as .hlint.yaml in the root of your project
9# Specify additional command line arguments
11- arguments: [--color, --cpp-ansi]
14# Control which extensions/flags/modules/functions can be used
16# - extensions:
17# - default: false # all extension are banned by default
18# - name: [PatternGuards, ViewPatterns] # only these listed extensions can be used
19# - {name: CPP, within: CrossPlatform} # CPP can only be used in a given module
21# - flags:
22# - {name: -w, within: []} # -w is allowed nowhere
24# - modules:
25# - {name: [Data.Set, Data.HashSet], as: Set} # if you import Data.Set qualified, it must be as 'Set'
26# - {name: Control.Arrow, within: []} # Certain modules are banned entirely
28# - functions:
29# - {name: unsafePerformIO, within: []} # unsafePerformIO can only appear in no modules
32# Add custom hints for this project
34# Will suggest replacing "wibbleMany [myvar]" with "wibbleOne myvar"
35# - error: {lhs: "wibbleMany [x]", rhs: wibbleOne x}
38# Turn on hints that are off by default
40# Ban "module X(module X) where", to require a real export list
41# - warn: {name: Use explicit module export list}
43# Replace a $ b $ c with a . b $ c
44# - group: {name: dollar, enabled: true}
46# Generalise map to fmap, ++ to <>
47# - group: {name: generalise, enabled: true}
50# Ignore some builtin hints
51# - ignore: {name: Use let}
52# - ignore: {name: Use const, within: SpecialModule} # Only within certain modules
53# - ignore: {name: "Use section"}
54# - ignore: {name: "Use camelCase"}
55# - ignore: {name: "Use list comprehension"}
56# - ignore: {name: "Redundant if"}
57- ignore: {name: "Avoid lambda"}
58- ignore: {name: "Eta reduce"}
59- ignore: {name: "Evaluate"}
60- ignore: {name: "Monad law, left identity", module: "Text.Pandoc.App.OutputSettings"}
61- ignore: {name: "Reduce duplication", module: "Text.Pandoc.Readers.Markdown"}
62- ignore: {name: "Use &&&"}
63- ignore: {name: "Use String"}
64- ignore: {name: "Use fmap"} # specific for GHC 7.8 compat
65- ignore: {name: "Use forM_", module: "Text.Pandoc.Readers.DocBook"}
66- ignore: {name: "Use isDigit"}
67- ignore: {name: "Use tuple-section", module: "Text.Pandoc.Readers.EPUB"}
68- ignore: {name: "Use uncurry", module: "Text.Pandoc.Readers.Docx.Combine"}
69- ignore:
70 name: "Use <$>"
71 within:
72 - Text.Pandoc.Readers.LaTeX
73 - Text.Pandoc.Readers.Markdown
74- ignore:
75 name: "Use camelCase"
76 within:
77 - Tests.Writers.Docbook
78 - Tests.Writers.Native
79 - Text.Pandoc.Extensions
80 - Text.Pandoc.Lua.Marshaling.Version
81 - Text.Pandoc.Lua.Module.Utils
82 - Text.Pandoc.Readers.Odt.ContentReader
83 - Text.Pandoc.Readers.Odt.Namespaces
85# Define some custom infix operators
86# - fixity: infixr 3 ~^#^~