Add editorconfig and analyzers, format backend code

This commit is contained in:
2026-09-24 04:54:17 +02:00
parent 87c3f97529
commit c8fe28b07b
367 changed files with 12179 additions and 12459 deletions
@@ -1,18 +1,17 @@
using System.ComponentModel.DataAnnotations;
namespace Musify.Application.Configuration
namespace Musify.Application.Configuration;
public sealed class PlaybackConfiguration
{
public const string SectionName = "Playback";
public sealed class PlaybackConfiguration
{
public const string SectionName = "Playback";
public bool AllowAnonymousListening { get; set; }
public bool AllowAnonymousListening { get; set; }
[Range(0, 3600)]
public int AnonymousFragmentSeconds { get; set; }
[Range(0, 3600)]
public int AnonymousFragmentSeconds { get; set; }
[Range(1, int.MaxValue)]
public int EstimatedAudioBytesPerSecond { get; set; } = 16_000;
}
[Range(1, int.MaxValue)]
public int EstimatedAudioBytesPerSecond { get; set; } = 16_000;
}