diff options
Diffstat (limited to 'src/slskd/Properties')
| -rw-r--r-- | src/slskd/Properties/analysis.ruleset | 48 | ||||
| -rw-r--r-- | src/slskd/Properties/launchSettings.json | 8 | ||||
| -rw-r--r-- | src/slskd/Properties/slskd.yml | 44 | ||||
| -rw-r--r-- | src/slskd/Properties/stylecop.json | 27 |
4 files changed, 119 insertions, 8 deletions
diff --git a/src/slskd/Properties/analysis.ruleset b/src/slskd/Properties/analysis.ruleset new file mode 100644 index 00000000..6605f525 --- /dev/null +++ b/src/slskd/Properties/analysis.ruleset @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="utf-8"?> +<RuleSet Name="Soulseek.NET Ruleset" Description="Global code analysis rules for Soulseek.NET projects up for consumption" ToolsVersion="16.0"> + <Include Path="allrules.ruleset" Action="Hidden" /> + <Rules AnalyzerId="Microsoft.CodeQuality.Analyzers" RuleNamespace="Microsoft.CodeQuality.Analyzers"> + <Rule Id="CA1016" Action="Warning" /> + <Rule Id="CA1028" Action="None" /> + <Rule Id="CA1031" Action="None" /> + <Rule Id="CA1033" Action="Warning" /> + <Rule Id="CA1060" Action="Warning" /> + <Rule Id="CA1061" Action="Warning" /> + <Rule Id="CA1063" Action="Warning" /> + <Rule Id="CA1065" Action="Warning" /> + <Rule Id="CA1303" Action="None" /> + <Rule Id="CA1711" Action="None" /> + <Rule Id="CA1714" Action="Warning" /> + <Rule Id="CA1717" Action="Warning" /> + <Rule Id="CA1725" Action="Warning" /> + <Rule Id="CA1805" Action="None" /> + <Rule Id="CA1819" Action="None" /> + <Rule Id="CA1822" Action="None" /> + <Rule Id="CA2007" Action="Warning" /> + <Rule Id="CA2200" Action="Warning" /> + <Rule Id="CA2214" Action="Warning" /> + <Rule Id="CA2231" Action="Warning" /> + </Rules> + <Rules AnalyzerId="Microsoft.CodeQuality.CSharp.Analyzers" RuleNamespace="Microsoft.CodeQuality.CSharp.Analyzers"> + <Rule Id="CA1001" Action="Warning" /> + <Rule Id="CA1821" Action="Warning" /> + </Rules> + <Rules AnalyzerId="Microsoft.NetCore.Analyzers" RuleNamespace="Microsoft.NetCore.Analyzers"> + <Rule Id="CA2008" Action="None" /> + </Rules> + <Rules AnalyzerId="SonarAnalyzer.CSharp" RuleNamespace="SonarAnalyzer.CSharp"> + <Rule Id="S2589" Action="None" /> + <Rule Id="S3427" Action="Info" /> + </Rules> + <Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers"> + <Rule Id="SA1008" Action="None" /> + <Rule Id="SA1009" Action="None" /> + <Rule Id="SA1101" Action="None" /> + <Rule Id="SA1124" Action="None" /> + <Rule Id="SA1300" Action="None" /> + <Rule Id="SA1402" Action="None" /> + <Rule Id="SA1516" Action="None" /> + <Rule Id="SA1600" Action="Info" /> + <Rule Id="SA1649" Action="None" /> + </Rules> +</RuleSet>
\ No newline at end of file diff --git a/src/slskd/Properties/launchSettings.json b/src/slskd/Properties/launchSettings.json index f5409d71..b151b2f4 100644 --- a/src/slskd/Properties/launchSettings.json +++ b/src/slskd/Properties/launchSettings.json @@ -1,12 +1,4 @@ { - "iisSettings": { - "windowsAuthentication": false, - "anonymousAuthentication": true, - "iisExpress": { - "applicationUrl": "http://localhost:57117/", - "sslPort": 44332 - } - }, "profiles": { "slskd": { "commandName": "Project", diff --git a/src/slskd/Properties/slskd.yml b/src/slskd/Properties/slskd.yml new file mode 100644 index 00000000..d5519b65 --- /dev/null +++ b/src/slskd/Properties/slskd.yml @@ -0,0 +1,44 @@ +# slskd: +# debug: false +# no_logo: false +# instance_name: default +# web: +# port: 5000 +# https: +# port: 5001 +# force: false +# certificate: +# pfx: ~ +# password: ~ +# url_base: / +# content_path: wwwroot +# authentication: +# disable: false +# username: slskd +# password: slskd +# jwt: +# key: ~ +# ttl: 604800000 +# directories: +# shared: ~ +# downloads: ~ +# logger: +# loki: ~ +# feature: +# prometheus: false +# swagger: false +# soulseek: +# username: ~ +# password: ~ +# listen_port: 50000 +# diagnostic_level: Info +# distributed_network: +# disabled: false +# child_limit: 25 +# connection: +# timeout: +# connect: 5000 +# inactivity: 15000 +# buffer: +# read: 16384 +# write: 16384
\ No newline at end of file diff --git a/src/slskd/Properties/stylecop.json b/src/slskd/Properties/stylecop.json new file mode 100644 index 00000000..7d848f1a --- /dev/null +++ b/src/slskd/Properties/stylecop.json @@ -0,0 +1,27 @@ +{ + "$schema": "https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json", + "settings": { + "orderingRules": { + "systemUsingDirectivesFirst": true, + "usingDirectivesPlacement": "insideNamespace" + }, + "maintainabilityRules": { + "topLevelTypes": [ + "class", + "delegate", + "enum", + "interface" + ] + }, + "documentationRules": { + "documentPrivateElements": false, + "documentPrivateFields": false, + "companyName": "slskd Team", + "copyrightText": " Copyright (c) {companyName}. All rights reserved.\n\n This program is free software: you can redistribute it and/or modify\n it under the terms of the GNU Affero General Public License as published\n by the Free Software Foundation, either version 3 of the License, or\n (at your option) any later version.\n\n This program is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n GNU Affero General Public License for more details.\n\n You should have received a copy of the GNU Affero General Public License\n along with this program. If not, see https://www.gnu.org/licenses/.", + "variables": { + "licenseName": "AGPLv3", + "licenseFile": "LICENSE" + } + } + } +}
\ No newline at end of file |
