Automattic / Automattic/harper

Missing code action to add TODO to dictionary

Open
#997 10 comments 4 reactions 0 assignees View on GitHub
bug dictionary linting
Dominant language
Rust
Stars
15.4k
Forks
627
Avg merge
1d 15h
Merged PRs (30d)
106

Description

**Describe the bug**
I don't want the string 'TODO' to be an error but I can't get rid of it

**To Reproduce**
Steps to reproduce the behavior:
1. Write a TODO in neovim
2. See that the word TODO is marked as an error by harper
3. Open list of code actions
4. Don't see option to add TODO to dictionary

**Expected behavior**
I use TODOs all the time and it's annoying that I can't just add it to my dictionary and never see the error again.

**Screenshots**

![Image](https://github.com/user-attachments/assets/220ff877-5f05-44f7-99f7-0113da12a68c)

**Platform**
NVIM v0.10.2
Build type: RelWithDebInfo
LuaJIT 2.1.1720049189

harper 0.26.0

**Additional context**
Unsure if this is relevant at all, but this is a comment in a python file.

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in Neovim 0.10.2 with harper 0.26.0 by placing TODO in a Python file and opening code actions. Trace the Neovim code-action path responsible for dictionary suggestions. Done means the code-action list offers adding TODO to the dictionary and the diagnostic no longer appears afterward.

Written by the indexing model from the issue text.

Assessment

Tech stack
neovim, rust
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.