The get_oneline_needs option in the [codelinks.projects.<name>.analyse] section of ubproject.toml has no effect. Regardless of the user-specified value, it is always overridden to True inside generate_project_configs().
Location
config.py:879 in generate_project_configs():
def generate_project_configs(
projects: dict[str, Any],
conf_dir: Path,
) -> dict[str, ProjectConfig]:
...
for project_name, project_data in projects.items():
...
analyse_config = AnalyseConfig(**analyse_section)
analyse_config.get_oneline_needs = True # force to get oneline_need <-- BUG
...
Impact:
All code paths go through this function:
- CLI (cmd.py →
generate_project_configs())
- Sphinx build (source_tracing.py →
generate_project_configs())
- Config loading (config.py →
generate_project_configs())
This means setting get_oneline_needs = false in ubproject.toml is silently ignored everywhere - there is no way for the user to disable oneline need extraction.
Expected behavior:
The user-specified value of get_oneline_needs should be respected. If a user sets get_oneline_needs = false, the analyse step should skip oneline need extraction.
Steps to reproduce:
Set get_oneline_needs = false in ubproject.toml under [codelinks.projects.<name>.analyse]
Run codelinks analyse ubproject.toml
Observe that oneline needs are still extracted despite the config
The
get_oneline_needsoption in the[codelinks.projects.<name>.analyse]section ofubproject.tomlhas no effect. Regardless of the user-specified value, it is always overridden toTrueinsidegenerate_project_configs().Location
config.py:879 in
generate_project_configs():Impact:
All code paths go through this function:
generate_project_configs())generate_project_configs())generate_project_configs())This means setting
get_oneline_needs = falsein ubproject.toml is silently ignored everywhere - there is no way for the user to disable oneline need extraction.Expected behavior:
The user-specified value of get_oneline_needs should be respected. If a user sets
get_oneline_needs = false, the analyse step should skip oneline need extraction.Steps to reproduce:
Set
get_oneline_needs = falseinubproject.tomlunder[codelinks.projects.<name>.analyse]Run codelinks analyse
ubproject.tomlObserve that oneline needs are still extracted despite the config