todoman
todoman copied to clipboard
Check for bad todos
I'd like to implement a check, report and repair command to do things like:
- Detect naive datetimes
- Detect missing timezones
- Scan for todos which fail to load.
- Find duplicate UIDs
- Etc.
The end goal is to:
- Have
checkto inform the user of anything broken. - Have
repairto attempt to fix fixable issues (eg: missing timezone, duplicate UIDs). - Have
reportto generate a copy-pasteable report that users can provide for an issue.
There's a certain overlap here, vdirsyncer can already fix duplicate UIDs. It also refuses to sync storages with duplicate UIDs.
I think check should happen at every start of todoman, i.e. warn every time about broken things.
report sounds nice in theory, though I'm unsure how you want to do automatic anonymization of user data.