Menu

#143 Implement quickfix for missing header lines

5.6.1
pending
nobody
Quickfixes (16)
1
2016-08-13
2013-06-19
No

A colleague of mine forgot to configure his auto-comments correctly and eclipse-cs has now found 45 files that our missing our standard company header. It would be very helpful if this check had a quickfix option to auto-insert the header data configured in the checkstyle configuration.

I presume this would only work for the non-regular-expression variants and situations where there are no ignore lines.

As an alternative, perhaps the quick fix could pop up a dialog box that prompts for the desired header data. This would be very effective in solving multiple problems at once.

Discussion

  • Lars Koedderitzsch

    There's already an app - err, plugin - for that:
    https://sourceforge.net/projects/eclipsecopyrigh/

     
  • Lars Koedderitzsch

    • status: open --> pending
     
  • Eric Milles

    Eric Milles - 2016-08-13

    I've run into this problem myself. The copyright plug-ins available have not been kept up-to-date with new Eclipse releases. I did manage to get something working for Java and Groovy sources. I implemented as a Code Cleanup extension. This way, you can set it as a save action as well as running it on file(s) using Source > Clean Up...

    If you're interested, I could post what I have (would require some search and replace, followed by plug-in export).

     

Log in to post a comment.