Replies: 1 comment 3 replies
-
I mentioned similar sentiments when I first became active in Harper a couple of months ago. We actually have conflicting rules in Harper for You bring up some excellent points about commented-out code though! It would probably be best if we could try to detect commented-out code vs prose comments, but it's probably quite difficult to do. Documentation comments should ideally have different settings, possibly all block-comments / multi-line comments, vs. spot comments such as end-of-line comments or single-line comments interleaving code
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm primarily using harper to check my writing in strings and comments in code. I feel like a lot of features are more focused on regular prose/poetry/technical writing that don't apply to the terser style used in code documentation. There's a huge list of rules so I'd love to know what other people in the same boat are using.
I've also found that harper checks commented-out Lua code, so I've turned off a lot of rules that trigger those warnings.
Here's my neovim config for harper, but it should be pretty clear which rules I have disabled:
Beta Was this translation helpful? Give feedback.
All reactions