Files
codeql/go/ql/lib/change-notes/released/2.1.1.md
2024-10-15 10:29:25 +00:00

1.2 KiB

2.1.1

Minor Analysis Improvements

  • Added member predicates StructTag.hasOwnFieldWithTag and Field.getTag, which enable CodeQL queries to examine struct field tags.
  • Added member predicate InterfaceType.hasPrivateMethodWithQualifiedName, which enables CodeQL queries to distinguish interfaces with matching non-exported method names that are declared in different packages, and are therefore incompatible.
  • Local source models with the stdin source kind have been added for the variable os.Stdin and the functions fmt.Scan, fmt.Scanf and fmt.Scanln. You can optionally include threat models as appropriate when using the CodeQL CLI and in GitHub code scanning. For more information, see Analyzing your code with CodeQL queries and Customizing your advanced setup for code scanning.