How to exclude files from .Net inspections Follow Vilen Tambovtsev Created February 29, 2016 10:16 I've tried to use custom settings with Skip filesBut this does not affect anything This makes my build actually 10x times slower
ReSharper Command Line Tools as well as ReSharper do not analyze *.png, *.jpg and *.less files so adding them to the list can't affect anything.
Please could you specify the structure of the solution where you experience the issue? Do it contain "bower_components" or "node_modules" folders?
There is no these folders in my solution. TC log shows that it DOES try to analyze the files
I am also experiencing the same issue with TeamCity 10. TeamCity 10 is not skipping anything that I specified.
Below is an example from the TC build log.
In ReSharper 2016.3 as well as in InspectCode 2016.3 we implemented a new setting in ReSharper Options - ReSharper | Options | Code Editing | Third-Party Code | "Skipped Code". Please add these files/folders to the list and run InspectCode on new settings file once again.
I'm using Inspect Code 10.0.2 ([Step 5/5] JetBrains Inspect Code 10.0.2), because I have 10.0.2 installed in Visual Studio 2015. I have added all the elements that I want skipped to ReSharper | Options | Code Inspection | Elements to skip, but TeamCity (10.0.3 build 42434) is still analyzing every file.
Any update on this issue? Should I submit a bug?
I'm having the same issue, but might have found the cause: my dot settings file was not in the root of my checkout directory.
I've set the path now and run again to see if this fixes the issue. I'll report back once TeamCity is done, which takes quite some time for us at the moment (hence the optimization attempts). Might the same be the case for you Jeremy?
Same here "Skipped elements" doesn't work.
> Version:1.0 StartHTML:000000285 EndHTML:000003594 StartFragment:000003454 EndFragment:000003472 StartSelection:000003454 EndSelection:000003472 SourceURL:https://teamcity-support.jetbrains.com/hc/en-us/community/posts/206510169-How-to-exclude-files-from-Net-inspections?page=1 How to exclude files from .Net inspections â€“ TeamCity Support | JetBrains
I didn't use file filter. I've pointed folders with *.cs files in subfolders. In R# it works in inspectcode it dont. Inspectcode.exe is pretty unconfigurable tool.
I will try once again. ReSharper | Options | Code Editing | Third-Party Code | "Skipped Code" option does not affect .cs files or folders with .cs files, at all. So it does not work even in ReSharper. So, it does not work in InspectCode either.
How to exclude/skip few files/folders (web.config, .xml , App_data(folders) ..etc) when creating package? I don't want this files in my package.
For this I have specified Artifact paths rule as ( -: API\CC.API\CC.API\Web.config => Api.csproj.zip ), but no luck
How I have to specify to skip the above files/folders in my Artifact paths:
I have gone through Build log, First Team City is creating package. I don't want this (web.config, .xml ..etc) files in my package. From package it is deploying to respective environment.
Please stop asking new, unrelated questions in old threads to unrelated topics. Every time you send an email to an existing thread, all participants can be notified about your unrelated question, which can be annoying for other users. If you have new questions, please create new threads for them.
To your problem, artifact paths are used to publish internally for teamcity, that is, what in teamcity is shown as "artifacts" once a build is finished and what will be available for other builds as artifact dependencies. It seems that you are using VS in a deploy profile to create the packages. That tool defines under *your* project how to configure the package, so it is in your VS project where you need to change and/or filter this files. This has nothing to do with teamcity, so I'd recommend requesting help from the VS documentation or community.