Commit Graph

1626 Commits

Author SHA1 Message Date
Vladiwostok de100b42ca
Fix nolint in StyleChecker (#171) 2024-11-10 19:38:05 +02:00
Vladiwostok 6fc515bf2f
Fix Autofix for FinalAttributeChecker (#170) 2024-11-10 19:37:02 +02:00
Vladiwostok 5c476d4250
Fix Autofix for LengthSubtractionCheck (#169) 2024-11-10 15:16:05 +02:00
Vladiwostok 98aa2aab37
Replace libdparse with DMD in FunctionAttributeCheck (#156) 2024-11-10 13:12:10 +02:00
Vladiwostok 1b7e2d4c4d
Fix Autofix for LambdaReturnCheck (#151) 2024-11-09 21:44:41 +02:00
Vladiwostok 1fa9970b79
Replace libdparse with DMD in UndocumentedDeclarationCheck (#123) 2024-11-08 17:36:37 +02:00
Vladiwostok f6bfa57898
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
2024-11-08 09:35:10 +02:00
Vladiwostok 306c987e66
Remove unused imports (#166) 2024-11-06 16:27:33 +02:00
Vladiwostok 10c97cdec0
Remove travis related files (#163) 2024-11-06 16:25:38 +02:00
Vladiwostok ebc8d3f3b4
Remove unused nolint code (#162) 2024-11-06 16:25:14 +02:00
Vladiwostok 072a50d6d4
Update dmd to 4a90885ef8e0fc29334da91a4318f9ab52af9f80 (#164) 2024-11-06 16:24:46 +02:00
Vladiwostok 8db5a65813
Use rawWrite for writing test files in unit tests (#168) 2024-11-06 16:23:38 +02:00
Vladiwostok f1b1c6ed28
Replace libdparse with DMD in MismatchedArgumentCheck (#161) 2024-10-23 16:53:14 +03:00
Vladiwostok 4930a7d71d
Respect @nolint user attribute (#158)
* Respect @nolint in UnmodifiedFinder

* Respect @nolint in UselessInitializerChecker

* Respect @nolint in StaticIfElse

* Fix visibility in base.d
2024-10-15 09:36:54 +03:00
Vladiwostok d99ada2581
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>
2024-10-09 21:16:05 +03:00
Vladiwostok 2f46a0021c
Fail unittests on DMD parsing errors (#154) 2024-10-08 15:09:33 +03:00
Razvan Nitu 136307085d
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
2024-10-08 12:01:42 +03:00
Vladiwostok 0ce310711c
Fix Autofix for AutoFunctionChecker (#149) 2024-10-07 09:24:47 +03:00
Vladiwostok c8e7352277
Fix Autofix for ExplicitlyAnnotatedUnittestCheck (#150) 2024-10-07 09:24:04 +03:00
Vladiwostok 95a45f977f
Fix Autofix for AlwaysCurlyCheck (#148) 2024-10-05 20:36:59 +03:00
Vladiwostok f19c06939e
Replace libdparse with DMD in VcallCtorChecker (#145)
* Replace libdparse with DMD in VcallCtorChecker

* Reformat the file
2024-10-05 20:36:36 +03:00
Vladiwostok 96115a6d6e
Fix Autofix for DeleteCheck (#144) 2024-10-03 10:57:57 +03:00
Vladiwostok 51a1ef5ac9
Update dmd to ef02f08456762548555b1476a6e32c6e6af6320c (#146) 2024-10-03 09:16:40 +03:00
Vladiwostok 02384a926a
Respect "skip unittest" user configuration (#139) 2024-09-29 17:08:38 +03:00
Vladiwostok 2e3b6b0f81
Update dmd (6f1b331a6a29e3dddc647ec04dfc9cd85064f3e9) (#141) 2024-09-27 14:45:56 +03:00
Vladiwostok 8af90811ea
Implement autofix flow for dmd as a library and fix autofix for EnumArrayVisitor (#143) 2024-09-27 11:39:50 +03:00
Vladiwostok cd503ef776
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
2024-09-25 12:39:00 +03:00
Vladiwostok 94cc1ce080
Fix github actions pipeline (#140) 2024-09-23 19:37:35 +03:00
Vladiwostok c9829ebf2d
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
2024-08-19 11:50:09 +03:00
Vladiwostok 630bd37b32
Replace libdparse with DMD in LineLengthCheck (#134)
* Replace libdparse with DMD in LineLengthCheck

* Fix windows line counting

* Fix gdc compilation
2024-08-15 17:25:56 +03:00
Vladiwostok cc726c80a1
Replace libdparse with DMD in HasPublicExampleCheck (#130) 2024-08-12 15:36:02 +03:00
Vladiwostok 655fc4610f
Replace libdparse with DMD in UselessInitializerChecker (#121)
* Replace libdparse with DMD in UselessInitializerChecker

* Address feedback
2024-08-12 11:37:22 +03:00
Vladiwostok dffbf3afb8
Replace libdparse with DMD in BodyOnDisabledFuncsCheck (#127)
* Replace libdparse with DMD in BodyOnDisabledFuncsCheck

* Address feedback
2024-08-08 12:09:28 +03:00
Vladiwostok 4bf91f8cfe
Replace libdparse with DMD in UnmodifiedFinder (#117) 2024-08-06 19:33:32 +03:00
Vladiwostok 27b85c3581
Replace libdparse with DMD in UnusedVariableCheck (#119) 2024-08-06 19:13:31 +03:00
Vladiwostok 2b8d2792c6
Replace libdparse with DMD in UnusedParameterCheck (#116)
* Replace libdparse with DMD in UnusedParameterCheck

* Add workaround for gdc-12 compilation
2024-08-06 18:49:44 +03:00
Vladiwostok 46868567ad
Update dmd to latest version (b02f7183804f583776db69c1d8b355671e306216) (#138)
* Disable macOS debug session

* Update dmd to latest version (b02f7183804f583776db69c1d8b355671e306216)
2024-08-06 11:50:57 +03:00
Vladiwostok 98663f9416
Fix github actions for macos (#135)
* Fix github actions for macos

* Enable macos debugging session
2024-05-07 19:22:28 +03:00
Vladiwostok 81526df6a4
Replace libdparse with DMD in AutoFunctionChecker (#103) 2024-04-15 16:52:47 +03:00
Vladiwostok dc9a243de9
Replace libdparse with DMD in StyleChecker (#111) 2024-04-15 16:18:21 +03:00
Vladiwostok c0bc900d43
Replace libdparse with DMD in AlwaysCurlyCheck (#109) 2024-04-15 15:41:12 +03:00
Vladiwostok 27fd8ee1e9
Replace libdparse with DMD in LambdaReturnCheck (#114) 2024-04-15 14:46:59 +03:00
Vladiwostok 6d1335811b
Delete CommaExpressionCheck (#104) 2024-04-10 17:23:18 +03:00
Vladiwostok 90da7467f7
Delete IfStatementCheck (#106) 2024-04-10 17:22:21 +03:00
Vladiwostok 0f33269e2b
Replace libdparse with DMD in LabelVarNameCheck (#101)
* Replace libdparse with DMD in LabelVarNameCheck

* Disable check for local functions
2024-04-08 18:32:03 +03:00
Vladiwostok 18b691370a
Use DMD in CyclomaticComplexityCheck (#85)
* Use DMD in CyclomaticComplexityCheck

* Simplify templated visit

* Keep old unit tests
2024-03-19 09:51:24 +02:00
Vladiwostok a3c473650b
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
2024-03-18 11:13:54 +02:00
Vladiwostok a805955768
Use DMD in NumberStyleCheck (#88)
* Replace libdparse with DMD in NumberStyleCheck

* Fix re-lexing for windows (CRLF terminators) files

* Improve unit test
2024-03-05 10:53:12 +02:00
Vladiwostok 24f48edfc3
Update dmd to latest version (02d6d07a69280f8cc88380a682717bb67ca485fb) & fix checks using parens (#90)
* Update dmd module

* Fix checks using Expreesion.parens

* Update windows build
2024-03-05 10:46:04 +02:00
Vladiwostok 4301f6a67e
Delete DuplicateAttributeCheck (#79) 2024-02-22 11:40:22 +02:00