You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// <copyright file="Program.cs" company="Callie LeFave">// Copyright (c) Callie LeFave 2019// This Source Code Form is subject to the terms of the Mozilla Public// License, v. 2.0. If a copy of the MPL was not distributed with this// file, You can obtain one at https://mozilla.org/MPL/2.0/.// </copyright>usingSystem;namespacetestproj{publicclassProgram{publicstaticvoidMain(){Console.WriteLine("Hello world!");}}}
And this stylecop.json:
{
"$schema": "https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json",
"settings": {
"documentationRules": {
"companyName": "Callie LeFave",
"copyrightText": "Copyright (c) {companyName} {copyrightYear}\n{licenseNotice}",
"variables": {
"copyrightYear": "2019",
"licenseNotice": "This Source Code Form is subject to the terms of the Mozilla Public\nLicense, v. 2.0. If a copy of the MPL was not distributed with this\nfile, You can obtain one at https://mozilla.org/MPL/2.0/."
}
},
"orderingRules": {
"usingDirectivesPlacement": "outsideNamespace"
}
}
}
On build, the following warnings are raised:
Program.cs(12,18): warning CS1591: Missing XML comment for publicly visible type or member 'Program' [/home/callie/.local/src/testproj/testproj.csproj]
Program.cs(14,28): warning CS1591: Missing XML comment for publicly visible type or member 'Program.Main()' [/home/callie/.local/src/testproj/testproj.csproj]
Program.cs(12,18): warning SA1600: Elements should be documented [/home/callie/.local/src/testproj/testproj.csproj]
Program.cs(14,28): warning SA1600: Elements should be documented [/home/callie/.local/src/testproj/testproj.csproj]
But in the editor, SA1636 and SA1200 are also raised, despite the configuration:
Thank you for your time!
The text was updated successfully, but these errors were encountered:
OS: Debian buster
Dev env: vscode 1.34.0 + omnisharp-roslyn 1.19.1 + StyleCop.Analyzers 1.1.118
Given this example code:
And this stylecop.json:
On build, the following warnings are raised:
But in the editor, SA1636 and SA1200 are also raised, despite the configuration:
Thank you for your time!
The text was updated successfully, but these errors were encountered: