arduino / arduino/Arduino

Highlight unused portions of code on compile

Open
#10,218 0 comments 0 reactions 0 assignees View on GitHub
Component: IDE feature request
Dominant language
Java
Stars
14.6k
Forks
7k
PR merge metrics
No merged PRs in 30d

Description

I among other programmers would find it helpful to highlight unused portions of code on compile/verify with respect to particular values not changing under certain conditions e.g. not a value retrieved from EEPROM or an external source such as input pins or a serial command.

Contributor guide

Open the contributing guide

Research direction

Start by locating the compile/verify path in the Arduino IDE and determine where compiler diagnostics could be converted into highlighted code. The issue does not name files or tests, so the intended analysis and the conditions for considering a value unused need to be defined before implementation. Done should include highlighting unused portions while respecting values that may come from EEPROM, input pins, or serial commands.

Written by the indexing model from the issue text.

Assessment

Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.