@noinspection annotations in shared code when not all devs are using JetBrains IDEs

Hi,

so we got a standard git repo we use to version our code-base. Developers are free to choose which IDE they want to develop with. I like to use JetBrains products and I also very much like to use the @noinspection annotations when sensible.

But of course this is not something which should become part of the general code base - for people without JetBrains IDEs it's just useless visual clutter.

I know I could use a git clean-filter to remove those comments, but even if that would be an actually functioning solution I would like to have a different option - I just don't like using the git clean/smudge filters because I had bad experiences with them in the past.

Does anyone know of another alternative, or is actually someone regularly using some kind of workflow which solves that problem?

Thanks
Daniel

1 comment
Comment actions Permalink

Unfortunately, there's no way to keep annotations outside code. Here's the feature request: https://youtrack.jetbrains.com/issue/WI-851

0

Please sign in to leave a comment.