Module unused_macros

A rule to detect unused macros.

Behaviours: hank_rule.

To do

Description

A rule to detect unused macros.

To avoid this warning, remove the unused macros.

Function Index

ignored/2Rule ignore specifications.

Function Details

ignored/2

ignored(Pattern::hank_rule:ignore_pattern(), Name::term()) -> boolean()

Rule ignore specifications. Example:

       -hank([{unused_macros,
               ["ALL", %% Will ignore ?ALL, ?ALL() and ?ALL(X)
                {"ZERO", 0}, %% Will ignore ?ZERO() but not ?ZERO(X) nor ?ZERO
                {"ONE",  1}, %% Will ignore ?ONE(X) but not ?ONE()   nor ?ONE
                {"NONE", none} %% Will ignore ?NONE but not ?NONE(X) nor ?NONE()
               ]},
       


Generated by EDoc