mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
make a shared library of the typo database
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
import javascript
|
||||
// import typo database (generated from Wikipedia, licensed under CC BY-SA 3.0)
|
||||
import TypoDatabase
|
||||
import codeql.typos.TypoDatabase
|
||||
|
||||
/**
|
||||
* Holds if `wrong` is a misspelling of `right` that might be intentional or
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -9,3 +9,4 @@ defaultSuiteFile: codeql-suites/javascript-code-scanning.qls
|
||||
dependencies:
|
||||
codeql/javascript-all: "*"
|
||||
codeql/suite-helpers: "*"
|
||||
codeql/typos: "*"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import ql
|
||||
private import NodeName
|
||||
private import TypoDatabase
|
||||
private import codeql.typos.TypoDatabase
|
||||
|
||||
predicate misspelling(string wrong, string right, string mistake) {
|
||||
mistake = "common misspelling" and
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -5,3 +5,5 @@ dbscheme: ql.dbscheme
|
||||
suites: codeql-suites
|
||||
defaultSuiteFile: codeql-suites/ql-code-scanning.qls
|
||||
extractor: ql
|
||||
dependencies:
|
||||
codeql/typos: "*"
|
||||
|
||||
9035
shared/typos/codeql/typos/TypoDatabase.qll
Normal file
9035
shared/typos/codeql/typos/TypoDatabase.qll
Normal file
File diff suppressed because it is too large
Load Diff
4
shared/typos/qlpack.yml
Normal file
4
shared/typos/qlpack.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
name: codeql/typos
|
||||
version: 0.0.1-dev
|
||||
groups: shared
|
||||
library: true
|
||||
Reference in New Issue
Block a user