Skip to content

Commit fed2e65

Browse files
committed
rm script link
1 parent 178b0fb commit fed2e65

File tree

1 file changed

+9
-25
lines changed

1 file changed

+9
-25
lines changed

content/docs/static-analysis/codeql/10-advanced.md

Lines changed: 9 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -51,58 +51,42 @@ If you know you will write more than one query pack, we recommend creating the f
5151
│ ├── lib
5252
│ │ ├── qlpack.yml
5353
│ │ └── scope
54-
│ │ └── crypto
54+
│ │ └── security
5555
│ │ └── someLibrary.qll
5656
│ ├── src
5757
│ │ ├── qlpack.yml
58-
│ │ ├── codeql-suites
58+
│ │ ├── suites
5959
│ │ │ ├── scope-cpp-code-scanning.qls
6060
│ │ │ └── scope-cpp-security.qls
61-
│ │ ├── crypto
62-
│ │ │ ├── SomeCryptoAnalysis.ql
6361
│ │ ├── security
64-
│ │ │ ├── AppSecAnalysis
65-
│ │ │ │ ├── AppSecAnalysis.c
66-
│ │ │ │ ├── AppSecAnalysis.qhelp
67-
│ │ │ │ └── AppSecAnalysis.ql
68-
│ │ ├── docs
69-
│ │ │ ├── crypto
70-
│ │ │ │ ├── SomeCryptoAnalysis.md
71-
│ │ │ └── security
72-
│ │ │ └── AppSecAnalysis.md
62+
│ │ │ └── AppSecAnalysis
63+
│ │ │ ├── AppSecAnalysis.c
64+
│ │ │ ├── AppSecAnalysis.qhelp
65+
│ │ │ └── AppSecAnalysis.ql
7366
│ └── test
7467
│ ├── qlpack.yml
7568
│ ├── include
7669
│ │ ├── libc
7770
│ │ │ ├── stubs.h
7871
│ ├── library-tests
79-
│ │ └── crypto
72+
│ │ └── security
8073
│ │ ├── someLibrary
74+
│ │ │ ├── someLibrary.c
8175
│ │ │ ├── someLibrary.expected
82-
│ │ │ ├── someLibrary.ql
83-
│ │ │ └── someLibrary.c
76+
│ │ │ └── someLibrary.ql
8477
│ └── query-tests
85-
│ ├── crypto
86-
│ │ ├── SomeCryptoAnalysis
87-
│ │ │ ├── SomeCryptoAnalysis.expected
88-
│ │ │ ├── SomeCryptoAnalysis.qlref
89-
│ │ │ └── SomeCryptoAnalysis.c
9078
│ └── security
9179
│ └── AppSecAnalysis
9280
│ ├── AppSecAnalysis.c
9381
│ ├── AppSecAnalysis.expected
9482
│ └── AppSecAnalysis.qlref
95-
├── go
96-
│ ├── src
9783
...
9884
```
9985

10086
We divide query packs per-language, but also per-type (security, cryptographic, etc.). This also follows the convention used by the GitHub query suites.
10187

10288
For recommendations on how to set up query unit tests, see the [Unit testing custom queries](#unit-testing-custom-queries) section.
10389

104-
Finally, you can use [our bash script for generating new queries](https://github.com/trailofbits/codeql-queries/tree/main/scripts/new_query.sh) when you have the structure above.
105-
10690

10791
### Adding dependencies
10892

0 commit comments

Comments
 (0)