diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3a7d83c..831e6ad 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -17,15 +17,15 @@ jobs: - name: Install Go uses: actions/setup-go@v2 with: - go-version: v1.17.x + go-version: v1.20.x - name: Install dependencies run: | cd /tmp && go install github.com/go-critic/go-critic/cmd/gocritic@latest - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.43.0 + curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.55.2 go install github.com/fzipp/gocyclo/cmd/gocyclo@latest go install golang.org/x/lint/golint@latest - uses: actions/checkout@v2 - uses: actions/setup-python@v2 - uses: pre-commit/action@v2.0.3 with: - extra_args: --all-files \ No newline at end of file + extra_args: --all-files diff --git a/.github/workflows/test-coverage.yml b/.github/workflows/test-coverage.yml index cea2cbc..5e7c092 100644 --- a/.github/workflows/test-coverage.yml +++ b/.github/workflows/test-coverage.yml @@ -19,8 +19,8 @@ jobs: fetch-depth: 2 - uses: actions/setup-go@v2 with: - go-version: '1.17.x' + go-version: '1.20.x' - name: Run coverage run: go test -race -coverprofile=coverage.txt -covermode=atomic - name: Upload coverage to Codecov - run: bash <(curl -s https://codecov.io/bash) \ No newline at end of file + run: bash <(curl -s https://codecov.io/bash) diff --git a/html5.go b/html5.go index 0ad71a4..72c38c4 100644 --- a/html5.go +++ b/html5.go @@ -73,11 +73,12 @@ func (h *h5State) stateBogusComment2() bool { // 12.2.4.49 // 12.2.4.50 // 12.2.4.51 -// state machine spec is confusing since it can only look -// at one character at a time but simply it's comments end by: -// 1) EOF -// 2) ending in --> -// 3) ending in -!> +// +// state machine spec is confusing since it can only look +// at one character at a time but simply it's comments end by: +// 1) EOF +// 2) ending in --> +// 3) ending in -!> func (h *h5State) stateComment() bool { pos := h.pos diff --git a/sqli_token.go b/sqli_token.go index 20504af..a5a76e2 100644 --- a/sqli_token.go +++ b/sqli_token.go @@ -23,7 +23,7 @@ const ( // Look forward for doubling of delimiter // -// case 'foo''bar' -> foo''bar +// case 'foo' 'bar' -> foo' 'bar // // ending quote is not duplicated (i.e. escaped) // since it's the wrong or EOL