Exclude certains files from inspection, but not from search index

hi,

I have various files that just contain a JSON object, without an assignment. The inspector nearly marks the complete file as error, cause its not correct JS syntax. Now I can mark this file as plain text, but this also removes it from the search index.
Is it possible to somehow exclude this file (or better: files of a certain naming scheme) from inspection completely but still having them indexed?

0
9 comments

Hi there,

Try this (although I do not know how well it will work for you):

  • Open file in IDE
  • Code | Configure Current File Analysis... (or just click on that Inspector face in status bar)
  • Set appropriate slider(s) to None
0
Avatar
Permanently deleted user

Thats ok for now! Thanks!

0

Another possible way (depends on your requirements) -- check my answer here: http://devnet.jetbrains.net/message/5455618

0
Avatar
Permanently deleted user

Thanks!
That looks basically like a nice concept, but it seems that I am only able to define inspections on the lowest level of the inspection itsself? Although I have the "Add scope" context menu on every level of the inspections-tree, adding it to a higher level is not working (using WS 117.132).

0

It should not work there as it is just tree element (for visual grouping of similar inspections). The actual context menu should popup only for inspection entries itself and not for branches/groups.

0
Avatar
Permanently deleted user

Ok, thanks. But in this case I cannot use this, as I don't want any inspections at all for these type of files.

0

The choice is yours -- use whatever works better for you.

0
Avatar
Permanently deleted user

Actually an option to exclude files completely from inspections based on a filename pattern would be ideal. We manage L10n-data in these files, and they are located at many places in the source tree.

0

Feel free to submit Feature Request on Issue Tracker -- I just do not expect this to be implemented really soon (but I would definitely vote for it).

0

Please sign in to leave a comment.