Module

Whine.Core.UndesirableFunctions

Package
purescript-whine-core
Repository
collegevine/purescript-whine

Takes a list of functions (fully qualified) that "shouldn't" be used in code (because they're bad/dangerous somehow), with an optional message to e.g. explain why the function shouldn't be used or propose alternatives.

Configuration should look like this:

{
  "Module.f": "Don't use this function, it's unsafe",
  "Another.Module.g": "Use Third.Module.h instead",
  ...
}

There is no "default" configuration. If this rule is not configured, it will not emit any warnings.

#Args Source

type Args = Map { function :: String } (Map (Maybe ModuleName) String)

#rule Source

rule :: Args -> Rule