Turn off analysis for certain types of files
Hi
Is it possible to turn off analysis for certain types of files throughout a solution. I know you can add specific files/folders, but I want the ability to ignore files using a wildcard like *.xaml.cs or *.xml.
Thanks
Please sign in to leave a comment.
ping?
I second that, need it for xaml-files, they're just to slow with Resharper.
Please look at the ReSharper | Options | Code Inspection | Generated Code. You could add specific file, folder, namespace or file mask for ignoring code analysis.
I tried adding *.xaml or *.xaml.cs using the "Generated file masks" filter, but it still analysis all the files matching the filter. The "Generated files and directories" filter seem to work correctly though. I haven't checked the "Generated code regions" filter.
R# info
Thanks
"Generated Gode" isn't right solution. You need to configure the list of files and folders to turn off code analysis. Use "Edit Items to Skip" at the ReSharper | Options | Code Inspection | Settings. Also you could press Ctrl+Shift+Alt+8 to skip code analysis for the current opened file.
OK, but that doesn't give me the ability to use a wildcard to tell R# to ignore all .xaml files. I don't want to go add every xaml file manually - I just want R# to pick it up using a wildcard filter.
Yes, In the 5.0 isn't possible to use wildcard filter.
Why isn't "Generated Code" the right solution? Why can't Code Inspection analysis be ignored on files that match any of the "Generated file masks"? This seems more like a bug than a "feature" that Code Inspection doesn't ignore generated code.
Could you please correct this issue in ReSharper 5.2 or 6.0? Thanks.
Hello Karl,
Because at the moment 'Generated code' options group only tells ReSharper
which files should not be formatted. We're planning to re-design those pages,
so that the difference between 'Generated code' and 'Edit items to skip'
would be clear and we're also planning to make it possible to ignore files
by mask during code analysis in one for the future releases. Thank you!
Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Re-designing those pages & adding masks for code analysis is good news! And thank you for clarifying the current design.