Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TODO-Tree Extension #214

Merged
merged 3 commits into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 39 additions & 12 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -166,21 +166,48 @@
"doxdocgen.generic.useGitUserName": true,
// Todo Tree Extention Settings
"todo-tree.general.tags": [
"FIXME:",
"TODO:",
"LEAD:",
"ISSUE NOTE:"
"TODO",
"BUG",
"HACK",
"FIXME",
"LEAD",
"ISSUE NOTE",
"TEST",
"[ ]",
"[x]"
],
"todo-tree.highlights.defaultHighlight": {
"icon": "alert",
"type": "text",
"foreground": "#00ff00",
"background": "#ffffff",
"opacity": 50,
"iconColour": "#00ff00"
},
"todo-tree.highlights.customHighlight": {
"TODO": {
"icon": "check",
"icon": "bookmark",
"type": "line",
"iconColour": "#d000ff",
"foreground": "#ffffff",
"background": "#d000ff"
},
"BUG": {
"icon": "bug",
"type": "line",
"iconColour": "#ff8c00",
"foreground": "#ffffff",
"background": "#ff8c00"
},
"HACK": {
"icon": "circle-slash",
"type": "line",
"iconColour": "#ff1e00",
"foreground": "#ffffff",
"background": "#ff1e00"
},
"FIXME": {
"icon": "beaker",
"icon": "alert-fill",
"type": "line",
"iconColour": "#ff0000",
"foreground": "#ffffff",
Expand All @@ -189,22 +216,22 @@
"LEAD": {
"icon": "person",
"type": "line",
"iconColour": "#ffffff",
"foreground": "#000000",
"background": "#ffffff"
"iconColour": "#0700d8",
"foreground": "#ffffff",
"background": "#0700d8"
},
"ISSUE NOTE": {
"icon": "book",
"type": "line",
"iconColour": "#808080",
"foreground": "#000000",
"foreground": "#ffffff",
"background": "#808080"
},
"TEST": {
"icon": "book",
"icon": "beaker",
"type": "line",
"iconColour": "#c5cb04",
"foreground": "#000000",
"foreground": "#ffffff",
"background": "#ccd514"
}
},
Expand Down
15 changes: 15 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,21 @@ Commit names should be no more than 50 characters. They should have `#<issue num

Pull Request names should be no more than 50 characters. The description should be quite detailed in everything that was added and should have `closed #<issue num>` to mark that the pull request will fix an issue.

## Marking Issues in Code

### Utilizing TODO-Trees

A list of action items can be built in the TODO extension tab using these keywords to highlight and mark sections of code for later review:
- // TODO: Implement the behavior specific to the Approaching Object state
- // BUG: This breaks occasionally.
- // HACK: This is bad, never do this.
- // FIXME: Broken
- // LEAD: Check this out...
- // ISSUE NOTE: This is messed up.
- // TEST: Make sure this works, write unit tests.
- // [ ] This is a list item.
- // [x] This is a checked list item.

## Styleguides

### Variable Names
Expand Down
2 changes: 1 addition & 1 deletion src/states/ApproachingObjectState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ namespace statemachine
******************************************************************************/
void ApproachingObjectState::Run()
{
// TODO: Implement the behavior specific to the Approaching Object state
// TODO: Implement the behavior specific to the Approaching Object state.
LOG_DEBUG(logging::g_qSharedLogger, "ApproachingObjectState: Running state-specific behavior.");
}

Expand Down