Module single_use_hrl_attrs

A rule to detect hrl attributes used in just one module: Attributes supported: -define -record It will suggest to place those attributes inside the module to avoid having (and including) a hrl file.

Behaviours: hank_rule.

Description

A rule to detect hrl attributes used in just one module: Attributes supported: -define -record It will suggest to place those attributes inside the module to avoid having (and including) a hrl file.

Function Index

analyze/2This builds a list of header files with its attributes.

Function Details

analyze/2

analyze(FilesAndASTs::hank_rule:asts(), Context::hank_context:t()) -> [hank_rule:result()]

This builds a list of header files with its attributes. Then traverse the file ASTs mapping their macros and records And checks whether they were used just once.


Generated by EDoc