Exclude items from analysis
See original GitHub issueI’m currently taking a dependency on the NuGet package xunit.assert.source
in my (.NET core) test project, and I can’t figure out how to exclude the source files in that package from analysis.
Is this possible?
Issue Analytics
- State:
- Created 7 years ago
- Reactions:5
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Exclude Items
You can choose to remove individual items that are not needed in your analysis. When you exclude items, you exclude the value from...
Read more >Excluding observations from analysis
Observations to exclude from the analysis are enclosed in square brackets (for example, [65] or [Male]) in the dataset. Excluded observations are treated ......
Read more >When is it acceptable to exclude data from analysis?
There are 68 categories, 11 of which have been removed due to missing data for 4 out of 9 years. The most common...
Read more >Exclude components and features from analysis
Exclude assembly component from analysis In the graphics area, right-click the component and click Exclude From Simulation.
Read more >To Exclude Elements From a Structural Analysis
1. Click the Excluded Elements tab on the analysis definition dialog box. 2. If you want to exclude elements, select the Exclude Elements...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Could we extend the
stylecop.json
file to have the include/exclude options used by project.json, so you could do something like this (where the files are specified with a globbing pattern, rooted at the project folder):As with
project.json
, the exclude patterns would have a higher priority than the include patterns.I’m happy to submit a pull request if the above sounds reasonable, though I’d like to get the go ahead from a project member first as there are already a few pull requests waiting (though @sharwell is doing a great job getting them closed lately 😃)
At this point, this would be a reasonable issue to file on dotnet/roslyn. StyleCop Analyzers 1.1+ does not perform any file exclusions itself, but instead relies on the compiler to decide which files are considered “generated” (its designation for exclusions).