Commit Graph

78504 Commits

Author SHA1 Message Date
Asger F
0a15b1b0ba JS: Handle __dirname (TODO: test) 2025-04-23 14:27:44 +02:00
Asger F
848ac641a5 JS: Handle case where main resolves to a folder 2025-04-23 14:27:43 +02:00
Asger F
8d658ea27a asdf 2025-04-23 14:27:41 +02:00
Asger F
cd03ef9f02 safd 2025-04-23 14:27:40 +02:00
Asger F
76ad3e6705 JS: Fix automatic file extensions in main file resolution 2025-04-23 14:27:39 +02:00
Asger F
1f0a43340f Update PathResolution.qll 2025-04-23 14:27:38 +02:00
Asger F
971193ae44 More tests 2025-04-23 14:27:36 +02:00
Asger F
920f618101 Expose for testing purposes 2025-04-23 14:27:35 +02:00
Asger F
f13e8c517f Support exports with star globs 2025-04-23 14:27:34 +02:00
Asger F
a835aec81b JS: Proper main/module/exports handling 2025-04-23 14:27:33 +02:00
Asger F
86a882303d JS: Add getDeclaredPackageName() 2025-04-23 14:27:32 +02:00
Asger F
26a8e0b572 JS: Handle package.json-specified main files 2025-04-23 14:27:30 +02:00
Asger F
95ea1b25f4 JS: Add package.json with 'exports' 2025-04-23 14:27:29 +02:00
Asger F
c807664578 JS: Add test for importing package.json with main 2025-04-23 14:27:28 +02:00
Asger F
92337d701e Keep old resolveImportPath for comparison 2025-04-23 14:27:27 +02:00
Asger F
a849d3fb2d Simplify a bit 2025-04-23 14:27:25 +02:00
Asger F
233ed4f113 Handle '..' path 2025-04-23 14:27:24 +02:00
Asger F
55a91ebaef JS: Path resolution for tsconfig 2025-04-23 14:27:23 +02:00
Asger F
190dfce9c5 JS: Ensure tsconfig.json files are extracted in qltest
QLTests still use the Main.java entry point, which didn't extract tsconfig.json and didn't allow non-standard JSON syntax such as trailing commas that are allowed in tsconfig.json files.
2025-04-23 14:27:21 +02:00
Asger F
ec4b3ef202 JS: Stop resolving imports from TS symbols 2025-04-23 14:27:20 +02:00
Asger F
a889e981ba JS: Add tests for multiple path replacements 2025-04-23 14:27:19 +02:00
Asger F
aa0f7d8ec3 JS: Add test for baseUrl and path mappings in tsconfig files 2025-04-23 14:27:18 +02:00
Asger F
ffe9d542f8 JS: Set TS mode to basic 2025-04-23 14:27:16 +02:00
Asger F
abfbc2e294 JS: Also check contextual type 2025-04-23 14:27:15 +02:00
Asger F
cada794cf1 JS: Some test updates 2025-04-23 14:27:14 +02:00
Asger F
69077ff9b6 JS: Remove some dependencies on type extraction 2025-04-23 14:27:13 +02:00
Asger F
fe06115180 JS: Use in MissingAwait 2025-04-23 14:27:11 +02:00
Asger F
05212e6042 JS: Use hasUnderlyingStringOrAnyType in Nest model (TODO: refactor) 2025-04-23 14:27:10 +02:00
Asger F
0109ab6a70 JS: Use sanitizing primitive type in Nest model 2025-04-23 14:27:09 +02:00
Asger F
9978657a1c JS: Use sanitizing primitive types in ViewComponentInput 2025-04-23 14:27:07 +02:00
Asger F
6ed900504c JS: Update jQuery model 2025-04-23 14:27:06 +02:00
Asger F
da7387ee63 JS: Use in TypeAnnotation.getClass and hasUnderlyingType predicates 2025-04-23 14:27:05 +02:00
Asger F
406754c646 JS: Resolve JSDocLocalTypeAccess to a variable in scope 2025-04-23 14:27:04 +02:00
Asger F
52c729b161 JS: Use underlying types in DataFlow::Node 2025-04-23 14:27:02 +02:00
Asger F
21f4349cc6 Create TypeResolution.qll 2025-04-23 14:27:01 +02:00
Asger F
a374b04f0f Create UnderlyingTypes.qll 2025-04-23 14:27:00 +02:00
Asger F
45ed331115 Create NameResolution.qll 2025-04-23 14:26:59 +02:00
Asger F
7586631934 JS: Add test 2025-04-23 14:26:57 +02:00
Asger F
f8be64b313 JS: Add helper for getting local type names 2025-04-23 14:26:55 +02:00
Asger F
0f981b4a1e JS: Avoid accidental recursion with API graphs 2025-04-23 14:26:54 +02:00
Asger F
bcf26ef537 JS: Make Closure concepts based on AST instead 2025-04-23 14:26:52 +02:00
Asger F
372606a93d JS: Do not ignore variables from ambient declarations 2025-04-23 14:26:51 +02:00
Asger F
f18335da5b JS: Add ImportSpecifier.getImportDeclaration() 2025-04-23 14:26:50 +02:00
Asger F
4443dec443 JS: Exclude externs from CallGraph meta-query 2025-04-23 14:26:48 +02:00
Asger F
6d58293478 Disable noisy meta query 2025-04-23 14:26:47 +02:00
Asger F
ae55f2c80f Add meta query 2025-04-23 14:26:45 +02:00
Geoffrey White
37bcedcf11 Merge pull request #19353 from geoffw0/modelnoise2
Rust: Remove unnecessary predicate.
2025-04-23 12:34:40 +01:00
Tom Hvitved
4abdc13f79 Merge pull request #19193 from hvitved/rust/path-resolution-where-clause
Rust: Take `where` clauses into account in path resolution
2025-04-23 13:00:58 +02:00
Mathias Vorreiter Pedersen
808141f7e8 Merge pull request #19295 from MathiasVP/cpp-add-mad-generation-library
C++: Instantiate model generation library
2025-04-23 11:32:16 +01:00
Geoffrey White
d6f1bd9792 Rust: Remove unnecessary predicate. 2025-04-23 11:24:29 +01:00