diff --git a/osu.Game.Rulesets.Osu/Mods/OsuModFreezeFrame.cs b/osu.Game.Rulesets.Osu/Mods/OsuModFreezeFrame.cs index 06cb9c3419..421b908dc9 100644 --- a/osu.Game.Rulesets.Osu/Mods/OsuModFreezeFrame.cs +++ b/osu.Game.Rulesets.Osu/Mods/OsuModFreezeFrame.cs @@ -43,7 +43,10 @@ namespace osu.Game.Rulesets.Osu.Mods foreach (var obj in beatmap.HitObjects.OfType()) { - if (obj.NewCombo) { lastNewComboTime = obj.StartTime; } + if (obj.NewCombo) + { + lastNewComboTime = obj.StartTime; + } applyFadeInAdjustment(obj); } diff --git a/osu.Game.Tests/Visual/Gameplay/TestSceneClicksPerSecondCalculator.cs b/osu.Game.Tests/Visual/Gameplay/TestSceneClicksPerSecondCalculator.cs index 55d57d7a65..9c93eb375c 100644 --- a/osu.Game.Tests/Visual/Gameplay/TestSceneClicksPerSecondCalculator.cs +++ b/osu.Game.Tests/Visual/Gameplay/TestSceneClicksPerSecondCalculator.cs @@ -108,7 +108,10 @@ namespace osu.Game.Tests.Visual.Gameplay public bool IsRunning => true; - public double TrueGameplayRate { set => adjustableAudioComponent.Tempo.Value = value; } + public double TrueGameplayRate + { + set => adjustableAudioComponent.Tempo.Value = value; + } private readonly AudioAdjustments adjustableAudioComponent = new AudioAdjustments(); diff --git a/osu.Game/Overlays/Chat/Listing/ChannelListingItem.cs b/osu.Game/Overlays/Chat/Listing/ChannelListingItem.cs index 466f8b2f5d..539d7c5075 100644 --- a/osu.Game/Overlays/Chat/Listing/ChannelListingItem.cs +++ b/osu.Game/Overlays/Chat/Listing/ChannelListingItem.cs @@ -31,7 +31,11 @@ namespace osu.Game.Overlays.Chat.Listing public bool FilteringActive { get; set; } public IEnumerable FilterTerms => new LocalisableString[] { Channel.Name, Channel.Topic ?? string.Empty }; - public bool MatchingFilter { set => this.FadeTo(value ? 1f : 0f, 100); } + + public bool MatchingFilter + { + set => this.FadeTo(value ? 1f : 0f, 100); + } protected override HoverSounds CreateHoverSounds(HoverSampleSet sampleSet) => new HoverSounds(); diff --git a/osu.Game/Overlays/Dashboard/Friends/FriendsList.cs b/osu.Game/Overlays/Dashboard/Friends/FriendsList.cs index 955c2c046e..c7689dff8f 100644 --- a/osu.Game/Overlays/Dashboard/Friends/FriendsList.cs +++ b/osu.Game/Overlays/Dashboard/Friends/FriendsList.cs @@ -207,7 +207,10 @@ namespace osu.Game.Overlays.Dashboard.Friends } } - bool IFilterable.FilteringActive { set { } } + bool IFilterable.FilteringActive + { + set { } + } } } } diff --git a/osu.Game/Overlays/Mods/ModSelectPanel.cs b/osu.Game/Overlays/Mods/ModSelectPanel.cs index 6d48576742..5cf858fc1d 100644 --- a/osu.Game/Overlays/Mods/ModSelectPanel.cs +++ b/osu.Game/Overlays/Mods/ModSelectPanel.cs @@ -300,7 +300,10 @@ namespace osu.Game.Overlays.Mods } } - public bool FilteringActive { set { } } + public bool FilteringActive + { + set { } + } #endregion } diff --git a/osu.Game/Screens/Edit/Timing/WaveformComparisonDisplay.cs b/osu.Game/Screens/Edit/Timing/WaveformComparisonDisplay.cs index 2df2dd7c5b..57bf20de43 100644 --- a/osu.Game/Screens/Edit/Timing/WaveformComparisonDisplay.cs +++ b/osu.Game/Screens/Edit/Timing/WaveformComparisonDisplay.cs @@ -356,8 +356,15 @@ namespace osu.Game.Screens.Edit.Timing waveformGraph.Waveform = beatmap.Value.Waveform; } - public int BeatIndex { set => beatIndexText.Text = value.ToString(); } - public Vector2 WaveformScale { set => waveformGraph.Scale = value; } + public int BeatIndex + { + set => beatIndexText.Text = value.ToString(); + } + + public Vector2 WaveformScale + { + set => waveformGraph.Scale = value; + } public void WaveformOffsetTo(float value, bool animated) => this.TransformTo(nameof(waveformOffset), value, animated ? 300 : 0, Easing.OutQuint); diff --git a/osu.Game/Screens/OnlinePlay/FooterButtonFreeMods.cs b/osu.Game/Screens/OnlinePlay/FooterButtonFreeMods.cs index ad780cd27d..7c632d1619 100644 --- a/osu.Game/Screens/OnlinePlay/FooterButtonFreeMods.cs +++ b/osu.Game/Screens/OnlinePlay/FooterButtonFreeMods.cs @@ -28,7 +28,10 @@ namespace osu.Game.Screens.OnlinePlay protected override bool IsActive => FreeMods.Value.Count > 0; - public new Action Action { set => throw new NotSupportedException("The click action is handled by the button itself."); } + public new Action Action + { + set => throw new NotSupportedException("The click action is handled by the button itself."); + } private OsuSpriteText count = null!; private Circle circle = null!; diff --git a/osu.Game/Screens/OnlinePlay/FooterButtonFreestyle.cs b/osu.Game/Screens/OnlinePlay/FooterButtonFreestyle.cs index 6ee983af20..c4edcec976 100644 --- a/osu.Game/Screens/OnlinePlay/FooterButtonFreestyle.cs +++ b/osu.Game/Screens/OnlinePlay/FooterButtonFreestyle.cs @@ -21,7 +21,10 @@ namespace osu.Game.Screens.OnlinePlay protected override bool IsActive => Freestyle.Value; - public new Action Action { set => throw new NotSupportedException("The click action is handled by the button itself."); } + public new Action Action + { + set => throw new NotSupportedException("The click action is handled by the button itself."); + } private OsuSpriteText text = null!; private Circle circle = null!; diff --git a/osu.Game/Screens/Play/BeatmapMetadataDisplay.cs b/osu.Game/Screens/Play/BeatmapMetadataDisplay.cs index 66aa3d9cc0..c7f285f552 100644 --- a/osu.Game/Screens/Play/BeatmapMetadataDisplay.cs +++ b/osu.Game/Screens/Play/BeatmapMetadataDisplay.cs @@ -4,7 +4,6 @@ #nullable disable using System.Collections.Generic; -using System.Diagnostics; using osu.Framework.Allocation; using osu.Framework.Bindables; using osu.Framework.Graphics; diff --git a/osu.Game/Screens/Play/HUD/JudgementCounter/JudgementCounter.cs b/osu.Game/Screens/Play/HUD/JudgementCounter/JudgementCounter.cs index d69416f34a..77c03069be 100644 --- a/osu.Game/Screens/Play/HUD/JudgementCounter/JudgementCounter.cs +++ b/osu.Game/Screens/Play/HUD/JudgementCounter/JudgementCounter.cs @@ -20,7 +20,10 @@ namespace osu.Game.Screens.Play.HUD.JudgementCounter public readonly JudgementCount Result; - public JudgementCounter(JudgementCount result) => Result = result; + public JudgementCounter(JudgementCount result) + { + Result = result; + } public OsuSpriteText ResultName = null!; private FillFlowContainer flowContainer = null!; diff --git a/osu.Game/Screens/Ranking/UserTagControl_AddTagsPopover.cs b/osu.Game/Screens/Ranking/UserTagControl_AddTagsPopover.cs index 90fd8c19c2..ed4b46ab64 100644 --- a/osu.Game/Screens/Ranking/UserTagControl_AddTagsPopover.cs +++ b/osu.Game/Screens/Ranking/UserTagControl_AddTagsPopover.cs @@ -140,7 +140,10 @@ namespace osu.Game.Screens.Ranking set => Alpha = value ? 1 : 0; } - public bool FilteringActive { set { } } + public bool FilteringActive + { + set { } + } public GroupFlow(string? name) { @@ -245,8 +248,15 @@ namespace osu.Game.Screens.Ranking public IEnumerable FilterTerms => [Tag.FullName, Tag.Description]; - public bool MatchingFilter { set => Alpha = value ? 1 : 0; } - public bool FilteringActive { set { } } + public bool MatchingFilter + { + set => Alpha = value ? 1 : 0; + } + + public bool FilteringActive + { + set { } + } protected override void LoadComplete() { diff --git a/osu.Game/Screens/SelectV2/BeatmapTitleWedge_DifficultyDisplay.cs b/osu.Game/Screens/SelectV2/BeatmapTitleWedge_DifficultyDisplay.cs index 9aaf317cb0..4281717816 100644 --- a/osu.Game/Screens/SelectV2/BeatmapTitleWedge_DifficultyDisplay.cs +++ b/osu.Game/Screens/SelectV2/BeatmapTitleWedge_DifficultyDisplay.cs @@ -8,7 +8,6 @@ using System.Threading; using System.Threading.Tasks; using osu.Framework.Allocation; using osu.Framework.Bindables; -using osu.Framework.Extensions; using osu.Framework.Extensions.Color4Extensions; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; diff --git a/osu.Game/Screens/SelectV2/Panel.cs b/osu.Game/Screens/SelectV2/Panel.cs index c22a88a55f..240bede05b 100644 --- a/osu.Game/Screens/SelectV2/Panel.cs +++ b/osu.Game/Screens/SelectV2/Panel.cs @@ -45,9 +45,15 @@ namespace osu.Game.Screens.SelectV2 protected Container Content { get; private set; } = null!; - public Drawable Background { set => backgroundContainer.Child = value; } + public Drawable Background + { + set => backgroundContainer.Child = value; + } - public Drawable Icon { set => iconContainer.Child = value; } + public Drawable Icon + { + set => iconContainer.Child = value; + } private Color4? accentColour; diff --git a/osu.Game/Utils/SentryLogger.cs b/osu.Game/Utils/SentryLogger.cs index 2172ea895e..95086c501f 100644 --- a/osu.Game/Utils/SentryLogger.cs +++ b/osu.Game/Utils/SentryLogger.cs @@ -58,7 +58,10 @@ namespace osu.Game.Utils Logger.NewEntry += processLogEntry; } - ~SentryLogger() => Dispose(false); + ~SentryLogger() + { + Dispose(false); + } public void AttachUser(IBindable user) { diff --git a/osu.sln.DotSettings b/osu.sln.DotSettings index b8a455e2f1..99c42ec6f2 100644 --- a/osu.sln.DotSettings +++ b/osu.sln.DotSettings @@ -304,7 +304,7 @@ 1 1 NEXT_LINE - MULTILINE + DO_NOT_CHANGE True True True @@ -781,6 +781,7 @@ See the LICENCE file in the repository root for full licence text. <Policy Inspect="True" Prefix="" Suffix="" Style="aa_bb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="AA_BB" /> <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> + <Policy><Descriptor Staticness="Any" AccessRightKinds="Protected, ProtectedInternal, Internal, Public, PrivateProtected, FileLocal" Description="Events"><ElementKinds><Kind Name="EVENT" /></ElementKinds></Descriptor><Policy Inspect="True" WarnAboutPrefixesAndSuffixes="False" Prefix="" Suffix="" Style="AaBb" /></Policy> <Policy><Descriptor Staticness="Static" AccessRightKinds="Private" Description="Static readonly fields (private)"><ElementKinds><Kind Name="READONLY_FIELD" /></ElementKinds></Descriptor><Policy Inspect="True" Prefix="" Suffix="" Style="aa_bb" /></Policy> <Policy><Descriptor Staticness="Any" AccessRightKinds="Private" Description="Constant fields (private)"><ElementKinds><Kind Name="CONSTANT_FIELD" /></ElementKinds></Descriptor><Policy Inspect="True" Prefix="" Suffix="" Style="aa_bb" /></Policy> <Policy><Descriptor Staticness="Any" AccessRightKinds="Any" Description="Type parameters"><ElementKinds><Kind Name="TYPE_PARAMETER" /></ElementKinds></Descriptor><Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /></Policy>