Skip to content

Commit 8c73ab9

Browse files
committed
refactor: minor linter improvements, add cspell ignore words for vscode users
1 parent d9a13c4 commit 8c73ab9

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

.vscode/settings.json

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"cSpell.words": [
3+
"blockquote",
4+
"fieldset",
5+
"figcaption",
6+
"formatstring",
7+
"goexpression",
8+
"keygen",
9+
"strs",
10+
"templ"
11+
]
12+
}

parser/v2/conditionalattributeparser.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var conditionalAttribute parse.Parser[ConditionalAttribute] = conditionalAttribu
99

1010
type conditionalAttributeParser struct{}
1111

12-
func (_ conditionalAttributeParser) Parse(pi *parse.Input) (r ConditionalAttribute, ok bool, err error) {
12+
func (conditionalAttributeParser) Parse(pi *parse.Input) (r ConditionalAttribute, ok bool, err error) {
1313
start := pi.Index()
1414

1515
// Strip leading whitespace and look for `if `.

parser/v2/forexpressionparser.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var forExpression parse.Parser[Node] = forExpressionParser{}
99

1010
type forExpressionParser struct{}
1111

12-
func (_ forExpressionParser) Parse(pi *parse.Input) (n Node, ok bool, err error) {
12+
func (forExpressionParser) Parse(pi *parse.Input) (n Node, ok bool, err error) {
1313
var r ForExpression
1414
start := pi.Index()
1515

parser/v2/switchexpressionparser.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var switchExpression parse.Parser[Node] = switchExpressionParser{}
99

1010
type switchExpressionParser struct{}
1111

12-
func (_ switchExpressionParser) Parse(pi *parse.Input) (n Node, ok bool, err error) {
12+
func (switchExpressionParser) Parse(pi *parse.Input) (n Node, ok bool, err error) {
1313
var r SwitchExpression
1414
start := pi.Index()
1515

0 commit comments

Comments
 (0)