-
Notifications
You must be signed in to change notification settings - Fork 81
Replace libdparse with dmd as a library in static code analysis #971
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
base: master
Are you sure you want to change the base?
Conversation
…n with dmd (dlang-community#17) * replace libdparse in objectconst functionality + unittests integration with dmd * updated dmd * run tests * use templates * visit aggregate declaration * updated dmd * solve linter seg fault * get rid of dup + refactor * fix typo
* replace libdparse in delete check * delete comment
* Update README * Add dmd-as-a-library submodule (dlang-community#2) * Add GH Actions build script (dlang-community#4) * Removed libdparse from imports print functionality (dlang-community#3) * Fix failing tester + add unittest for imports (dlang-community#7) * Add style checker (dlang-community#9) * Update action to build dlang fork * Fix linter errors * Add dmd dependencies to dub.json * Add dmd dependencies to build.bat * Replace libdparse in enum array functionality * replace libdparse in objectconst functionality + unittests integration with dmd (dlang-community#17) * replace libdparse in objectconst functionality + unittests integration with dmd * updated dmd * run tests * use templates * visit aggregate declaration * updated dmd * solve linter seg fault * get rid of dup + refactor * fix typo * update dmd to latest version Co-authored-by: RazvanN7 <[email protected]> Co-authored-by: Eduard Staniloiu <[email protected]>
* update dmd * update dmd
* replace libdparse in imports sortedness visitor * minor refactor
* Replace libdparse with DMD in AllManCheck * Test assertAnalyzerDmd without writing to file * Revert "Test assertAnalyzerDmd without writing to file" This reverts commit 9f50f38a11d97df960c05d5a128059b13e7dcab4. * Fix windows ci bug --------- Co-authored-by: Eduard Staniloiu <[email protected]>
…ty#128) * Replace libdparse with DMD in IfConstraintsIndentCheck * Fix evil segfault bug * Remove Issue#829 unit test * Properly detect issue
* Delete libdparse unit test assertion function * Delete unused libdparse visitors from base.d * Improve StaticIfElse warning location * Improve FunctionAttributeCheck warning location * Switch to DMD flow for listing autofixes * Extract dmd analyzer selection in a separate function * Make getName() method in BaseAnalyzerDmd public * Fix offsets in integration test json * Improve StyleChecker warning location * Enable integration tests in CI * Fix Autofix flow * Remove & comment dead code * Remove dead code from autofix unit test * Remove dead code * Remove dead code from autofix.d * Clean up code in helpers.d * Clean up code in run.d and migrate StatsCollector to dmd * Fix reading code from stdin * Return if errors are found in analysis flows * Remove dead code * Check for Windows line terminators in integration tests
@rikkimax Any idea why the pipeline fails? |
why are all the error ranges being removed and replaced with just a line-based test? That will reduce usability of auto fixes and degrade IDE integration quite a lot. I think having proper start and end locations of warnings is pretty essential for D-Scanner and changing the expected behavior / changing the tests there is kinda a breaking change. |
A quick look over the missing symbols error, shows that you're compiling dmd's glue code. You want the |
@rikkimax I was asking more about the jobs that don't even get to the build phase. I'll also take a look and fix dub compilation. |
I have no idea what upterm.dev is. |
This is just a follow-up of #964 to hopefully get it merged.