uligerhardt 18 Posted November 15, 2023 Hi all, I recently started using UsesCleaner and mostly love it. One mildly annoying aspect is that it removes comments after units in the uses clause. I often have clauses like uses Unit1, // PALOFF - to suppress false positives from Pascal Analyzer Unit2, // used because of some obscure reason Unit3; // TODO remove when ... and have to reinstate all the comments after using UsesCleaner. Is there a way to make UsesCleaner leave the comments in place? Share this post Link to post
Uwe Raabe 2064 Posted November 15, 2023 Unfortunately that is by design as comments in uses clauses are considered not clean. Background: It is pretty hard to connect the comment to one of the used units - there is too much convention involved with this. Also, line end comments don't play well with grouping and line wrapping. There are non plans to change this any time soon. Share this post Link to post
uligerhardt 18 Posted November 15, 2023 28 minutes ago, Uwe Raabe said: Unfortunately that is by design as comments in uses clauses are considered not clean. Background: It is pretty hard to connect the comment to one of the used units - there is too much convention involved with this. Also, line end comments don't play well with grouping and line wrapping. There are non plans to change this any time soon. Thanks for the info, Uwe - I already suspected this. Fortunately, it's not a big problem. Share this post Link to post