Make difference between identifiers declared vs. used
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- css, typescript
- Domain
- devtools
Research direction
The issue names no files, tests, or entry points. Start by locating the analyzer logic for CSS container names and custom properties, then trace how declarations and references are represented. Done means the analysis distinguishes declared, used, both, and neither for the examples in the issue.
Written by the indexing model from the issue text.
Description
For analyzing potential unused code it would be useful to know whether some 'variables' are either declared, used, both or none.
Container names
@container my-layout (inline-size: 100px) {}
main {
container-name: my-layout;
/* or shorthand */
container: my-layout / inline-size;
}
.undeclared {
container-name: i-dont-exist;
}
Custom properties
:root {
--example: 1;
column-count: var(--example);
}
.unused {
--unused: 2;
}
.undeclared {
column-count: var(--whoops);
}
.undeclared-fallback {
column-count: var(--whoops, var(--whoopsie));
}
- Dominant language
- TypeScript
- Stars
- 366
- Forks
- 15
- Avg merge
- 3h 23m
- Merged PRs (30d)
- 3
Contributor guide
No contributing guide indexed for this repository
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.
More from projectwallace/css-analyzer
-
🐛 defect
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
projectwallace/css-analyzer#612 ·
-
✨ enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
projectwallace/css-analyzer#605 ·
-
Difficulty 5/5 Over a week Newbie friendliness 45/100
projectwallace/css-analyzer#613 · 3 comments ·
-
✨ enhancement
Difficulty 3/5 1-2 days Newbie friendliness 68/100
projectwallace/css-analyzer#607 ·
-
Add value-level helper to extract keyframe names referenced in `animation` / `animation-name` values Open✨ enhancement
Difficulty 3/5 1-2 days Newbie friendliness 68/100
projectwallace/css-analyzer#606 ·
All issues in projectwallace/css-analyzer
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
danielmiessler/LifeOS#2218 ·