pandoc/.hlint.yaml

118 lines
2.7 KiB
YAML
Raw Normal View History

2017-10-29 21:01:20 +01:00
# HLint configuration file
# https://github.com/ndmitchell/hlint
##########################
# Specify additional command line arguments
#
- arguments: [--color=auto, --cpp-ansi]
2017-10-29 21:01:20 +01:00
# Ignore some builtin hints
#
2017-10-29 21:01:20 +01:00
- ignore: {name: "Avoid lambda"}
- ignore: {name: "Eta reduce"}
- ignore: {name: "Evaluate"}
- ignore: {name: "Reduce duplication"} # TODO: could be more fine-grained
2017-10-29 21:01:20 +01:00
- 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
# TODO: check
- ignore:
name: "Redundant bracket"
within:
- Text.Pandoc.Citeproc
- Text.Pandoc.Citeproc.BibTeX
- Text.Pandoc.Citeproc.MetaValue
- Text.Pandoc.Options
- Text.Pandoc.App.Opt
- Text.Pandoc.Extensions
- 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
2017-10-29 21:01:20 +01:00
- 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
2020-12-31 01:04:09 +01:00
# fromRight is only in base >= 4.10
- ignore:
name: "Use fromRight"
2017-10-29 21:01:20 +01:00
# Define some custom infix operators
# - fixity: infixr 3 ~^#^~