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

0
10 comments
Avatar
Permanently deleted user

ping?

0
Avatar
Permanently deleted user

I second that, need it for xaml-files, they're just to slow with Resharper.

0
Avatar
Permanently deleted user

Please look at the ReSharper | Options | Code Inspection | Generated Code. You could add specific file, folder, namespace or file mask for ignoring code analysis.

0
Avatar
Permanently deleted user

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

JetBrains ReSharper 5 Full Edition
Build 5.0.1659.36 on 2010-04-13T02:19:06

Free evaluation 8 days left
Plugins: 1
#1. “Agent Smith Plugin” v1.4.2.31043 by “Sergey Zyuzin.”
Visual Studio 9.0.30729.4108.

Copyright © 2003–2010 JetBrains s.r.o.. All rights reserved.



Thanks
0
Avatar
Permanently deleted user

"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.

0
Avatar
Permanently deleted user

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.

0
Avatar
Permanently deleted user

Yes, In the 5.0 isn't possible to use wildcard filter.

0
Avatar
Permanently deleted user

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.

0
Avatar
Permanently deleted user

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!"

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.

---
Original message URL:
http://devnet.jetbrains.net/message/5282455#5282455



0
Avatar
Permanently deleted user

Re-designing those pages & adding masks for code analysis is good news!  And thank you for clarifying the current design.

0

Please sign in to leave a comment.