diff --git a/My.ProjectName/GlobalSuppressions.cs b/My.ProjectName/GlobalSuppressions.cs new file mode 100644 index 0000000..d7e85b9 --- /dev/null +++ b/My.ProjectName/GlobalSuppressions.cs @@ -0,0 +1,7 @@ +// This file is used by Code Analysis to maintain SuppressMessage +// attributes that are applied to this project. +// Project-level suppressions either have no target or are given +// a specific target and scoped to a namespace, type, member, etc. + +using System.Diagnostics.CodeAnalysis; + diff --git a/My.ProjectName/My.ProjectName.csproj b/My.ProjectName/My.ProjectName.csproj index 3a3da50..2bf2911 100644 --- a/My.ProjectName/My.ProjectName.csproj +++ b/My.ProjectName/My.ProjectName.csproj @@ -6,6 +6,14 @@ Linux + + + + + + + + @@ -27,6 +35,10 @@ + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/My.ProjectName/stylecop.json b/My.ProjectName/stylecop.json new file mode 100644 index 0000000..a91d2bf --- /dev/null +++ b/My.ProjectName/stylecop.json @@ -0,0 +1,52 @@ +{ + // ACTION REQUIRED: This file was automatically added to your project, but it + // will not take effect until additional steps are taken to enable it. See the + // following page for additional information: + // + // https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/EnableConfiguration.md + "​": null, + "$schema": "https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json", + "settings": { + "documentationRules": { + "companyName": "MyCompanyName", + "documentationCulture": "en-GB", + "documentInterfaces": true, + "documentExposedElements": true, + "documentInternalElements": true, + "documentPrivateElements": true, + "documentPrivateFields": false, + "headerDecoration": "-----------------------------------------------------------------------", + "xmlHeader": true + }, + "layoutRules": { + "allowConsecutiveUsings": true, + "newlineAtEndOfFile": "require" + }, + "maintainabilityRules": { + "topLevelTypes": [ + "class", + "interface" + ] + }, + "namingRules": { + "allowCommonHungarianPrefixes": true, + "includeInferredTupleElementNames": true, + "tupleElementNameCasing": "PascalCase" + }, + "orderingRules": { + "elementOrder": [ + "kind", + "constant", + "accessibility", + "static", + "readonly" + ], + "blankLinesBetweenUsingGroups": "omit", + "usingDirectivesPlacement": "outsideNamespace", + "systemUsingDirectivesFirst": true + }, + "readabilityRules": { + "allowBuiltInTypeAliases": true + } + } +}