From 287f714d93292f890b919cb0fb969ca04bed38f8 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Tue, 9 Feb 2021 08:46:25 -0600 Subject: add stylecop and analysis ruleset --- src/slskd/Properties/analysis.ruleset | 47 ++++++++++++++++++++++++++++++++ src/slskd/Properties/launchSettings.json | 8 ------ src/slskd/Properties/stylecop.json | 27 ++++++++++++++++++ 3 files changed, 74 insertions(+), 8 deletions(-) create mode 100644 src/slskd/Properties/analysis.ruleset create mode 100644 src/slskd/Properties/stylecop.json (limited to 'src/slskd/Properties') diff --git a/src/slskd/Properties/analysis.ruleset b/src/slskd/Properties/analysis.ruleset new file mode 100644 index 00000000..e1522031 --- /dev/null +++ b/src/slskd/Properties/analysis.ruleset @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ 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/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 -- cgit v1.2.3 From 324dd6bec3b40b69b2278bb93376bc1f90932bfa Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Wed, 10 Feb 2021 08:27:24 -0600 Subject: disable SA1649 --- src/slskd/Properties/analysis.ruleset | 1 + 1 file changed, 1 insertion(+) (limited to 'src/slskd/Properties') diff --git a/src/slskd/Properties/analysis.ruleset b/src/slskd/Properties/analysis.ruleset index e1522031..6605f525 100644 --- a/src/slskd/Properties/analysis.ruleset +++ b/src/slskd/Properties/analysis.ruleset @@ -43,5 +43,6 @@ + \ No newline at end of file -- cgit v1.2.3 From 1744c9b2ded05a8a83874864957229a3235fb546 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sat, 13 Feb 2021 17:02:07 -0600 Subject: move license and config --- src/slskd/Properties/slskd.yml | 44 ++++++++++++++++++++++++++++++++++++++++++ src/slskd/Startup.cs | 2 +- src/slskd/slskd.csproj | 20 ++++++++++--------- src/slskd/slskd.yml | 44 ------------------------------------------ 4 files changed, 56 insertions(+), 54 deletions(-) create mode 100644 src/slskd/Properties/slskd.yml delete mode 100644 src/slskd/slskd.yml (limited to 'src/slskd/Properties') 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/Startup.cs b/src/slskd/Startup.cs index e806fdfd..7c71a7ec 100644 --- a/src/slskd/Startup.cs +++ b/src/slskd/Startup.cs @@ -462,7 +462,7 @@ namespace slskd Task.Run(async () => { - //await Client.ConnectAsync(Options.Soulseek.Username, Options.Soulseek.Password); + await Client.ConnectAsync(Options.Soulseek.Username, Options.Soulseek.Password); }).GetAwaiter().GetResult(); logger.Information("Connected and logged in as {Username}", username); diff --git a/src/slskd/slskd.csproj b/src/slskd/slskd.csproj index 543fadbd..7a80b5f6 100644 --- a/src/slskd/slskd.csproj +++ b/src/slskd/slskd.csproj @@ -4,6 +4,7 @@ https://slskd.org slskd Team Copyright (c) slskd Team + LICENSE @@ -12,7 +13,7 @@ Properties\analysis.ruleset true false - LICENSE + true @@ -24,19 +25,20 @@ - - Always - PreserveNewest - - True - - Always - + + + + + + + + + diff --git a/src/slskd/slskd.yml b/src/slskd/slskd.yml deleted file mode 100644 index d5519b65..00000000 --- a/src/slskd/slskd.yml +++ /dev/null @@ -1,44 +0,0 @@ -# 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 -- cgit v1.2.3