diff --git a/change-notes/2020-11-03-underscore-assigns.md b/change-notes/2020-11-03-underscore-assigns.md new file mode 100644 index 00000000000..d8f7accfeda --- /dev/null +++ b/change-notes/2020-11-03-underscore-assigns.md @@ -0,0 +1,2 @@ +lgtm,codescanning +* Fixed a bug that meant partially-ignored parallel assignments, such as `x, _ := a, b`, could produce an incorrect control-flow graph. diff --git a/change-notes/2020-11-19-dataflow-edges.md b/change-notes/2020-11-19-dataflow-edges.md new file mode 100644 index 00000000000..827b33ce436 --- /dev/null +++ b/change-notes/2020-11-19-dataflow-edges.md @@ -0,0 +1,2 @@ +lgtm,codescanning +* Fixed a bug that meant data-flow through a checked typecast (e.g. `cast, ok = x.(*Type)`) could be missed. diff --git a/change-notes/2020-11-27-guarding-functions.md b/change-notes/2020-11-27-guarding-functions.md new file mode 100644 index 00000000000..5a51d59ef43 --- /dev/null +++ b/change-notes/2020-11-27-guarding-functions.md @@ -0,0 +1,2 @@ +lgtm,codescanning +* Improved ability to recognise a sanitizing function (for example, `func f(s string) bool { return isClean(s) }`). This may reduce false-positives for any query employing a sanitizing test. diff --git a/change-notes/2020-12-01-fmt-errorf.md b/change-notes/2020-12-01-fmt-errorf.md new file mode 100644 index 00000000000..e90c5967631 --- /dev/null +++ b/change-notes/2020-12-01-fmt-errorf.md @@ -0,0 +1,2 @@ +lgtm,codescanning +* Recognised function `fmt.Errorf` to always return non-nil strings. This may reduce false-positives that depend on a function possibly returning nil. diff --git a/change-notes/2020-12-23-regexp-anchors.md b/change-notes/2020-12-23-regexp-anchors.md new file mode 100644 index 00000000000..4574cf1c10f --- /dev/null +++ b/change-notes/2020-12-23-regexp-anchors.md @@ -0,0 +1,2 @@ +lgtm,codescanning +* Query `go/regex/missing-regexp-anchor` now recognizes the start- and end-of-text anchors `\A` and `\z`. This reduces false-positives relating to unanchored expressions.