Fix code quality issues

pull/27683/head
Bartłomiej Dach 2024-03-26 10:55:49 +01:00
parent 6fa663c8ca
commit 9b923b1909
No known key found for this signature in database
6 changed files with 10 additions and 9 deletions

View File

@ -17,7 +17,7 @@ namespace osu.Game.Rulesets.Catch.Tests.Editor.Checks
{
private CheckCatchAbnormalDifficultySettings check = null!;
private IBeatmap beatmap = new Beatmap<HitObject>();
private readonly IBeatmap beatmap = new Beatmap<HitObject>();
[SetUp]
public void Setup()
@ -25,7 +25,7 @@ namespace osu.Game.Rulesets.Catch.Tests.Editor.Checks
check = new CheckCatchAbnormalDifficultySettings();
beatmap.BeatmapInfo.Ruleset = new CatchRuleset().RulesetInfo;
beatmap.Difficulty = new BeatmapDifficulty()
beatmap.Difficulty = new BeatmapDifficulty
{
ApproachRate = 5,
CircleSize = 5,

View File

@ -23,7 +23,7 @@ namespace osu.Game.Rulesets.Mania.Tests.Editor.Checks
{
check = new CheckKeyCount();
beatmap = new Beatmap<HitObject>()
beatmap = new Beatmap<HitObject>
{
BeatmapInfo = new BeatmapInfo
{

View File

@ -17,7 +17,7 @@ namespace osu.Game.Rulesets.Mania.Tests.Editor.Checks
{
private CheckManiaAbnormalDifficultySettings check = null!;
private IBeatmap beatmap = new Beatmap<HitObject>();
private readonly IBeatmap beatmap = new Beatmap<HitObject>();
[SetUp]
public void Setup()
@ -25,7 +25,7 @@ namespace osu.Game.Rulesets.Mania.Tests.Editor.Checks
check = new CheckManiaAbnormalDifficultySettings();
beatmap.BeatmapInfo.Ruleset = new ManiaRuleset().RulesetInfo;
beatmap.Difficulty = new BeatmapDifficulty()
beatmap.Difficulty = new BeatmapDifficulty
{
OverallDifficulty = 5,
DrainRate = 5,

View File

@ -17,14 +17,14 @@ namespace osu.Game.Rulesets.Osu.Tests.Editor.Checks
{
private CheckOsuAbnormalDifficultySettings check = null!;
private IBeatmap beatmap = new Beatmap<HitObject>();
private readonly IBeatmap beatmap = new Beatmap<HitObject>();
[SetUp]
public void Setup()
{
check = new CheckOsuAbnormalDifficultySettings();
beatmap.Difficulty = new BeatmapDifficulty()
beatmap.Difficulty = new BeatmapDifficulty
{
ApproachRate = 5,
CircleSize = 5,

View File

@ -11,6 +11,7 @@ namespace osu.Game.Rulesets.Osu.Edit.Checks
public class CheckOsuAbnormalDifficultySettings : CheckAbnormalDifficultySettings
{
public override CheckMetadata Metadata => new CheckMetadata(CheckCategory.Settings, "Checks osu relevant settings");
public override IEnumerable<Issue> Run(BeatmapVerifierContext context)
{
var diff = context.Beatmap.Difficulty;

View File

@ -17,7 +17,7 @@ namespace osu.Game.Rulesets.Taiko.Tests.Editor.Checks
{
private CheckTaikoAbnormalDifficultySettings check = null!;
private IBeatmap beatmap = new Beatmap<HitObject>();
private readonly IBeatmap beatmap = new Beatmap<HitObject>();
[SetUp]
public void Setup()
@ -25,7 +25,7 @@ namespace osu.Game.Rulesets.Taiko.Tests.Editor.Checks
check = new CheckTaikoAbnormalDifficultySettings();
beatmap.BeatmapInfo.Ruleset = new TaikoRuleset().RulesetInfo;
beatmap.Difficulty = new BeatmapDifficulty()
beatmap.Difficulty = new BeatmapDifficulty
{
OverallDifficulty = 5,
};