question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exclude items from analysis

See original GitHub issue

I’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:open
  • Created 7 years ago
  • Reactions:5
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

14reactions
samcraggcommented, Nov 15, 2016

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):

{
  "settings": {
    "files": {
      "include": String or String[],
      "exclude": String or String[]
    }
  }
}

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 😃)

0reactions
sharwellcommented, Apr 28, 2017

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found