rticommunity / rticommunity/rticonnextdds-examples
Redefined variable in linux_static_analysis.py
Open
Nobody has claimed this yet.
enhancement
good first issue
- Dominant language
- Python
- Stars
- 148
- Forks
- 153
- PR merge metrics
- No merged PRs in 30d
Description
The next lines of code
connextdds_installation_include = Path.home().joinpath(
"rti_connext_dds-{}".format(rti_connext_dds_version), "include"
)
are unnecessary because the variable is defined here
rti_connext_dds_dir = (
Path.home()
.joinpath(
"rti_connext_dds-{}".format(rti_connext_dds_version), "include"
)
.resolve()
)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open linux_static_analysis.py and inspect both assignments and every usage of connextdds_installation_include and rti_connext_dds_dir; the snippets use different variable names, so first confirm whether one is truly redundant. Done means the unnecessary definition is removed without leaving unresolved references or changing the script's behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Refactor
- Difficulty
- 2/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 50/100