Skip to content

Commit

Permalink
cmd/govulncheck: add comment capability to fixups
Browse files Browse the repository at this point in the history
Change-Id: I24cc53840d96e97507243472bf6252883f895034
Reviewed-on: https://go-review.googlesource.com/c/vuln/+/571541
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Maceo Thompson <maceothompson@google.com>
Run-TryBot: Zvonimir Pavlinovic <zpavlinovic@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
  • Loading branch information
zpavlinovic committed Mar 28, 2024
1 parent 90e2e5b commit 7838670
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions cmd/govulncheck/testdata/stdlib/fixups.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
[
{
"pattern": "\\.go:(\\d+):(\\d+):",
"replace": ".go:\u003cl\u003e:\u003cc\u003e:"
"replace": ".go:\u003cl\u003e:\u003cc\u003e:",
"comment": " mask line and column with <l> and <c> placeholders, resp."
},
{
"pattern": "\\\"line\\\":(\\s)*(\\d+)",
"replace": "\"line\": \u003cl\u003e"
"replace": "\"line\": \u003cl\u003e",
"comment": "modify position lines in json"
},
{
"pattern": "\\\"column\\\":(\\s)*(\\d+)",
"replace": "\"column\": \u003cc\u003e"
"replace": "\"column\": \u003cc\u003e",
"comment": "modify position columns in json"
},
{
"pattern": "\\\"offset\\\":(\\s)*(\\d+)",
"replace": "\"offset\": \u003co\u003e"
"replace": "\"offset\": \u003co\u003e",
"comment": "modify position offsets in json"
},
{
"pattern": "Scanning your code and (\\d+) packages across (\\d+)",
Expand Down

0 comments on commit 7838670

Please sign in to comment.