Skip to content

Commit

Permalink
fix some spells
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-iel committed Sep 3, 2023
1 parent 5739a71 commit 1dec876
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 29 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ obj
*/obj/*
*/obj/

.idea/
.easyTdd/

StrykerOutput
*/StrykerOutput*
*/StrykerOutput/*
Expand Down
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,11 @@
[![ci](https://github.com/Daniel-iel/Spinner/actions/workflows/ci-benchmark.yml/badge.svg)](https://github.com/Daniel-iel/Spinner/actions/workflows/ci-benchmark.yml/badge.svg/)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE.md)
[![Downloads](https://img.shields.io/nuget/dt/Spinner)](https://www.nuget.org/packages/Spinner/)
[![Visitors](https://visitor-badge-reloaded.herokuapp.com/badge?page_id=https://github.com/Daniel-iel/Spinner&logo=github)
[![Release](https://img.shields.io/nuget/v/spinner)](https://www.nuget.org/packages/Spinner/)
[![Repo Size](https://img.shields.io/github/repo-size/Daniel-iel/spinner)](https://www.nuget.org/packages/Spinner/)
[![Code Factor](https://www.codefactor.io/repository/github/Daniel-iel/spinner/badge)](https://www.codefactor.io/repository/github/Daniel-iel/spinner)
[![coverity](https://img.shields.io/coverity/scan/24116.svg)](https://scan.coverity.com/projects/spinner)
[![Code Factor](https://api.meercode.io/badge/Daniel-iel/Spinner?type=ci-score&lastDay=31)](https://scan.coverity.com/projects/spinner)
[![Snyk](https://img.shields.io/snyk/vulnerabilities/github/Daniel-iel/Spinner)](https://scan.coverity.com/projects/spinner)
![Meercode](https://api.meercode.io/badge//?type=ci-score&lastDay=14)
![Snyk](https://img.shields.io/snyk/vulnerabilities/github/Daniel-iel/Spinner)

## Introduction

Expand Down Expand Up @@ -80,4 +78,4 @@ Our code and framework are licensed under the MIT license. Please see the licens

# Stats

[![Repobeats analytics image](https://repobeats.axiom.co/api/embed/c3f5ed375e6e703c23a90745aaee5bca46ebd0fd.svg)]
![Repobeats analytics image](https://repobeats.axiom.co/api/embed/c3f5ed375e6e703c23a90745aaee5bca46ebd0fd.svg)
8 changes: 4 additions & 4 deletions app/Spinner.Test/Models/NothingNoAttibute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
namespace Spinner.Test.Models
{
[ObjectMapper(length: 50)]
internal struct NothingNoAttibute : IEquatable<NothingNoAttibute>
internal struct NothingNoAttribute : IEquatable<NothingNoAttribute>
{
public NothingNoAttibute(string name, string webSite)
public NothingNoAttribute(string name, string webSite)
{
Name = name;
WebSite = webSite;
Expand All @@ -16,7 +16,7 @@ public NothingNoAttibute(string name, string webSite)

public string WebSite { get; set; }

public bool Equals(NothingNoAttibute other)
public bool Equals(NothingNoAttribute other)
{
return Name == other.Name &&
WebSite == other.WebSite;
Expand All @@ -29,7 +29,7 @@ public override int GetHashCode()

public override bool Equals(object obj)
{
return obj is NothingNoAttibute nothingNoAttibute && Equals(nothingNoAttibute);
return obj is NothingNoAttribute nothingNoAttibute && Equals(nothingNoAttibute);
}
}
}
4 changes: 2 additions & 2 deletions app/Spinner.Test/SpinnerReadTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public void ReadFromString_WhenCalled_ShouldThrowExceptionIfNotExistsAnyProperti
Action act = () =>
{
// Arrange
Spinner<NothingNoAttibute> spinnerReader = new Spinner<NothingNoAttibute>();
Spinner<NothingNoAttribute> spinnerReader = new Spinner<NothingNoAttribute>();
// Act
spinnerReader.ReadFromString("");
Expand All @@ -161,7 +161,7 @@ public void ReadFromSpan_WhenCalled_ShouldThrowExceptionIfNotExistsAnyProperties
Action act = () =>
{
// Arrange
Spinner<NothingNoAttibute> spinnerReader = new Spinner<NothingNoAttibute>();
Spinner<NothingNoAttribute> spinnerReader = new Spinner<NothingNoAttribute>();
// Act
spinnerReader.ReadFromSpan("");
Expand Down
8 changes: 4 additions & 4 deletions app/Spinner.Test/SpinnerWriteTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,9 @@ public void WriteAsString_WhenCalled_ShouldThrowExceptionIfNotExistsAnyPropertie
Action act = () =>
{
// Arrange
NothingNoAttibute nothing = new NothingNoAttibute("spinnerFirst", "www.spinner.com.br");
NothingNoAttribute nothing = new NothingNoAttribute("spinnerFirst", "www.spinner.com.br");
Spinner<NothingNoAttibute> spinnerFirst = new Spinner<NothingNoAttibute>(nothing);
Spinner<NothingNoAttribute> spinnerFirst = new Spinner<NothingNoAttribute>(nothing);
spinnerFirst.WriteAsString();
};
Expand All @@ -308,9 +308,9 @@ public void WriteAsSpan_WhenCalled_ShouldThrowExceptionIfNotExistsAnyPropertiesW
Action act = () =>
{
// Arrange
NothingNoAttibute nothing = new NothingNoAttibute("spinnerFirst", "www.spinner.com.br");
NothingNoAttribute nothing = new NothingNoAttribute("spinnerFirst", "www.spinner.com.br");
Spinner<NothingNoAttibute> spinnerFirst = new Spinner<NothingNoAttibute>(nothing);
Spinner<NothingNoAttribute> spinnerFirst = new Spinner<NothingNoAttribute>(nothing);
spinnerFirst.WriteAsSpan();
};
Expand Down
4 changes: 3 additions & 1 deletion app/Spinner/Enums/PaddingType.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace Spinner.Enums
// Ignore Spelling: Enums

namespace Spinner.Enums
{
/// <summary>
/// Enum responsible for determining whether the padding is on the right or left side
Expand Down
2 changes: 1 addition & 1 deletion app/global.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"sdk": {
"version": "7.0.100"
"version": "7.0.305"
}
}
12 changes: 6 additions & 6 deletions bench/Spinner.Benchmark/ObjectBench.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ namespace Writer.Benchmark
[ObjectMapper(length: 50)]
internal struct ObjectBench : IEquatable<ObjectBench>, IEqualityComparer<ObjectBench>
{
public ObjectBench(string name, string adress)
public ObjectBench(string name, string address)
{
Name = name;
Adress = adress;
Address = address;
}

[WriteProperty(length: 20, order: 1, paddingChar: ' ')]
Expand All @@ -20,12 +20,12 @@ public ObjectBench(string name, string adress)

[WriteProperty(length: 30, order: 2, paddingChar: ' ')]
[ReadProperty(start: 19, length: 30)]
public string Adress { get; set; }
public string Address { get; set; }

public bool Equals(ObjectBench other)
{
return Name == other.Name &&
Adress == other.Adress;
Address == other.Address;
}

public override bool Equals(object obj)
Expand All @@ -42,12 +42,12 @@ public bool Equals(ObjectBench x, ObjectBench y)

public override int GetHashCode()
{
return HashCode.Combine(Name, Adress);
return HashCode.Combine(Name, Address);
}

public int GetHashCode([DisallowNull] ObjectBench obj)
{
return HashCode.Combine(obj.Name, obj.Adress);
return HashCode.Combine(obj.Name, obj.Address);
}
}
}
12 changes: 6 additions & 6 deletions bench/Spinner.Benchmark/ObjectBenchWithParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ namespace Writer.Benchmark
[ObjectMapper(length: 50)]
internal struct ObjectBenchWithParser : IEquatable<ObjectBenchWithParser>, IEqualityComparer<ObjectBenchWithParser>
{
public ObjectBenchWithParser(string name, string adress)
public ObjectBenchWithParser(string name, string address)
{
Name = name;
Adress = adress;
Address = address;
}

[WriteProperty(length: 20, order: 1, paddingChar: ' ')]
Expand All @@ -20,12 +20,12 @@ public ObjectBenchWithParser(string name, string adress)

[WriteProperty(length: 30, order: 2, paddingChar: ' ')]
[ReadProperty(start: 19, length: 30, type: typeof(ParserWebSite))]
public string Adress { get; set; }
public string Address { get; set; }

public bool Equals(ObjectBenchWithParser other)
{
return Name == other.Name &&
Adress == other.Adress;
Address == other.Address;
}

public override bool Equals(object obj)
Expand All @@ -42,12 +42,12 @@ public bool Equals(ObjectBenchWithParser x, ObjectBenchWithParser y)

public override int GetHashCode()
{
return HashCode.Combine(Name, Adress);
return HashCode.Combine(Name, Address);
}

public int GetHashCode([DisallowNull] ObjectBenchWithParser obj)
{
return HashCode.Combine(obj.Name, obj.Adress);
return HashCode.Combine(obj.Name, obj.Address);
}
}
}

0 comments on commit 1dec876

Please sign in to comment.