Comments (2)
To give an idea why I would like this, here's my use case:
We run inspectcode.exe as part of our PR pipelines and the only plugin we add to the vanilla run is Structured Logging. We generate a nice html report of all issues but we also perform analysis on a category/severity/issue basis for things we are really concerned about. We display a summary of those results in our PRs (with a link to full report) and choose to pass/fail in part.
When we analyze the results, we allow certain thresholds based on severity/category and sometimes the issue Id. One thing we would like to enforce is that there are zero structured Logging warnings. Because all of the issues are in the general "Compiler Warnings" category, I need to add individual overrides for each IssueId this plugin can raise. It'd be nice to be able to do it at the subcategory (or category) level, which has the added bonus that I don't need to monitor for new rules.
Adding a sub-category also means I'd get a nice "english" piece of text to display in the summary. Right now for this plugin (or any issues I'm explicitly watching for that don't have a subcategory) I display the cryptic Issue Id. I choose not to display the description of the issue itself since sometimes they're not very helpful on their own. (The ones that come from here usually have format strings in them ie Property name '{0}' does not naming rules'. Suggested name is '{1}'
which doesn't really tell someone looking at the summary it's referring to logging. This also impacts our html report where we group by Issue and show the issue's description, unfortunately with format string placeholders. But that's a seperate topic)
from resharper-structured-logging.
Hi @pinkfloydx33,
Great suggestion! 👍
I think it will be helpful in cases when you manually analyze warnings in VS too.
The PR is welcome.
It'd be nice to be able to do it at the subcategory (or category) level, which has the added bonus that I don't need to monitor for new rules.
What's the difference between category and sub-category? I thought that only GroupId
(category) could be specified.
from resharper-structured-logging.
Related Issues (20)
- Incompatibility with ReSharper 2023.3 HOT 9
- Using "Convert to compile-time constant message template" select text one char too much on the left of selection
- Error when using the ReSharper CLI HOT 3
- Support LoggerMessage.Define and DefineScope
- `ToString` in parent classes is not considered HOT 1
- Compatibility with Rider 2022.3 EAP HOT 1
- Support latest Rider 2022.3 EAP 2 HOT 1
- Plugin Installation Error HOT 4
- Support for LoggerMessageAttribute
- Compatibility with Rider 2023.1 EAP HOT 1
- Specified cast is not valid on reading `ConstantValue.StringValue` HOT 5
- Convert to compile time constant codefix should cover more cases HOT 2
- Compatibility with Jetbrains Rider 2023.2 HOT 2
- Log Properties Naming Style not working HOT 2
- Convert to Roslyn Analyzer HOT 5
- Exception in Plugin (2023.2.0.297-eap02) HOT 14
- Support for ZLogger
- Structured Logging 2023.2.0.301-eap09 HOT 2
- Exception in plugin on Rider 2023.2 HOT 1
- Allow disabling analyzer in .editorconfig HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from resharper-structured-logging.