Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
chore: fix linter
Stevend7f02b94e558
diff --git a/plugin/gomark/parser/blockquote.go b/plugin/gomark/parser/blockquote.goindex 83df1e351..e146c1c0a 100644--- a/plugin/gomark/parser/blockquote.go+++ b/plugin/gomark/parser/blockquote.go@@ -11,7 +11,7 @@ func NewBlockquoteParser() *BlockquoteParser {return &BlockquoteParser{}}-func (p *BlockquoteParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {+func (*BlockquoteParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {matchedTokens := tokenizer.GetFirstLine(tokens)if len(matchedTokens) < 3 {return nil, 0diff --git a/plugin/gomark/parser/bold.go b/plugin/gomark/parser/bold.goindex cb50dc5e8..698fa5b82 100644--- a/plugin/gomark/parser/bold.go+++ b/plugin/gomark/parser/bold.go@@ -11,7 +11,7 @@ func NewBoldParser() InlineParser {return &BoldParser{}}-func (p *BoldParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {+func (*BoldParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {matchedTokens := tokenizer.GetFirstLine(tokens)if len(matchedTokens) < 5 {return nil, 0diff --git a/plugin/gomark/parser/code.go b/plugin/gomark/parser/code.goindex a8462ab55..9cb537252 100644--- a/plugin/gomark/parser/code.go+++ b/plugin/gomark/parser/code.go@@ -11,7 +11,7 @@ func NewCodeParser() *CodeParser {return &CodeParser{}}-func (p *CodeParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {+func (*CodeParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {matchedTokens := tokenizer.GetFirstLine(tokens)if len(matchedTokens) < 3 {return nil, 0diff --git a/plugin/gomark/parser/embedded_content.go b/plugin/gomark/parser/embedded_content.goindex 54125d142..c42b8dd87 100644--- a/plugin/gomark/parser/embedded_content.go+++ b/plugin/gomark/parser/embedded_content.go@@ -11,7 +11,7 @@ func NewEmbeddedContentParser() *EmbeddedContentParser {return &EmbeddedContentParser{}}-func (p *EmbeddedContentParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {+func (*EmbeddedContentParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {matchedTokens := tokenizer.GetFirstLine(tokens)if len(matchedTokens) < 5 {return nil, 0diff --git a/plugin/gomark/parser/escaping_character.go b/plugin/gomark/parser/escaping_character.goindex bbae9f79f..afe6fc371 100644--- a/plugin/gomark/parser/escaping_character.go+++ b/plugin/gomark/parser/escaping_character.go@@ -11,7 +11,7 @@ func NewEscapingCharacterParser() *EscapingCharacterParser {return &EscapingCharacterParser{}}-func (p *EscapingCharacterParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {+func (*EscapingCharacterParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {if len(tokens) < 2 {return nil, 0}diff --git a/plugin/gomark/parser/heading.go b/plugin/gomark/parser/heading.goindex 010074c99..ff94fbed4 100644--- a/plugin/gomark/parser/heading.go+++ b/plugin/gomark/parser/heading.go@@ -11,7 +11,7 @@ func NewHeadingParser() *HeadingParser {return &HeadingParser{}}-func (p *HeadingParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {+func (*HeadingParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {matchedTokens := tokenizer.GetFirstLine(tokens)spaceIndex := tokenizer.FindUnescaped(matchedTokens, tokenizer.Space)if spaceIndex < 0 {diff --git a/plugin/gomark/parser/highlight.go b/plugin/gomark/parser/highlight.goindex ffe6a0c42..ede94964b 100644--- a/plugin/gomark/parser/highlight.go+++ b/plugin/gomark/parser/highlight.go@@ -11,7 +11,7 @@ func NewHighlightParser() InlineParser {return &HighlightParser{}}-func (p *HighlightParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {+func (*HighlightParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {matchedToken := tokenizer.GetFirstLine(tokens)if len(matchedToken) < 5 {return nil, 0diff --git a/plugin/gomark/parser/horizontal_rule.go b/plugin/gomark/parser/horizontal_rule.goindex a163afc3a..0edf4e3da 100644--- a/plugin/gomark/parser/horizontal_rule.go+++ b/plugin/gomark/parser/horizontal_rule.go@@ -11,7 +11,7 @@ func NewHorizontalRuleParser() *HorizontalRuleParser {return &HorizontalRuleParser{}}-func (p *HorizontalRuleParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {+func (*HorizontalRuleParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {matchedTokens := tokenizer.GetFirstLine(tokens)if len(matchedTokens) < 3 {return nil, 0diff --git a/plugin/gomark/parser/image.go b/plugin/gomark/parser/image.goindex fe596567f..d1366d17f 100644--- a/plugin/gomark/parser/image.go+++ b/plugin/gomark/parser/image.go@@ -11,7 +11,7 @@ func NewImageParser() *ImageParser {return &ImageParser{}}-func (p *ImageParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {+func (*ImageParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {matchedTokens := tokenizer.GetFirstLine(tokens)if len(matchedTokens) < 5 {return nil, 0diff --git a/plugin/gomark/parser/italic.go b/plugin/gomark/parser/italic.goindex e55a370cd..3c93a8d00 100644--- a/plugin/gomark/parser/italic.go+++ b/plugin/gomark/parser/italic.go@@ -13,7 +13,7 @@ func NewItalicParser() *ItalicParser {return &ItalicParser{}}-func (p *ItalicParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {+func (*ItalicParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {matchedTokens := tokenizer.GetFirstLine(tokens)if len(matchedTokens) < 3 {return nil, 0diff --git a/plugin/gomark/parser/line_break.go b/plugin/gomark/parser/line_break.goindex 9122bb1d2..7df34f549 100644--- a/plugin/gomark/parser/line_break.go+++ b/plugin/gomark/parser/line_break.go@@ -11,7 +11,7 @@ func NewLineBreakParser() *LineBreakParser {return &LineBreakParser{}}-func (p *LineBreakParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {+func (*LineBreakParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {if len(tokens) == 0 {return nil, 0}diff --git a/plugin/gomark/parser/link.go b/plugin/gomark/parser/link.goindex f7d883c36..9c38740ea 100644--- a/plugin/gomark/parser/link.go+++ b/plugin/gomark/parser/link.go@@ -11,7 +11,7 @@ func NewLinkParser() *LinkParser {return &LinkParser{}}-func (p *LinkParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {+func (*LinkParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {matchedTokens := tokenizer.GetFirstLine(tokens)if len(matchedTokens) < 5 {return nil, 0diff --git a/plugin/gomark/parser/math.go b/plugin/gomark/parser/math.goindex 7105db2f7..2fda2e8a4 100644--- a/plugin/gomark/parser/math.go+++ b/plugin/gomark/parser/math.go@@ -11,7 +11,7 @@ func NewMathParser() *MathParser {return &MathParser{}}-func (p *MathParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {+func (*MathParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {matchedTokens := tokenizer.GetFirstLine(tokens)if len(matchedTokens) < 3 {return nil, 0diff --git a/plugin/gomark/parser/math_block.go b/plugin/gomark/parser/math_block.goindex e7bc326d3..4fd9cc4bd 100644--- a/plugin/gomark/parser/math_block.go+++ b/plugin/gomark/parser/math_block.go@@ -11,7 +11,7 @@ func NewMathBlockParser() *MathBlockParser {return &MathBlockParser{}}-func (p *MathBlockParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {+func (*MathBlockParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {rows := tokenizer.Split(tokens, tokenizer.Newline)if len(rows) < 3 {return nil, 0diff --git a/plugin/gomark/parser/ordered_list.go b/plugin/gomark/parser/ordered_list.goindex 5c3ac2ebb..9e8db9e78 100644--- a/plugin/gomark/parser/ordered_list.go+++ b/plugin/gomark/parser/ordered_list.go@@ -11,7 +11,7 @@ func NewOrderedListParser() *OrderedListParser {return &OrderedListParser{}}-func (p *OrderedListParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {+func (*OrderedListParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {matchedTokens := tokenizer.GetFirstLine(tokens)indent := 0for _, token := range matchedTokens {diff --git a/plugin/gomark/parser/paragraph.go b/plugin/gomark/parser/paragraph.goindex a838be723..af8e7ed78 100644--- a/plugin/gomark/parser/paragraph.go+++ b/plugin/gomark/parser/paragraph.go@@ -13,7 +13,7 @@ func NewParagraphParser() *ParagraphParser {return &ParagraphParser{}}-func (p *ParagraphParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {+func (*ParagraphParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {matchedTokens := tokenizer.GetFirstLine(tokens)if len(matchedTokens) == 0 {return nil, 0diff --git a/plugin/gomark/parser/strikethrough.go b/plugin/gomark/parser/strikethrough.goindex 7f853eb2f..159a7a336 100644--- a/plugin/gomark/parser/strikethrough.go+++ b/plugin/gomark/parser/strikethrough.go@@ -11,7 +11,7 @@ func NewStrikethroughParser() *StrikethroughParser {return &StrikethroughParser{}}-func (p *StrikethroughParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {+func (*StrikethroughParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {matchedTokens := tokenizer.GetFirstLine(tokens)if len(matchedTokens) < 5 {return nil, 0diff --git a/plugin/gomark/parser/subscript.go b/plugin/gomark/parser/subscript.goindex 27cdfca0e..8c6a889a1 100644--- a/plugin/gomark/parser/subscript.go+++ b/plugin/gomark/parser/subscript.go@@ -11,7 +11,7 @@ func NewSubscriptParser() *SubscriptParser {return &SubscriptParser{}}-func (p *SubscriptParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {+func (*SubscriptParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {matchedTokens := tokenizer.GetFirstLine(tokens)if len(matchedTokens) < 3 {return nil, 0diff --git a/plugin/gomark/parser/superscript.go b/plugin/gomark/parser/superscript.goindex 68510873c..f9f62f35d 100644--- a/plugin/gomark/parser/superscript.go+++ b/plugin/gomark/parser/superscript.go@@ -11,7 +11,7 @@ func NewSuperscriptParser() *SuperscriptParser {return &SuperscriptParser{}}-func (p *SuperscriptParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {+func (*SuperscriptParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {matchedTokens := tokenizer.GetFirstLine(tokens)if len(matchedTokens) < 3 {return nil, 0diff --git a/plugin/gomark/parser/table.go b/plugin/gomark/parser/table.goindex 20a134fb3..7d776d326 100644--- a/plugin/gomark/parser/table.go+++ b/plugin/gomark/parser/table.go@@ -11,7 +11,7 @@ func NewTableParser() *TableParser {return &TableParser{}}-func (p *TableParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {+func (*TableParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {rawRows := tokenizer.Split(tokens, tokenizer.Newline)if len(rawRows) < 3 {return nil, 0diff --git a/plugin/gomark/parser/tag.go b/plugin/gomark/parser/tag.goindex 221b74aef..0d2ec0675 100644--- a/plugin/gomark/parser/tag.go+++ b/plugin/gomark/parser/tag.go@@ -11,7 +11,7 @@ func NewTagParser() *TagParser {return &TagParser{}}-func (p *TagParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {+func (*TagParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {matchedTokens := tokenizer.GetFirstLine(tokens)if len(matchedTokens) < 2 {return nil, 0diff --git a/plugin/gomark/parser/task_list.go b/plugin/gomark/parser/task_list.goindex 8e5d11669..339eda841 100644--- a/plugin/gomark/parser/task_list.go+++ b/plugin/gomark/parser/task_list.go@@ -11,7 +11,7 @@ func NewTaskListParser() *TaskListParser {return &TaskListParser{}}-func (p *TaskListParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {+func (*TaskListParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {matchedTokens := tokenizer.GetFirstLine(tokens)indent := 0for _, token := range matchedTokens {diff --git a/plugin/gomark/parser/unordered_list.go b/plugin/gomark/parser/unordered_list.goindex e4148f02c..65cfc416d 100644--- a/plugin/gomark/parser/unordered_list.go+++ b/plugin/gomark/parser/unordered_list.go@@ -11,7 +11,7 @@ func NewUnorderedListParser() *UnorderedListParser {return &UnorderedListParser{}}-func (p *UnorderedListParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {+func (*UnorderedListParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {matchedTokens := tokenizer.GetFirstLine(tokens)indent := 0for _, token := range matchedTokens {