![github-actions[bot]](/assets/img/avatar_default.png)
* Create rule S6678 * Draft rule specification * Apply comments * Add logging tag --------- Co-authored-by: cristian-ambrosini-sonarsource <cristian-ambrosini-sonarsource@users.noreply.github.com> Co-authored-by: Cristian Ambrosini <cristian.ambrosini@sonarsource.com> Co-authored-by: Zsolt Kolbay <zsolt.kolbay@sonarsource.com>
9 lines
620 B
Plaintext
9 lines
620 B
Plaintext
== Why is this an issue?
|
|
|
|
Using consistent naming conventions is important for the readability and maintainability of code. In the case of message templates, using PascalCase for named placeholders ensures consistency with structured logging conventions, where each named placeholder is used as a property name in the structured data.
|
|
|
|
The rule covers the following logging frameworks:
|
|
|
|
* Nuget package - https://www.nuget.org/packages/Microsoft.Extensions.Logging[Microsoft.Extensions.Logging]
|
|
* Nuget package - https://www.nuget.org/packages/Serilog[Serilog]
|
|
* Nuget package - https://www.nuget.org/packages/NLog[Nlog] |