Menu

#93 check a file when it opens and a filter is active

closed
5
2012-09-25
2007-01-29
Bodo
No

I work in a really large project with thousand source files so I use the filter "check only files which are opened in the Editor"

now if I open an new file it is not checked. I have to disable the checkbox "use checkstyle in this project" and then enable the checkbox to get the file checked.

it would be nice if the file would be directly check if it opens.

Discussion

  • Lars Koedderitzsch

    Logged In: YES
    user_id=1238882
    Originator: NO

    Just saving the opened file once would also result in the file being checked, of course only when autobuild is active.

    However the requested behaviour needs to be optional (and OFF by default), I think.

     
  • Bodo

    Bodo - 2007-01-30

    Logged In: YES
    user_id=1088729
    Originator: YES

    From my point of view it is a workaround to get a file check by e.g. adding a space and then delete it and save. Just open it to get it checked would me much nicer :-)
    If the files were checked out from a version control and are read-only this workaround doesn't work.

     
  • Lars Koedderitzsch

    Logged In: YES
    user_id=1238882
    Originator: NO

    Feature implemented and committed to CVS Head.

    When the UnOpenedFilesFilter is active a file of that project that gets opened in the editor will automatically be checked.
    In reverse, if the editor is closed again, the Checkstyle markers on that file are removed.
    Note that this applies only to files that are included in a fileset and make it through the other filters. For instance if you excluded all files from the test source folder via the Package filter, the test classes would NOT be checked when opened in editor.

    In retrospective I find this new feature very neat and greatly enhances the experience with large workspaces. Thanks very much for your brilliant idea!

    If you need a snapshot build before the next release please drop me a note.

     

Log in to post a comment.

MongoDB Logo MongoDB