Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JS: Update test suite to use post-processed inline expectations #18670

Draft
wants to merge 250 commits into
base: main
Choose a base branch
from

Conversation

asgerf
Copy link
Contributor

@asgerf asgerf commented Feb 4, 2025

No description provided.

@github-actions github-actions bot added the JS label Feb 4, 2025
@asgerf asgerf force-pushed the js/test-suite branch 4 times, most recently from 6e464f3 to 3a86b71 Compare February 7, 2025 13:26
Some OK-style comments had to be moved to the following line, shifting line numbers.

In selected range also included the comments themselves.

Lastly, the result sets were reordered by the CLI in some cases.
This is expected, based on a comment earlier in the file about the 'y' variable
Diff looks confusing but:
Previously parameter {2,3} where flagged, now parameter {1,2} are flagged.
TS decorators may not appear on functions and enums
Line breaks used for more precise Alert marker
With this query it's hard to say what's TP/FP as it's rather opinionated.
The presence of a syntax error sometimes prevents us from parsing the inline comment correctly.
This file was added on main while this branch was in progress. Porting the whole file in one step.
@@ -1 +1 @@
JSDoc/BadParamTag.ql
query: JSDoc/BadParamTag.ql

Check warning

Code scanning / CodeQL

Query test without inline test expectations Warning test

Query test does not use inline test expectations.
@@ -1 +1 @@
LanguageFeatures/SyntaxError.ql
query: LanguageFeatures/SyntaxError.ql

Check warning

Code scanning / CodeQL

Query test without inline test expectations Warning test

Query test does not use inline test expectations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant