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

Replace libdparse with dmd as a library in static code analysis #964

Open
wants to merge 109 commits into
base: master
Choose a base branch
from

Conversation

Vladiwostok
Copy link

No description provided.

.github/workflows/default.yml Outdated Show resolved Hide resolved
RazvanN7 and others added 29 commits January 12, 2025 16:20
…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
Vladiwostok and others added 25 commits January 12, 2025 16:22
* Replace libdparse with DMD in VcallCtorChecker

* Reformat the file
* Fix broken unittests in vcall_in_ctor.d

* Fix broken unittest in line_length.d

* Fix broken unittest in redundant_attributes.d

* Fix broken unittest in if_constraints_indent.d

* Fix broken unittests in auto_function.d

* Fix broken unittest in always_curly.d
* 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]>
* Respect @NOLINT in UnmodifiedFinder

* Respect @NOLINT in UselessInitializerChecker

* Respect @NOLINT in StaticIfElse

* Fix visibility in base.d
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants