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
Vladiwostok
ffce05181e
Delete IfStatementCheck ( #106 )
2025-01-12 16:22:06 +02:00
Vladiwostok
5f3e25f40f
Replace libdparse with DMD in LabelVarNameCheck ( #101 )
...
* Replace libdparse with DMD in LabelVarNameCheck
* Disable check for local functions
2025-01-12 16:22:04 +02:00
Vladiwostok
1107667ad3
Use DMD in CyclomaticComplexityCheck ( #85 )
...
* Use DMD in CyclomaticComplexityCheck
* Simplify templated visit
* Keep old unit tests
2025-01-12 16:22:03 +02:00
Vladiwostok
0ac05511e3
Replace libdparse in IfElseSameCheck ( #81 )
...
* Fix & extend IfElseSameCheck
* Enable debug session
* Revert "Enable debug session"
This reverts commit e703fbe58db4c2def038b5473b5b127c4a3773d0.
* Replace common code with template
* Investigate failing workflows
* Revert "Investigate failing workflows"
This reverts commit 11e1dbf4935e492c18bb837611822df8bbb12efd.
* Remove check extension
* Trigger assign error only for the ternary operator
* Fix assignment error
2025-01-12 16:22:02 +02:00
Vladiwostok
8b7612d76a
Use DMD in NumberStyleCheck ( #88 )
...
* Replace libdparse with DMD in NumberStyleCheck
* Fix re-lexing for windows (CRLF terminators) files
* Improve unit test
2025-01-12 16:21:58 +02:00
Vladiwostok
860ddf1994
Update dmd to latest version (02d6d07a69280f8cc88380a682717bb67ca485fb) & fix checks using parens ( #90 )
...
* Update dmd module
* Fix checks using Expreesion.parens
* Update windows build
2025-01-12 16:21:57 +02:00
Vladiwostok
24f7754fef
Delete DuplicateAttributeCheck ( #79 )
2025-01-12 16:21:56 +02:00
Eduard Staniloiu
fb27453d95
Fix GDC build
2025-01-12 16:21:56 +02:00
Eduard Staniloiu
c93bef3315
Update build bat
2025-01-12 16:21:56 +02:00
Eduard Staniloiu
ede1ac295d
Fix style errors
2025-01-12 16:21:56 +02:00
Eduard Staniloiu
75efd94ccd
Update dub.json to latest dmd commit
2025-01-12 16:21:56 +02:00