Summary
Remove the unused directory = path assignment from generate_documentation_on_path().
Rationale
The function now uses path directly for the skip-list check and for documentation generation, so the local directory variable is unused.
Affected area
scripts/gen_doc.py
generate_documentation_on_path()
Required changes
Delete the unused assignment while preserving the existing path.as_posix() check against DIRS_TO_SKIP.
Acceptance criteria
generate_documentation_on_path() no longer assigns path to an unused local variable.
- The configured-directory skip behavior remains unchanged.
Backlinks
Requested by: @tisnik
Summary
Remove the unused
directory = pathassignment fromgenerate_documentation_on_path().Rationale
The function now uses
pathdirectly for the skip-list check and for documentation generation, so the localdirectoryvariable is unused.Affected area
scripts/gen_doc.pygenerate_documentation_on_path()Required changes
Delete the unused assignment while preserving the existing
path.as_posix()check againstDIRS_TO_SKIP.Acceptance criteria
generate_documentation_on_path()no longer assignspathto an unused local variable.Backlinks
Requested by: @tisnik