Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabled logging analyzer on new repo #5244

Merged
merged 22 commits into from
Jul 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/NetAnalyzers/Core/AnalyzerReleases.Unshipped.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Rule ID | Category | Severity | Notes
--------|----------|----------|-------
CA1418 | Interoperability | Warning | UseValidPlatformString, [Documentation](https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1418)
CA1419 | Interoperability | Info | ProvidePublicParameterlessSafeHandleConstructor, [Documentation](https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1419)
CA1727 | Naming | Hidden | LoggerMessageDefineAnalyzer, [Documentation](https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1727)
CA1839 | Performance | Info | UseEnvironmentMembers, [Documentation](https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1839)
CA1840 | Performance | Info | UseEnvironmentMembers, [Documentation](https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1840)
CA1841 | Performance | Info | PreferDictionaryContainsMethods, [Documentation](https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1841)
Expand All @@ -15,9 +16,13 @@ CA1844 | Performance | Info | ProvideStreamMemoryBasedAsyncOverrides, [Documenta
CA1845 | Performance | Info | UseSpanBasedStringConcat, [Documentation](https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1845)
CA1846 | Performance | Info | PreferAsSpanOverSubstring, [Documentation](https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1846)
CA1847 | Performance | Info | UseStringContainsCharOverloadWithSingleCharactersAnalyzer, [Documentation](https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1847)
CA1848 | Performance | Hidden | LoggerMessageDefineAnalyzer, [Documentation](https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1848)
CA2017 | Reliability | Warning | LoggerMessageDefineAnalyzer, [Documentation](https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)
CA2250 | Usage | Info | UseCancellationTokenThrowIfCancellationRequested, [Documentation](https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2250)
CA2251 | Usage | Hidden | UseStringEqualsOverStringCompare, [Documentation](https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2251)
CA2252 | Usage | Info | DetectPreviewFeatureAnalyzer, [Documentation](https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2252)
CA2253 | Usage | Info | LoggerMessageDefineAnalyzer, [Documentation](https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2253)
CA2254 | Usage | Info | LoggerMessageDefineAnalyzer, [Documentation](https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2254)

### Removed Rules

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,51 @@
<data name="AbstractTypesShouldNotHaveConstructorsMessage" xml:space="preserve">
<value>Abstract type '{0}' should not have public constructors</value>
</data>
<data name="LoggerMessageDiagnosticNumericsInFormatStringTitle" xml:space="preserve">
<value>Named placeholders should not be numeric values</value>
</data>
<data name="LoggerMessageDiagnosticNumericsInFormatStringMessage" xml:space="preserve">
<value>Named placeholders in the logging message template should not be comprised of only numeric characters</value>
</data>
<data name="LoggerMessageDiagnosticNumericsInFormatStringDescription" xml:space="preserve">
<value>Named placeholders in the logging message template should not be comprised of only numeric characters.</value>
</data>
<data name="LoggerMessageDiagnosticFormatParameterCountMismatchTitle" xml:space="preserve">
<value>Parameter count mismatch</value>
</data>
<data name="LoggerMessageDiagnosticFormatParameterCountMismatchMessage" xml:space="preserve">
<value>Number of parameters supplied in the logging message template do not match the number of named placeholders</value>
</data>
<data name="LoggerMessageDiagnosticFormatParameterCountMismatchDescription" xml:space="preserve">
<value>Number of parameters supplied in the logging message template do not match the number of named placeholders.</value>
</data>
<data name="LoggerMessageDiagnosticUseCompiledLogMessagesTitle" xml:space="preserve">
<value>Use the LoggerMessage delegates</value>
</data>
<data name="LoggerMessageDiagnosticUseCompiledLogMessagesMessage" xml:space="preserve">
<value>For improved performance, use the LoggerMessage delegates instead of calling '{0}'</value>
</data>
<data name="LoggerMessageDiagnosticUseCompiledLogMessagesDescription" xml:space="preserve">
<value>For improved performance, use the LoggerMessage delegates.</value>
</data>
<data name="LoggerMessageDiagnosticConcatenationInFormatStringTitle" xml:space="preserve">
<value>Template should be a static expression</value>
</data>
<data name="LoggerMessageDiagnosticConcatenationInFormatStringMessage" xml:space="preserve">
<value>The logging message template should not vary between calls to '{0}'</value>
</data>
<data name="LoggerMessageDiagnosticConcatenationInFormatStringDescription" xml:space="preserve">
<value>The logging message template should not vary between calls.</value>
</data>
<data name="LoggerMessageDiagnosticUsePascalCasedLogMessageTokensTitle" xml:space="preserve">
<value>Use PascalCase for named placeholders</value>
</data>
<data name="LoggerMessageDiagnosticUsePascalCasedLogMessageTokensMessage" xml:space="preserve">
<value>Use PascalCase for named placeholders in the logging message template</value>
</data>
<data name="LoggerMessageDiagnosticUsePascalCasedLogMessageTokensDescription" xml:space="preserve">
<value>Use PascalCase for named placeholders in the logging message template.</value>
</data>
<data name="MarkAssembliesWithClsCompliantTitle" xml:space="preserve">
<value>Mark assemblies with CLSCompliant</value>
</data>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,81 @@
<target state="translated">Odeberte finalizační metodu z typu {0}, přepište Dispose(bool disposing) a vložte finalizační logiku do cesty kódu, kde je disposing hodnoty false. V opačném případě by to mohlo vést k duplicitním voláním Dispose, protože základní typ {1} také poskytuje finalizační metodu.</target>
<note />
</trans-unit>
<trans-unit id="LoggerMessageDiagnosticConcatenationInFormatStringDescription">
<source>The logging message template should not vary between calls.</source>
<target state="new">The logging message template should not vary between calls.</target>
<note />
</trans-unit>
<trans-unit id="LoggerMessageDiagnosticConcatenationInFormatStringMessage">
<source>The logging message template should not vary between calls to '{0}'</source>
<target state="new">The logging message template should not vary between calls to '{0}'</target>
<note />
</trans-unit>
<trans-unit id="LoggerMessageDiagnosticConcatenationInFormatStringTitle">
<source>Template should be a static expression</source>
<target state="new">Template should be a static expression</target>
<note />
</trans-unit>
<trans-unit id="LoggerMessageDiagnosticFormatParameterCountMismatchDescription">
<source>Number of parameters supplied in the logging message template do not match the number of named placeholders.</source>
<target state="new">Number of parameters supplied in the logging message template do not match the number of named placeholders.</target>
<note />
</trans-unit>
<trans-unit id="LoggerMessageDiagnosticFormatParameterCountMismatchMessage">
<source>Number of parameters supplied in the logging message template do not match the number of named placeholders</source>
<target state="new">Number of parameters supplied in the logging message template do not match the number of named placeholders</target>
<note />
</trans-unit>
<trans-unit id="LoggerMessageDiagnosticFormatParameterCountMismatchTitle">
<source>Parameter count mismatch</source>
<target state="new">Parameter count mismatch</target>
<note />
</trans-unit>
<trans-unit id="LoggerMessageDiagnosticNumericsInFormatStringDescription">
<source>Named placeholders in the logging message template should not be comprised of only numeric characters.</source>
<target state="new">Named placeholders in the logging message template should not be comprised of only numeric characters.</target>
<note />
</trans-unit>
<trans-unit id="LoggerMessageDiagnosticNumericsInFormatStringMessage">
<source>Named placeholders in the logging message template should not be comprised of only numeric characters</source>
<target state="new">Named placeholders in the logging message template should not be comprised of only numeric characters</target>
<note />
</trans-unit>
<trans-unit id="LoggerMessageDiagnosticNumericsInFormatStringTitle">
<source>Named placeholders should not be numeric values</source>
<target state="new">Named placeholders should not be numeric values</target>
<note />
</trans-unit>
<trans-unit id="LoggerMessageDiagnosticUseCompiledLogMessagesDescription">
<source>For improved performance, use the LoggerMessage delegates.</source>
<target state="new">For improved performance, use the LoggerMessage delegates.</target>
<note />
</trans-unit>
<trans-unit id="LoggerMessageDiagnosticUseCompiledLogMessagesMessage">
<source>For improved performance, use the LoggerMessage delegates instead of calling '{0}'</source>
<target state="new">For improved performance, use the LoggerMessage delegates instead of calling '{0}'</target>
<note />
</trans-unit>
<trans-unit id="LoggerMessageDiagnosticUseCompiledLogMessagesTitle">
<source>Use the LoggerMessage delegates</source>
<target state="new">Use the LoggerMessage delegates</target>
<note />
</trans-unit>
<trans-unit id="LoggerMessageDiagnosticUsePascalCasedLogMessageTokensDescription">
<source>Use PascalCase for named placeholders in the logging message template.</source>
<target state="new">Use PascalCase for named placeholders in the logging message template.</target>
<note />
</trans-unit>
<trans-unit id="LoggerMessageDiagnosticUsePascalCasedLogMessageTokensMessage">
<source>Use PascalCase for named placeholders in the logging message template</source>
<target state="new">Use PascalCase for named placeholders in the logging message template</target>
<note />
</trans-unit>
<trans-unit id="LoggerMessageDiagnosticUsePascalCasedLogMessageTokensTitle">
<source>Use PascalCase for named placeholders</source>
<target state="new">Use PascalCase for named placeholders</target>
<note />
</trans-unit>
<trans-unit id="MarkAttributesWithAttributeUsageCodeFix">
<source>Apply 'AttributeUsageAttribute'</source>
<target state="translated">Použít AttributeUsageAttribute</target>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,81 @@
<target state="translated">Entfernen Sie den Finalizer vom Typ "{0}", setzen Sie "Dispose(bool disposing)" außer Kraft, und platzieren Sie die Finalisierungslogik im Codepfad, wenn "disposing" FALSE lautet. Andernfalls kann es zu doppelten Dispose-Aufrufen kommen, weil der Basistyp "{1}" ebenfalls einen Finalizer bereitstellt.</target>
<note />
</trans-unit>
<trans-unit id="LoggerMessageDiagnosticConcatenationInFormatStringDescription">
<source>The logging message template should not vary between calls.</source>
<target state="new">The logging message template should not vary between calls.</target>
<note />
</trans-unit>
<trans-unit id="LoggerMessageDiagnosticConcatenationInFormatStringMessage">
<source>The logging message template should not vary between calls to '{0}'</source>
<target state="new">The logging message template should not vary between calls to '{0}'</target>
<note />
</trans-unit>
<trans-unit id="LoggerMessageDiagnosticConcatenationInFormatStringTitle">
<source>Template should be a static expression</source>
<target state="new">Template should be a static expression</target>
<note />
</trans-unit>
<trans-unit id="LoggerMessageDiagnosticFormatParameterCountMismatchDescription">
<source>Number of parameters supplied in the logging message template do not match the number of named placeholders.</source>
<target state="new">Number of parameters supplied in the logging message template do not match the number of named placeholders.</target>
<note />
</trans-unit>
<trans-unit id="LoggerMessageDiagnosticFormatParameterCountMismatchMessage">
<source>Number of parameters supplied in the logging message template do not match the number of named placeholders</source>
<target state="new">Number of parameters supplied in the logging message template do not match the number of named placeholders</target>
<note />
</trans-unit>
<trans-unit id="LoggerMessageDiagnosticFormatParameterCountMismatchTitle">
<source>Parameter count mismatch</source>
<target state="new">Parameter count mismatch</target>
<note />
</trans-unit>
<trans-unit id="LoggerMessageDiagnosticNumericsInFormatStringDescription">
<source>Named placeholders in the logging message template should not be comprised of only numeric characters.</source>
<target state="new">Named placeholders in the logging message template should not be comprised of only numeric characters.</target>
<note />
</trans-unit>
<trans-unit id="LoggerMessageDiagnosticNumericsInFormatStringMessage">
<source>Named placeholders in the logging message template should not be comprised of only numeric characters</source>
<target state="new">Named placeholders in the logging message template should not be comprised of only numeric characters</target>
<note />
</trans-unit>
<trans-unit id="LoggerMessageDiagnosticNumericsInFormatStringTitle">
<source>Named placeholders should not be numeric values</source>
<target state="new">Named placeholders should not be numeric values</target>
<note />
</trans-unit>
<trans-unit id="LoggerMessageDiagnosticUseCompiledLogMessagesDescription">
<source>For improved performance, use the LoggerMessage delegates.</source>
<target state="new">For improved performance, use the LoggerMessage delegates.</target>
<note />
</trans-unit>
<trans-unit id="LoggerMessageDiagnosticUseCompiledLogMessagesMessage">
<source>For improved performance, use the LoggerMessage delegates instead of calling '{0}'</source>
<target state="new">For improved performance, use the LoggerMessage delegates instead of calling '{0}'</target>
<note />
</trans-unit>
<trans-unit id="LoggerMessageDiagnosticUseCompiledLogMessagesTitle">
<source>Use the LoggerMessage delegates</source>
<target state="new">Use the LoggerMessage delegates</target>
<note />
</trans-unit>
<trans-unit id="LoggerMessageDiagnosticUsePascalCasedLogMessageTokensDescription">
<source>Use PascalCase for named placeholders in the logging message template.</source>
<target state="new">Use PascalCase for named placeholders in the logging message template.</target>
<note />
</trans-unit>
<trans-unit id="LoggerMessageDiagnosticUsePascalCasedLogMessageTokensMessage">
<source>Use PascalCase for named placeholders in the logging message template</source>
<target state="new">Use PascalCase for named placeholders in the logging message template</target>
<note />
</trans-unit>
<trans-unit id="LoggerMessageDiagnosticUsePascalCasedLogMessageTokensTitle">
<source>Use PascalCase for named placeholders</source>
<target state="new">Use PascalCase for named placeholders</target>
<note />
</trans-unit>
<trans-unit id="MarkAttributesWithAttributeUsageCodeFix">
<source>Apply 'AttributeUsageAttribute'</source>
<target state="translated">"AttributeUsageAttribute" anwenden</target>
Expand Down
Loading