Skip to content

Commit 6ab71d0

Browse files
authored
Fix white-spaces issues as identified by CodeFactor (#2265)
1 parent 97dedca commit 6ab71d0

File tree

1,120 files changed

+813
-2873
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,120 files changed

+813
-2873
lines changed

src/AsyncGenerator.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
- pattern: ^.*(Hql\.g).*$
88
analyzation:
99
methodConversion:
10-
#TODO 6.0: Remove ignore rule for IQueryBatchItem.ProcessResults
10+
#TODO 6.0: Remove ignore rule for IQueryBatchItem.ProcessResults
1111
- conversion: Ignore
1212
name: ProcessResults
1313
containingTypeName: IQueryBatchItem
@@ -121,7 +121,7 @@
121121
- conversion: ToAsync
122122
rule: Cache
123123
- conversion: ToAsync
124-
rule: TransactionCompletion
124+
rule: TransactionCompletion
125125
typeConversion:
126126
- conversion: Ignore
127127
name: EnumerableImpl
@@ -276,7 +276,7 @@ methodRules:
276276
- containingType: NHibernate.Action.IAfterTransactionCompletionProcess
277277
- containingType: NHibernate.Action.IBeforeTransactionCompletionProcess
278278
- containingType: NHibernate.Action.EntityAction
279-
name: BeforeTransactionCompletionProcessImpl
279+
name: BeforeTransactionCompletionProcessImpl
280280
name: TransactionCompletion
281281
- filters:
282282
- containingNamespace: NHibernate

src/NHibernate.DomainModel/Bar.cs

+1-6
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ public class Bar : Abstract, BarProxy, INamed
1212
private string _name = "bar";
1313
private object _object;
1414

15-
1615
/// <summary>
1716
/// Gets or sets the X
1817
/// </summary>
@@ -31,7 +30,6 @@ public string BarString
3130
set { _barString = value; }
3231
}
3332

34-
3533
/// <summary>
3634
/// Gets or sets the _barComponent
3735
/// </summary>
@@ -41,7 +39,6 @@ public FooComponent BarComponent
4139
set { _barComponent = value; }
4240
}
4341

44-
4542
/// <summary>
4643
/// Gets or sets the _baz
4744
/// </summary>
@@ -51,7 +48,6 @@ public Baz Baz
5148
set { _baz = value; }
5249
}
5350

54-
5551
/// <summary>
5652
/// Gets or sets the _name
5753
/// </summary>
@@ -61,7 +57,6 @@ public string Name
6157
set { _name = value; }
6258
}
6359

64-
6560
/// <summary>
6661
/// Gets or sets the _object
6762
/// </summary>
@@ -71,4 +66,4 @@ public object Object
7166
set { _object = value; }
7267
}
7368
}
74-
}
69+
}

src/NHibernate.DomainModel/Baz.cs

+1-3
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,6 @@ public string[] StringArray
260260
set { _stringArray = value; }
261261
}
262262

263-
264263
/// <summary>
265264
/// Gets or sets the fooArray
266265
/// </summary>
@@ -270,7 +269,6 @@ public FooProxy[] FooArray
270269
set { _fooArray = value; }
271270
}
272271

273-
274272
/// <summary>
275273
/// Get/set for fooSet
276274
/// </summary>
@@ -453,4 +451,4 @@ public int CompareTo(object obj)
453451

454452
#endregion
455453
}
456-
}
454+
}

src/NHibernate.DomainModel/Circular.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ public string Id
1818
set { _id = value; }
1919
}
2020

21-
2221
public System.Type Clazz
2322
{
2423
get { return _clazz; }
@@ -37,4 +36,4 @@ public object AnyEntity
3736
set { _anyEntity = value; }
3837
}
3938
}
40-
}
39+
}

src/NHibernate.DomainModel/ComponentCollection.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ public IList Foos
2020
set { _foos = value; }
2121
}
2222

23-
2423
/// <summary>
2524
/// Holds the _str
2625
/// </summary>
@@ -49,4 +48,4 @@ public IList Floats
4948
set { _floats = value; }
5049
}
5150
}
52-
}
51+
}

src/NHibernate.DomainModel/Container.cs

+1-3
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ public Glarch Glarch
8080
}
8181
}
8282

83-
8483
private IList<Simple> _oneToMany;
8584
private IList<ContainerInnerClass> _components;
8685
private IList<Simple> _manyToMany;
@@ -94,7 +93,6 @@ public Glarch Glarch
9493
//<set> mapping
9594
private ISet<Ternary> _ternarySet;
9695

97-
9896
public virtual IList<Simple> OneToMany
9997
{
10098
get { return _oneToMany; }
@@ -155,4 +153,4 @@ public virtual ISet<Ternary> TernarySet
155153
set { _ternarySet = value; }
156154
}
157155
}
158-
}
156+
}

src/NHibernate.DomainModel/Detail.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ public int I
2626
set { _i = value; }
2727
}
2828

29-
3029
public ISet<SubDetail> SubDetails
3130
{
3231
get { return _details; }
@@ -39,4 +38,4 @@ public int X
3938
set { _x = value; }
4039
}
4140
}
42-
}
41+
}

src/NHibernate.DomainModel/DoubleStringType.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ public Object NullSafeGet(DbDataReader rs, string[] names, ISessionImplementor s
5757
return (first == null && second == null) ? null : new string[] {first, second};
5858
}
5959

60-
6160
public void NullSafeSet(DbCommand st, Object value, int index, bool[] settable, ISessionImplementor session)
6261
{
6362
string[] strings = (value == null) ? new string[2] : (string[]) value;
@@ -107,4 +106,4 @@ public object Replace(object original, object target, ISessionImplementor sessio
107106
return DeepCopy(original);
108107
}
109108
}
110-
}
109+
}

src/NHibernate.DomainModel/Foo.cs

+2-4
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,8 @@ public LifecycleVeto OnSave(ISession s)
347347
_long = 696969696969696969L - count++;
348348
_short = 42;
349349
_float = 6666.66f;
350-
//_double = new Double( 1.33e-69 ); // this double is too big for the sap db jdbc driver
351-
// _double = 1.12e-36;
350+
//_double = new Double( 1.33e-69 ); // this double is too big for the sap db jdbc driver
351+
//_double = 1.12e-36;
352352
_boolean = true;
353353
_byte = 127;
354354
_int = 2;
@@ -397,7 +397,6 @@ public bool EqualsFoo(Foo other)
397397
}
398398
}
399399

400-
401400
return (_bool == other.Bool)
402401
&& ((_boolean == other.Boolean) || (_boolean.Equals(other.Boolean)))
403402
&& ((_byte == other.Byte) || (_byte.Equals(other.Byte)))
@@ -429,7 +428,6 @@ public bool EqualsFoo(Foo other)
429428
// return key.GetHashCode() - _string.GetHashCode();
430429
// }
431430

432-
433431
private static int count = 0;
434432
}
435433
}

src/NHibernate.DomainModel/Fum.cs

+1-5
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ public ISet<Fum> Friends
9999
set { this._friends = value; }
100100
}
101101

102-
103102
public LifecycleVeto OnDelete(ISession s)
104103
{
105104
if (_friends == null) return LifecycleVeto.NoVeto;
@@ -117,12 +116,10 @@ public LifecycleVeto OnDelete(ISession s)
117116
return LifecycleVeto.NoVeto;
118117
}
119118

120-
121119
public void OnLoad(ISession s, object id)
122120
{
123121
}
124122

125-
126123
public LifecycleVeto OnSave(ISession s)
127124
{
128125
if (_friends == null) return LifecycleVeto.NoVeto;
@@ -140,7 +137,6 @@ public LifecycleVeto OnSave(ISession s)
140137
return LifecycleVeto.NoVeto;
141138
}
142139

143-
144140
public LifecycleVeto OnUpdate(ISession s)
145141
{
146142
return LifecycleVeto.NoVeto;
@@ -158,4 +154,4 @@ public MapComponent MapComponent
158154
set { _mapComponent = value; }
159155
}
160156
}
161-
}
157+
}

src/NHibernate.DomainModel/Glarch.cs

+1-8
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ public int Version
3838
set { this._version = value; }
3939
}
4040

41-
4241
/// <summary>
4342
/// Gets or sets the _next
4443
/// </summary>
@@ -48,7 +47,6 @@ public GlarchProxy Next
4847
set { _next = value; }
4948
}
5049

51-
5250
/// <summary>
5351
/// Gets or sets the _order
5452
/// </summary>
@@ -58,7 +56,6 @@ public short Order
5856
set { _order = value; }
5957
}
6058

61-
6259
/// <summary>
6360
/// Gets or sets the _strings
6461
/// </summary>
@@ -68,7 +65,6 @@ public IList<string> Strings
6865
set { _strings = value; }
6966
}
7067

71-
7268
/// <summary>
7369
/// Gets or sets the _stringSets
7470
/// </summary>
@@ -79,7 +75,6 @@ public ISet<string> StringSets
7975
set { _stringSets = value; }
8076
}
8177

82-
8378
/// <summary>
8479
/// Gets or sets the _fooComponents
8580
/// </summary>
@@ -89,7 +84,6 @@ public IList<FooComponent> FooComponents
8984
set { _fooComponents = value; }
9085
}
9186

92-
9387
/// <summary>
9488
/// Gets or sets the _proxyArray
9589
/// </summary>
@@ -99,7 +93,6 @@ public GlarchProxy[] ProxyArray
9993
set { _proxyArray = value; }
10094
}
10195

102-
10396
/// <summary>
10497
/// Gets or sets the _proxySet
10598
/// </summary>
@@ -188,4 +181,4 @@ public Multiplicity Multiple
188181
set { _name = value; }
189182
}
190183
}
191-
}
184+
}

src/NHibernate.DomainModel/Location.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ public string CountryCode
4040
set { _countryCode = value; }
4141
}
4242

43-
4443
public string Description
4544
{
4645
get { return _description; }
@@ -76,4 +75,4 @@ public override int GetHashCode()
7675

7776
#endregion
7877
}
79-
}
78+
}

src/NHibernate.DomainModel/MoreStuff.cs

+1-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ public class MoreStuff
1515
private IList<Stuff> _stuffs;
1616
private string _name;
1717

18-
1918
public string StringId
2019
{
2120
get { return _stringId; }
@@ -52,12 +51,11 @@ public override bool Equals(object obj)
5251
return (rhs.IntId == this.IntId && rhs.StringId.Equals(this.StringId));
5352
}
5453

55-
5654
public override int GetHashCode()
5755
{
5856
return _stringId.GetHashCode();
5957
}
6058

6159
#endregion
6260
}
63-
}
61+
}

src/NHibernate.DomainModel/NHSpecific/Child.cs

+1-3
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ public Child FirstSibling
5454
set { Siblings.Insert(0, value); }
5555
}
5656

57-
5857
public Child SecondSibling
5958
{
6059
get { return (Child) Siblings[1]; }
@@ -115,11 +114,10 @@ public Child[] Friends
115114
set { _friends = value; }
116115
}
117116

118-
119117
public DateTime FavoriteDate
120118
{
121119
get { return _favoriteDate; }
122120
set { _favoriteDate = value; }
123121
}
124122
}
125-
}
123+
}

src/NHibernate.DomainModel/NHSpecific/Parent.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ public class Parent
1313
private ISet<object> _children;
1414
private ISet<Parent> _adultFriends;
1515

16-
1716
public Parent()
1817
{
1918
_adultFriends = new SortedSet<Parent>(new ParentComparer());
@@ -48,4 +47,4 @@ public void AddFriend(Parent friend)
4847
_adultFriends.Add(friend);
4948
}
5049
}
51-
}
50+
}

src/NHibernate.DomainModel/Northwind/Entities/Role.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-

2-
namespace NHibernate.DomainModel.Northwind.Entities
1+
namespace NHibernate.DomainModel.Northwind.Entities
32
{
43
public class Role
54
{

src/NHibernate.DomainModel/Northwind/Entities/User.cs

-4
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,6 @@ public User(string name, DateTime registeredAt)
5959
}
6060
}
6161

62-
63-
64-
65-
6662
public enum EnumStoredAsString { Unspecified, Small, Medium, Large }
6763

6864
public enum EnumStoredAsInt32 { Unspecified, High, Low }

0 commit comments

Comments
 (0)