rticommunity / rticommunity/rticonnextdds-examples

Redefined variable in linux_static_analysis.py

Open
#405 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.