Skip to content

Files

Latest commit

 

History

History
13 lines (8 loc) · 515 Bytes

flag-parameter.md

File metadata and controls

13 lines (8 loc) · 515 Bytes

Pattern: Use of flag parameter

Issue: -

Description

If a function controls the flow of another by passing it information on what to do, both functions are said to be control-coupled. Coupling among functions must be minimized for better maintainability of the code. This rule warns on boolean parameters that create a control coupling.

Further Reading