Fix lint & generate docs

This commit is contained in:
kolaente 2021-04-13 22:42:07 +02:00
parent 4e876f2686
commit 8e65b0c16b
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
4 changed files with 25 additions and 21 deletions

View File

@ -1222,7 +1222,7 @@ func updateDone(oldTask *Task, newTask *Task) {
setTaskDatesMonthRepeat(oldTask, newTask)
case TaskRepeatModeFromCurrentDate:
setTaskDatesFromCurrentDateRepeat(oldTask, newTask)
default:
case TaskRepeatModeDefault:
setTaskDatesDefault(oldTask, newTask)
}

View File

@ -7362,9 +7362,9 @@ var doc = `{
"description": "An amount in seconds this task repeats itself. If this is set, when marking the task as done, it will mark itself as \"undone\" and then increase all remindes and the due date by its amount.",
"type": "integer"
},
"repeat_from_current_date": {
"description": "If specified, a repeating task will repeat from the current date rather than the last set date.",
"type": "boolean"
"repeat_mode": {
"description": "Can have three possible values which will trigger when the task is marked as done: 0 = repeats after the amount specified in repeat_after, 1 = repeats all dates each months (ignoring repeat_after), 3 = repeats from the current date rather than the last set date.",
"type": "integer"
},
"start_date": {
"description": "When this task starts.",
@ -7939,9 +7939,9 @@ var doc = `{
"description": "An amount in seconds this task repeats itself. If this is set, when marking the task as done, it will mark itself as \"undone\" and then increase all remindes and the due date by its amount.",
"type": "integer"
},
"repeat_from_current_date": {
"description": "If specified, a repeating task will repeat from the current date rather than the last set date.",
"type": "boolean"
"repeat_mode": {
"description": "Can have three possible values which will trigger when the task is marked as done: 0 = repeats after the amount specified in repeat_after, 1 = repeats all dates each months (ignoring repeat_after), 3 = repeats from the current date rather than the last set date.",
"type": "integer"
},
"start_date": {
"description": "When this task starts.",

View File

@ -7345,9 +7345,9 @@
"description": "An amount in seconds this task repeats itself. If this is set, when marking the task as done, it will mark itself as \"undone\" and then increase all remindes and the due date by its amount.",
"type": "integer"
},
"repeat_from_current_date": {
"description": "If specified, a repeating task will repeat from the current date rather than the last set date.",
"type": "boolean"
"repeat_mode": {
"description": "Can have three possible values which will trigger when the task is marked as done: 0 = repeats after the amount specified in repeat_after, 1 = repeats all dates each months (ignoring repeat_after), 3 = repeats from the current date rather than the last set date.",
"type": "integer"
},
"start_date": {
"description": "When this task starts.",
@ -7922,9 +7922,9 @@
"description": "An amount in seconds this task repeats itself. If this is set, when marking the task as done, it will mark itself as \"undone\" and then increase all remindes and the due date by its amount.",
"type": "integer"
},
"repeat_from_current_date": {
"description": "If specified, a repeating task will repeat from the current date rather than the last set date.",
"type": "boolean"
"repeat_mode": {
"description": "Can have three possible values which will trigger when the task is marked as done: 0 = repeats after the amount specified in repeat_after, 1 = repeats all dates each months (ignoring repeat_after), 3 = repeats from the current date rather than the last set date.",
"type": "integer"
},
"start_date": {
"description": "When this task starts.",

View File

@ -222,10 +222,12 @@ definitions:
when marking the task as done, it will mark itself as "undone" and then
increase all remindes and the due date by its amount.
type: integer
repeat_from_current_date:
description: If specified, a repeating task will repeat from the current date
rather than the last set date.
type: boolean
repeat_mode:
description: 'Can have three possible values which will trigger when the task
is marked as done: 0 = repeats after the amount specified in repeat_after,
1 = repeats all dates each months (ignoring repeat_after), 3 = repeats from
the current date rather than the last set date.'
type: integer
start_date:
description: When this task starts.
type: string
@ -703,10 +705,12 @@ definitions:
when marking the task as done, it will mark itself as "undone" and then
increase all remindes and the due date by its amount.
type: integer
repeat_from_current_date:
description: If specified, a repeating task will repeat from the current date
rather than the last set date.
type: boolean
repeat_mode:
description: 'Can have three possible values which will trigger when the task
is marked as done: 0 = repeats after the amount specified in repeat_after,
1 = repeats all dates each months (ignoring repeat_after), 3 = repeats from
the current date rather than the last set date.'
type: integer
start_date:
description: When this task starts.
type: string