Commit Graph

270 Commits

Author SHA1 Message Date
Taus
5b261d88bb Support super with instanceof 2021-10-15 12:27:24 +00:00
Anders Schack-Mulligen
684600cc54 Merge pull request #104 from github/bidirectional-import
Query for finding missing or unwanted bidirectional imports of abstract classes
2021-10-15 14:02:58 +02:00
Taus
8ceeb71c8e Merge pull request #117 from github/tausbn/update-extractor-generator
Upgrade the extractor generator
2021-10-15 13:59:32 +02:00
Anders Schack-Mulligen
b0bbbc54d0 New query: Don't use library annotation. 2021-10-15 13:35:25 +02:00
Erik Krogh Kristensen
1a79b13bdc fix performance 2021-10-15 13:32:39 +02:00
Taus
bd5243884a Merge pull request #116 from github/erik-krogh/qlpack-test
add test for qlpacks
2021-10-15 12:33:34 +02:00
Taus
89d2f93a16 Merge branch 'main' into tausbn/update-extractor-generator 2021-10-15 12:28:01 +02:00
Anders Schack-Mulligen
6c70f5299d Remove some FPs. 2021-10-15 12:05:02 +02:00
Taus
310ea6b69c Merge pull request #112 from github/tausbn/import-language-first
Query: Noninitial imports of the standard library
2021-10-15 11:30:02 +02:00
Erik Krogh Kristensen
741e4a7a38 add test for qlpacks, and get them to work 2021-10-15 11:24:18 +02:00
Taus
7f80514144 Autoformat 2021-10-15 09:21:24 +00:00
Taus
816bfbe4ea Upgrade the extractor generator
For now, the grammar still includes dbscheme and YAML, but with this
change we should be able to separate these out into their own grammars.
2021-10-15 09:16:34 +00:00
Erik Krogh Kristensen
e3d42a1fba remove leftover test predicate 2021-10-15 10:58:44 +02:00
Geoffrey White
ee7ac53bf6 Merge pull request #107 from github/missing-qldoc
Add ql/missing-qldoc query.
2021-10-15 09:41:45 +01:00
Taus
fed640b21f Merge pull request #114 from github/erik-krogh/consistency
fix the signature of regexpCapture and regexpFind
2021-10-15 10:12:19 +02:00
Mathias Vorreiter Pedersen
e1871a2508 Merge pull request #86 from github/use-set-literal
New query: Use set literal
2021-10-15 08:55:30 +01:00
Erik Krogh Kristensen
541dcb365f hook up consistency query 2021-10-15 09:31:54 +02:00
Erik Krogh Kristensen
29ebe7b13d add test 2021-10-15 09:31:54 +02:00
Erik Krogh Kristensen
1641d0fa93 update expected output 2021-10-15 09:31:54 +02:00
Erik Krogh Kristensen
f19dd78d40 fix getArity on PredicateOrBuiltin 2021-10-15 09:31:53 +02:00
Erik Krogh Kristensen
c31bd7a1e8 fix the signature of regexpCapture and regexpFind 2021-10-15 09:31:31 +02:00
Erik Krogh Kristensen
016ff2af63 fix implicit this 2021-10-14 22:37:17 +02:00
Taus
71f69997e2 Autoformat 2021-10-14 16:06:19 +00:00
Taus
c6a52ed2ea Query: Noninitial imports of the standard library
Finds a single result in

```
semmle.code.java.dataflow.internal.rangeanalysis.SignAnalysisSpecific.qll
```
which starts with

```ql
module Private {
  import semmle.code.java.dataflow.RangeUtils as RU
  private import semmle.code.java.dataflow.SSA as Ssa
  private import semmle.code.java.controlflow.Guards as G
  private import java as J
  private import Sign
  ...
```
2021-10-14 15:44:23 +00:00
Geoffrey White
0a3705b7af Add ql/missing-qldoc query. 2021-10-14 15:45:03 +01:00
Mathias Vorreiter Pedersen
3e2fb5a64e Merge pull request #105 from github/aschackmull/transitive-step
New performance query: Transitive step in recursion.
2021-10-14 15:28:33 +01:00
Joe Farebrother
9b786c27c0 Fix isAbstract 2021-10-14 15:03:19 +01:00
Joe Farebrother
ec6a8b933c Query for finding missing or unwanted bidirectional imports of abstract classes 2021-10-14 15:02:08 +01:00
Anders Schack-Mulligen
ec292dbffd New performance query: Transitive step in recursion. 2021-10-14 15:42:40 +02:00
Geoffrey White
76880e8f93 Autoformat and fix test. 2021-10-14 14:31:42 +01:00
Geoffrey White
6af28e37ae We can use PredicateOrBuiltin now. 2021-10-14 13:59:47 +01:00
Geoffrey White
9b52ad2d3d Work around import of internal file. 2021-10-14 13:59:40 +01:00
Geoffrey White
a665e94805 Merge branch 'main' into use-set-literal 2021-10-14 13:55:40 +01:00
Mathias Vorreiter Pedersen
78caab4214 Merge pull request #81 from github/doc-style
Add some queries for qldoc style
2021-10-14 13:46:48 +01:00
Mathias Vorreiter Pedersen
9a15feae29 Merge pull request #89 from github/esbena/proper-bundle
Attempt to use a proper query pack
2021-10-14 13:24:14 +01:00
Esben Sparre Andreasen
a64660aae1 build a query pack separately, with a compilation cache 2021-10-14 14:09:01 +02:00
Anders Schack-Mulligen
d7fd1e0718 Merge pull request #80 from github/aschackmull/calltarget-astnode
Refactor Call.getTarget to be an AstNode
2021-10-14 13:35:50 +02:00
Anders Schack-Mulligen
c0f1d365ba This is slightly faster without magic. 2021-10-14 13:12:26 +02:00
Anders Schack-Mulligen
cd3839f621 Fix semantic merge conflict 2021-10-14 13:12:11 +02:00
Joe Farebrother
b4a05804fa Also allow deprecated headers 2021-10-14 12:09:19 +01:00
Joe Farebrother
0f71066aaa Allow comments preceded by INTERNAL 2021-10-14 12:09:19 +01:00
Joe Farebrother
fd3c53da9b Add query for class docs that don't start with an article.
Returns quite a few results, many of which seem to be TPs.
2021-10-14 12:09:18 +01:00
Joe Farebrother
323ccc8cea Add query to find non US spelling 2021-10-14 12:09:18 +01:00
Anders Schack-Mulligen
350620d44a Fix bad magic. 2021-10-14 13:07:53 +02:00
Anders Schack-Mulligen
6b4dbc3fe5 Fix compile error. 2021-10-14 13:07:53 +02:00
Anders Schack-Mulligen
ff3aba0f5d Adjust expected output. 2021-10-14 13:07:53 +02:00
Anders Schack-Mulligen
ffc25f8f89 Fix semantic merge conflict. 2021-10-14 13:06:41 +02:00
Anders Schack-Mulligen
41a0bf154f Move some AstNodes to Ast.qll, fix compilation error. 2021-10-14 13:06:41 +02:00
Anders Schack-Mulligen
7955a8b6c8 Refactor 2021-10-14 13:06:41 +02:00
Erik Krogh Kristensen
6af27c23ec lowercase query id 2021-10-14 12:59:27 +02:00