Setting up the java checkstyle linter #180
-
Feature description
|
Beta Was this translation helpful? Give feedback.
Replies: 13 comments 10 replies
-
You can hook into the linter logic in any way you want
Are there occasions where you want to do this manually? Please describe them.
Sync stuff is not normally what people want, what's the motivation?
Same as above
You can read more about the motivation here :) |
Beta Was this translation helpful? Give feedback.
-
@xiaoshihou514 Thank you for responding to my queries first of all.
|
Beta Was this translation helpful? Give feedback.
-
Basically, you want to only run checkstyle manually and infrequently, but guard doesn't provide configs for events. |
Beta Was this translation helpful? Give feedback.
-
No what I meant is if I configure java linter like this |
Beta Was this translation helpful? Give feedback.
-
This doesn't sound right, I will take a look a bit later. |
Beta Was this translation helpful? Give feedback.
-
Sure |
Beta Was this translation helpful? Give feedback.
-
Can't seem to repro (linter works standalone as in screenshot) |
Beta Was this translation helpful? Give feedback.
-
Nvm I found out what the issue was! I did not push checkstyle changes to my forked repo while developing linter for checkstyle! Really sorry for making you debug this issue. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Well... You didn't specify a formatter, so obviously |
Beta Was this translation helpful? Give feedback.
-
Yeah But I configured a linter right. So how do I get it to lint is my doubt. |
Beta Was this translation helpful? Give feedback.
-
So there is no way to run a linter without configuring a formatter? Is it possible to provide a |
Beta Was this translation helpful? Give feedback.
-
Hey the linter is triggered automatically on these events guard.nvim/lua/guard/filetype.lua Lines 90 to 94 in d5b4a49 Maybe inject a few print statements into the linter to see if your regex is working properly. You can trigger a manual lint refresh by Hope that helps :) |
Beta Was this translation helpful? Give feedback.
Done as of
2.0.0