Commit Graph

1642 Commits

Author SHA1 Message Date
Vladiwostok dd8cf5aa51 [TEMP] Enable debug ssh 2025-03-17 21:05:10 +02:00
Vladiwostok 29bbe35159 Disable test for DeleteCheck failing due to new compilation warning 2025-03-17 20:55:54 +02:00
Vladiwostok c86cb792c6 Update DMD to a4cbc08f5bc1a2f7ce3289103198c473671e94c0 2025-03-17 20:51:48 +02:00
Vladiwostok 9665d644d5 Remove dead code 2025-01-12 20:30:18 +02:00
Vladiwostok 77553e746e Update DMD to 10eb368c1b8c323e1921e991cb2bd8fce535e9b2 2025-01-12 17:34:48 +02:00
Vladiwostok 2bb968993c Fix CI 2025-01-12 16:31:56 +02:00
Vladiwostok 232cd304de Cleanup code and fix integration tests (#172)
* 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
2025-01-12 16:22:21 +02:00
Vladiwostok 930dd525f4 Fix Autofix in StaticIfElse (#157) 2025-01-12 16:22:21 +02:00
Vladiwostok 76cf434549 Fix nolint in StyleChecker (#171) 2025-01-12 16:22:21 +02:00
Vladiwostok a6ea37ce9c Fix Autofix for FinalAttributeChecker (#170) 2025-01-12 16:22:21 +02:00
Vladiwostok 764b7463e4 Fix Autofix for LengthSubtractionCheck (#169) 2025-01-12 16:22:21 +02:00
Vladiwostok be19b4a8e2 Replace libdparse with DMD in FunctionAttributeCheck (#156) 2025-01-12 16:22:21 +02:00
Vladiwostok 6f33134a00 Fix Autofix for LambdaReturnCheck (#151) 2025-01-12 16:22:21 +02:00
Vladiwostok e1c1a3958d Replace libdparse with DMD in UndocumentedDeclarationCheck (#123) 2025-01-12 16:22:20 +02:00
Vladiwostok 7e50946351 Replace libdparse with DMD in IfConstraintsIndentCheck (#128)
* Replace libdparse with DMD in IfConstraintsIndentCheck

* Fix evil segfault bug

* Remove Issue#829 unit test

* Properly detect issue
2025-01-12 16:22:19 +02:00
Vladiwostok c276428331 Remove unused imports (#166) 2025-01-12 16:22:19 +02:00
Vladiwostok b308eb44de Remove unused nolint code (#162) 2025-01-12 16:22:19 +02:00
Vladiwostok 0b2fe2d303 Update dmd to 4a90885ef8e0fc29334da91a4318f9ab52af9f80 (#164) 2025-01-12 16:22:19 +02:00
Vladiwostok bf75a9b9d3 Use rawWrite for writing test files in unit tests (#168) 2025-01-12 16:22:19 +02:00
Vladiwostok cfe5a5dae7 Replace libdparse with DMD in MismatchedArgumentCheck (#161) 2025-01-12 16:22:19 +02:00
Vladiwostok 8e836fc6bc Respect @nolint user attribute (#158)
* Respect @nolint in UnmodifiedFinder

* Respect @nolint in UselessInitializerChecker

* Respect @nolint in StaticIfElse

* Fix visibility in base.d
2025-01-12 16:22:19 +02:00
Vladiwostok c965cfd5c0 Replace libdparse with DMD in AllManCheck (#125)
* 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 <edi33416@gmail.com>
2025-01-12 16:22:19 +02:00
Vladiwostok 65253f6121 Fail unittests on DMD parsing errors (#154) 2025-01-12 16:22:19 +02:00
Razvan Nitu 444f4e20b6 Fix unittests (#153)
* 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
2025-01-12 16:22:19 +02:00
Vladiwostok 517b017058 Fix Autofix for AutoFunctionChecker (#149) 2025-01-12 16:22:19 +02:00
Vladiwostok 686a963a85 Fix Autofix for ExplicitlyAnnotatedUnittestCheck (#150) 2025-01-12 16:22:19 +02:00
Vladiwostok b5a8ded6a9 Fix Autofix for AlwaysCurlyCheck (#148) 2025-01-12 16:22:19 +02:00
Vladiwostok 78590e6241 Replace libdparse with DMD in VcallCtorChecker (#145)
* Replace libdparse with DMD in VcallCtorChecker

* Reformat the file
2025-01-12 16:22:19 +02:00
Vladiwostok 0c7376583c Fix Autofix for DeleteCheck (#144) 2025-01-12 16:22:19 +02:00
Vladiwostok 8f85263c3c Update dmd to ef02f08456762548555b1476a6e32c6e6af6320c (#146) 2025-01-12 16:22:19 +02:00
Vladiwostok 1294a768d7 Respect "skip unittest" user configuration (#139) 2025-01-12 16:22:19 +02:00
Vladiwostok 4506b01676 Update dmd (6f1b331a6a29e3dddc647ec04dfc9cd85064f3e9) (#141) 2025-01-12 16:22:19 +02:00
Vladiwostok c90a8f03e9 Implement autofix flow for dmd as a library and fix autofix for EnumArrayVisitor (#143) 2025-01-12 16:22:19 +02:00
Vladiwostok c0c881ed39 Separate analyze with dmd and autofix flows from libdparse analyze flow (#142)
* Separate analyze with dmd and autofix flows from libdparse analyze flow

* Make locally used functions private

* Extract parsing using DMD in a separate function

* Address feedback
2025-01-12 16:22:19 +02:00
Vladiwostok 531f75bd29 Fix github actions pipeline (#140) 2025-01-12 16:22:18 +02:00
Vladiwostok 89f2e1c50e Replace libdparse in UnusedResultChecker (#80)
* Replace libdparse with DMD in UnusedResultChecker

* Run semantic analysis in unit test

* Add more unit tests

* Remove debug prints

* Fix no return test

* Remove semantic analysis
2025-01-12 16:22:18 +02:00
Vladiwostok ee6acfb749 Replace libdparse with DMD in LineLengthCheck (#134)
* Replace libdparse with DMD in LineLengthCheck

* Fix windows line counting

* Fix gdc compilation
2025-01-12 16:22:18 +02:00
Vladiwostok f95acb4c79 Replace libdparse with DMD in HasPublicExampleCheck (#130) 2025-01-12 16:22:17 +02:00
Vladiwostok 1e3459d024 Replace libdparse with DMD in UselessInitializerChecker (#121)
* Replace libdparse with DMD in UselessInitializerChecker

* Address feedback
2025-01-12 16:22:14 +02:00
Vladiwostok 8b5bc9fd9d Replace libdparse with DMD in BodyOnDisabledFuncsCheck (#127)
* Replace libdparse with DMD in BodyOnDisabledFuncsCheck

* Address feedback
2025-01-12 16:22:13 +02:00
Vladiwostok c167ff0695 Replace libdparse with DMD in UnmodifiedFinder (#117) 2025-01-12 16:22:11 +02:00
Vladiwostok 38a4c716bf Replace libdparse with DMD in UnusedVariableCheck (#119) 2025-01-12 16:22:09 +02:00
Vladiwostok 4268f6327f Replace libdparse with DMD in UnusedParameterCheck (#116)
* Replace libdparse with DMD in UnusedParameterCheck

* Add workaround for gdc-12 compilation
2025-01-12 16:22:09 +02:00
Vladiwostok c469a9cd01 Update dmd to latest version (b02f7183804f583776db69c1d8b355671e306216) (#138)
* Disable macOS debug session

* Update dmd to latest version (b02f7183804f583776db69c1d8b355671e306216)
2025-01-12 16:22:09 +02:00
Vladiwostok cba48fc323 Fix github actions for macos (#135)
* Fix github actions for macos

* Enable macos debugging session
2025-01-12 16:22:07 +02:00
Vladiwostok 511bdce4b3 Replace libdparse with DMD in AutoFunctionChecker (#103) 2025-01-12 16:22:06 +02:00
Vladiwostok 232cf54e73 Replace libdparse with DMD in StyleChecker (#111) 2025-01-12 16:22:06 +02:00
Vladiwostok 7288aea5f8 Replace libdparse with DMD in AlwaysCurlyCheck (#109) 2025-01-12 16:22:06 +02:00
Vladiwostok ee4e19292d Replace libdparse with DMD in LambdaReturnCheck (#114) 2025-01-12 16:22:06 +02:00
Vladiwostok 030481b757 Delete CommaExpressionCheck (#104) 2025-01-12 16:22:06 +02:00