Reputation: 1199
I have several checkstyle errors in a project I'm working on. I understand that there are two ways to fix checkstyle errors in eclipse with the checkstyle plugin which I mentioned in the title. Unfortunately, when I right-click on any error, "Quick Fix" is greyed out and right-clicking on a file then "Apply Checkstyle fixes" does nothing.
I've attempted to fix the issue from other stackexchange sources. This source claims that another quick-fix file needs to be made to actually fix the issues. However, this source (among others) mentions nothing of the sort.
I'm using Luna release 4.4.0. Is there something I'm missing or is quick fix only available for very certain checkstyle errors?
Upvotes: 3
Views: 4422
Reputation: 20391
I'm running Luna 4.4.2 and thought I had the same issue, but it seems that "Quick Fix" isn't available for all reported problems. It took me a moment to realize, because I right clicked on the file previously and did a "Apply Checkstyle Fixes", so the only items remaining are the ones check style doesn't fix automatically.
Upvotes: 3