mirror of
https://github.com/github/codeql.git
synced 2026-01-29 06:12:58 +01:00
Add models for library changes
This commit is contained in:
@@ -46,6 +46,10 @@ module ArchiveZip {
|
||||
hasQualifiedName("archive/zip", "Writer", "Create") and
|
||||
(inp.isResult(0) and outp.isReceiver())
|
||||
or
|
||||
// signature: func (*Writer) Copy(f *File) error
|
||||
hasQualifiedName("archive/zip", "Writer", "Create") and
|
||||
(inp.isParameter(0) and outp.isReceiver())
|
||||
or
|
||||
// signature: func (*Writer) CreateHeader(fh *FileHeader) (io.Writer, error)
|
||||
hasQualifiedName("archive/zip", "Writer", "CreateHeader") and
|
||||
(inp.isResult(0) and outp.isReceiver())
|
||||
|
||||
@@ -16,6 +16,10 @@ module IoFs {
|
||||
FunctionOutput outp;
|
||||
|
||||
FunctionModels() {
|
||||
//signature: func FileInfoToDirEntry(info FileInfo) DirEntry
|
||||
this.hasQualifiedName(packagePath(), "FileInfoToDirEntry") and
|
||||
(inp.isParameter(0) and outp.isResult())
|
||||
or
|
||||
//signature: func Glob(fsys FS, pattern string) (matches []string, err error)
|
||||
this.hasQualifiedName(packagePath(), "Glob") and
|
||||
(inp.isParameter(0) and outp.isResult(0))
|
||||
|
||||
@@ -56,6 +56,10 @@ module Strconv {
|
||||
hasQualifiedName("strconv", "Quote") and
|
||||
(inp.isParameter(0) and outp.isResult())
|
||||
or
|
||||
// signature: func QuotedPrefix(s string) (string, error)
|
||||
hasQualifiedName("strconv", "QuotedPrefix") and
|
||||
(inp.isParameter(0) and outp.isResult(0))
|
||||
or
|
||||
// signature: func QuoteToASCII(s string) string
|
||||
hasQualifiedName("strconv", "QuoteToASCII") and
|
||||
(inp.isParameter(0) and outp.isResult())
|
||||
|
||||
Reference in New Issue
Block a user