fix CodeLineMustNotEndWithWhitespace
This commit is contained in:
@@ -45,8 +45,8 @@ namespace OpenRA.FileFormats
|
||||
public static class AudLoader
|
||||
{
|
||||
static int[] indexAdjust = { -1, -1, -1, -1, 2, 4, 6, 8 };
|
||||
static int[] stepTable =
|
||||
{
|
||||
static int[] stepTable =
|
||||
{
|
||||
7, 8, 9, 10, 11, 12, 13, 14, 16,
|
||||
17, 19, 21, 23, 25, 28, 31, 34, 37,
|
||||
41, 45, 50, 55, 60, 66, 73, 80, 88,
|
||||
@@ -56,7 +56,7 @@ namespace OpenRA.FileFormats
|
||||
1282, 1411, 1552, 1707, 1878, 2066, 2272, 2499, 2749,
|
||||
3024, 3327, 3660, 4026, 4428, 4871, 5358, 5894, 6484,
|
||||
7132, 7845, 8630, 9493, 10442, 11487, 12635, 13899, 15289,
|
||||
16818, 18500, 20350, 22385, 24623, 27086, 29794, 32767
|
||||
16818, 18500, 20350, 22385, 24623, 27086, 29794, 32767
|
||||
};
|
||||
|
||||
static short DecodeSample(byte b, ref int index, ref int current)
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace OpenRA.FileFormats
|
||||
1282, 1411, 1552, 1707, 1878, 2066, 2272, 2499, 2749,
|
||||
3024, 3327, 3660, 4026, 4428, 4871, 5358, 5894, 6484,
|
||||
7132, 7845, 8630, 9493, 10442, 11487, 12635, 13899, 15289,
|
||||
16818, 18500, 20350, 22385, 24623, 27086, 29794, 32767
|
||||
16818, 18500, 20350, 22385, 24623, 27086, 29794, 32767
|
||||
};
|
||||
|
||||
static short DecodeImaAdpcmSample(byte b, ref int index, ref int current)
|
||||
|
||||
@@ -73,7 +73,7 @@ namespace OpenRA.FileFormats
|
||||
/*var length2 = */stream.ReadUInt32();
|
||||
|
||||
/*var version = */stream.ReadUInt16();
|
||||
videoFlags = stream.ReadUInt16();
|
||||
videoFlags = stream.ReadUInt16();
|
||||
Frames = stream.ReadUInt16();
|
||||
Width = stream.ReadUInt16();
|
||||
Height = stream.ReadUInt16();
|
||||
@@ -129,7 +129,7 @@ namespace OpenRA.FileFormats
|
||||
type = stream.ReadASCII(4);
|
||||
}
|
||||
else
|
||||
throw new NotSupportedException("Vqa uses unknown Subtype : {0}".F(type));
|
||||
throw new NotSupportedException("Vqa uses unknown Subtype: {0}".F(type));
|
||||
}
|
||||
|
||||
/*var length = */stream.ReadUInt16();
|
||||
@@ -413,7 +413,7 @@ namespace OpenRA.FileFormats
|
||||
if (IsHqVqa)
|
||||
{
|
||||
/* The VP?? chunks of the video file contains an array of instructions for
|
||||
* how the blocks of the finished frame will be filled with color data blocks
|
||||
* how the blocks of the finished frame will be filled with color data blocks
|
||||
* contained in the CBF? chunks.
|
||||
*/
|
||||
var p = 0;
|
||||
@@ -424,7 +424,7 @@ namespace OpenRA.FileFormats
|
||||
if (y >= blocks.Y)
|
||||
break;
|
||||
|
||||
// The first 3 bits of the short determine the type of instruction with the rest being one or two parameters.
|
||||
// The first 3 bits of the short determine the type of instruction with the rest being one or two parameters.
|
||||
var val = (int)origData[p++];
|
||||
val |= origData[p++] << 8;
|
||||
var para_A = val & 0x1fff;
|
||||
|
||||
@@ -129,7 +129,7 @@ namespace OpenRA.FileFormats
|
||||
// Decode each block of IMA ADPCM data in RawOutput
|
||||
for (var block = 0; block < numBlocks; block++)
|
||||
{
|
||||
// Each block starts with a initial state per-channel
|
||||
// Each block starts with a initial state per-channel
|
||||
for (var c = 0; c < Channels; c++)
|
||||
{
|
||||
predictor[c] = s.ReadInt16();
|
||||
|
||||
@@ -134,7 +134,7 @@ namespace OpenRA
|
||||
|
||||
public class Player
|
||||
{
|
||||
// Start-up information
|
||||
// Start-up information
|
||||
public int ClientIndex;
|
||||
|
||||
// The player name, not guaranteed to be unique.
|
||||
|
||||
@@ -187,7 +187,7 @@ namespace OpenRA
|
||||
default:
|
||||
textStart = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var t = line.Substring(cp);
|
||||
|
||||
@@ -195,7 +195,7 @@ namespace OpenRA
|
||||
|
||||
switch (OrderString)
|
||||
{
|
||||
/*
|
||||
/*
|
||||
* Format:
|
||||
* u8: orderID.
|
||||
* 0xFF: Full serialized order.
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace OpenRA.Widgets
|
||||
|
||||
Lazy<TooltipContainerWidget> tooltipContainer;
|
||||
[Translate] public string TooltipText;
|
||||
public Func<string> GetTooltipText;
|
||||
public Func<string> GetTooltipText;
|
||||
|
||||
// Equivalent to OnMouseUp, but without an input arg
|
||||
public Action OnClick = () => { };
|
||||
|
||||
@@ -21,17 +21,17 @@ namespace OpenRA.Mods.Cnc.Traits
|
||||
[ActorReference]
|
||||
[Desc("Actor to spawn when the attack starts")]
|
||||
public readonly string CameraActor = null;
|
||||
|
||||
|
||||
[Desc("Amount of time to keep the camera alive")]
|
||||
public readonly int CameraRemoveDelay = 25;
|
||||
|
||||
|
||||
[Desc("Effect sequence to display")]
|
||||
public readonly string Effect = "ionsfx";
|
||||
public readonly string EffectPalette = "effect";
|
||||
|
||||
|
||||
[Desc("Which weapon to fire")]
|
||||
public readonly string Weapon = "IonCannon";
|
||||
|
||||
|
||||
[Desc("Apply the weapon impact this many ticks into the effect")]
|
||||
public readonly int WeaponDelay = 7;
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
var turreted = self.TraitsImplementing<Turreted>()
|
||||
.FirstOrDefault(t => t.Name == arm.Info.Turret);
|
||||
|
||||
// Workaround for broken ternary operators in certain versions of mono (3.10 and
|
||||
// Workaround for broken ternary operators in certain versions of mono (3.10 and
|
||||
// certain versions of the 3.8 series): https://bugzilla.xamarin.com/show_bug.cgi?id=23319
|
||||
if (turreted != null)
|
||||
getFacing = () => turreted.TurretFacing;
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace OpenRA.Mods.RA.Activities
|
||||
protected readonly int DragLength;
|
||||
protected readonly WPos StartDrag;
|
||||
protected readonly WPos EndDrag;
|
||||
|
||||
|
||||
protected State dockingState;
|
||||
|
||||
public HarvesterDockSequence(Actor self, Actor refinery, int dockAngle, bool isDragRequired, WVec dragOffset, int dragLength)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#region Copyright & License Information
|
||||
/*
|
||||
* Copyright 2007-2015 The OpenRA Developers (see AUTHORS)
|
||||
* This file is part of OpenRA, which is free software. It is made
|
||||
* This file is part of OpenRA, which is free software. It is made
|
||||
* available to you under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation. For more information,
|
||||
* see COPYING.
|
||||
|
||||
@@ -100,7 +100,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
||||
var songWatcher = widget.GetOrNull<LogicTickerWidget>("SONG_WATCHER");
|
||||
if (songWatcher != null)
|
||||
{
|
||||
songWatcher.OnTick = () =>
|
||||
songWatcher.OnTick = () =>
|
||||
{
|
||||
if (Sound.CurrentMusic == null || currentSong == Sound.CurrentMusic)
|
||||
return;
|
||||
|
||||
@@ -72,7 +72,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
||||
{
|
||||
var options = new List<StatsDropDownOption>
|
||||
{
|
||||
new StatsDropDownOption
|
||||
new StatsDropDownOption
|
||||
{
|
||||
Title = "Basic",
|
||||
IsSelected = () => basicStatsHeaders.Visible,
|
||||
@@ -83,33 +83,33 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
||||
DisplayStats(BasicStats);
|
||||
}
|
||||
},
|
||||
new StatsDropDownOption
|
||||
new StatsDropDownOption
|
||||
{
|
||||
Title = "Economy",
|
||||
IsSelected = () => economyStatsHeaders.Visible,
|
||||
OnClick = () =>
|
||||
OnClick = () =>
|
||||
{
|
||||
ClearStats();
|
||||
statsDropDown.GetText = () => "Economy";
|
||||
DisplayStats(EconomyStats);
|
||||
}
|
||||
},
|
||||
new StatsDropDownOption
|
||||
new StatsDropDownOption
|
||||
{
|
||||
Title = "Production",
|
||||
IsSelected = () => productionStatsHeaders.Visible,
|
||||
OnClick = () =>
|
||||
OnClick = () =>
|
||||
{
|
||||
ClearStats();
|
||||
statsDropDown.GetText = () => "Production";
|
||||
DisplayStats(ProductionStats);
|
||||
}
|
||||
},
|
||||
new StatsDropDownOption
|
||||
new StatsDropDownOption
|
||||
{
|
||||
Title = "Combat",
|
||||
IsSelected = () => combatStatsHeaders.Visible,
|
||||
OnClick = () =>
|
||||
OnClick = () =>
|
||||
{
|
||||
ClearStats();
|
||||
statsDropDown.GetText = () => "Combat";
|
||||
@@ -120,7 +120,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
||||
{
|
||||
Title = "Earnings (graph)",
|
||||
IsSelected = () => earnedThisMinuteGraphHeaders.Visible,
|
||||
OnClick = () =>
|
||||
OnClick = () =>
|
||||
{
|
||||
ClearStats();
|
||||
statsDropDown.GetText = () => "Earnings (graph)";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#region Copyright & License Information
|
||||
/*
|
||||
* Copyright 2007-2015 The OpenRA Developers (see AUTHORS)
|
||||
* This file is part of OpenRA, which is free software. It is made
|
||||
* This file is part of OpenRA, which is free software. It is made
|
||||
* available to you under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation. For more information,
|
||||
* see COPYING.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#region Copyright & License Information
|
||||
/*
|
||||
* Copyright 2007-2015 The OpenRA Developers (see AUTHORS)
|
||||
* This file is part of OpenRA, which is free software. It is made
|
||||
* This file is part of OpenRA, which is free software. It is made
|
||||
* available to you under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation. For more information,
|
||||
* see COPYING.
|
||||
@@ -271,7 +271,7 @@ namespace OpenRA.TilesetBuilder
|
||||
bw.Write((uint)0); // filesize placeholder
|
||||
bw.Flush();
|
||||
bw.Write((uint)ms.Position + 24); // image start
|
||||
bw.Write((uint)0); // 0 (32bits)
|
||||
bw.Write((uint)0); // 0 (32bits)
|
||||
bw.Write((uint)0x2c730f8c); // magic?
|
||||
bw.Write((uint)0); // flags start
|
||||
bw.Write((uint)0); // walk start
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#region Copyright & License Information
|
||||
/*
|
||||
* Copyright 2007-2015 The OpenRA Developers (see AUTHORS)
|
||||
* This file is part of OpenRA, which is free software. It is made
|
||||
* This file is part of OpenRA, which is free software. It is made
|
||||
* available to you under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation. For more information,
|
||||
* see COPYING.
|
||||
|
||||
@@ -362,11 +362,6 @@
|
||||
</Analyzer>
|
||||
<Analyzer AnalyzerId="StyleCopPlus.StyleCopPlusRules">
|
||||
<Rules>
|
||||
<Rule Name="CodeLineMustNotEndWithWhitespace">
|
||||
<RuleSettings>
|
||||
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||
</RuleSettings>
|
||||
</Rule>
|
||||
<Rule Name="CheckAllowedIndentationCharacters">
|
||||
<RuleSettings>
|
||||
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||
|
||||
Reference in New Issue
Block a user