diff --git a/.gitignore b/.gitignore index e9d9049..35b5eba 100644 --- a/.gitignore +++ b/.gitignore @@ -20,6 +20,9 @@ obj */obj/* */obj/ +.idea/ +.easyTdd/ + StrykerOutput */StrykerOutput* */StrykerOutput/* diff --git a/README.md b/README.md index 7522626..03054d2 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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) diff --git a/app/Spinner.Test/Models/NothingNoAttibute.cs b/app/Spinner.Test/Models/NothingNoAttibute.cs index 4f493de..558bd0b 100644 --- a/app/Spinner.Test/Models/NothingNoAttibute.cs +++ b/app/Spinner.Test/Models/NothingNoAttibute.cs @@ -4,9 +4,9 @@ namespace Spinner.Test.Models { [ObjectMapper(length: 50)] - internal struct NothingNoAttibute : IEquatable + internal struct NothingNoAttribute : IEquatable { - public NothingNoAttibute(string name, string webSite) + public NothingNoAttribute(string name, string webSite) { Name = name; WebSite = webSite; @@ -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; @@ -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); } } } \ No newline at end of file diff --git a/app/Spinner.Test/SpinnerReadTest.cs b/app/Spinner.Test/SpinnerReadTest.cs index dd954ed..44b1d3c 100644 --- a/app/Spinner.Test/SpinnerReadTest.cs +++ b/app/Spinner.Test/SpinnerReadTest.cs @@ -144,7 +144,7 @@ public void ReadFromString_WhenCalled_ShouldThrowExceptionIfNotExistsAnyProperti Action act = () => { // Arrange - Spinner spinnerReader = new Spinner(); + Spinner spinnerReader = new Spinner(); // Act spinnerReader.ReadFromString(""); @@ -161,7 +161,7 @@ public void ReadFromSpan_WhenCalled_ShouldThrowExceptionIfNotExistsAnyProperties Action act = () => { // Arrange - Spinner spinnerReader = new Spinner(); + Spinner spinnerReader = new Spinner(); // Act spinnerReader.ReadFromSpan(""); diff --git a/app/Spinner.Test/SpinnerWriteTest.cs b/app/Spinner.Test/SpinnerWriteTest.cs index b8eab54..3662040 100644 --- a/app/Spinner.Test/SpinnerWriteTest.cs +++ b/app/Spinner.Test/SpinnerWriteTest.cs @@ -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 spinnerFirst = new Spinner(nothing); + Spinner spinnerFirst = new Spinner(nothing); spinnerFirst.WriteAsString(); }; @@ -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 spinnerFirst = new Spinner(nothing); + Spinner spinnerFirst = new Spinner(nothing); spinnerFirst.WriteAsSpan(); }; diff --git a/app/Spinner/Enums/PaddingType.cs b/app/Spinner/Enums/PaddingType.cs index c681f8e..693a944 100644 --- a/app/Spinner/Enums/PaddingType.cs +++ b/app/Spinner/Enums/PaddingType.cs @@ -1,4 +1,6 @@ -namespace Spinner.Enums +// Ignore Spelling: Enums + +namespace Spinner.Enums { /// /// Enum responsible for determining whether the padding is on the right or left side diff --git a/app/global.json b/app/global.json index d39d228..cd18f1a 100644 --- a/app/global.json +++ b/app/global.json @@ -1,5 +1,5 @@ { "sdk": { - "version": "7.0.100" + "version": "7.0.305" } } \ No newline at end of file diff --git a/bench/Spinner.Benchmark/ObjectBench.cs b/bench/Spinner.Benchmark/ObjectBench.cs index 9f0aeba..b034ff5 100644 --- a/bench/Spinner.Benchmark/ObjectBench.cs +++ b/bench/Spinner.Benchmark/ObjectBench.cs @@ -8,10 +8,10 @@ namespace Writer.Benchmark [ObjectMapper(length: 50)] internal struct ObjectBench : IEquatable, IEqualityComparer { - public ObjectBench(string name, string adress) + public ObjectBench(string name, string address) { Name = name; - Adress = adress; + Address = address; } [WriteProperty(length: 20, order: 1, paddingChar: ' ')] @@ -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) @@ -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); } } } diff --git a/bench/Spinner.Benchmark/ObjectBenchWithParser.cs b/bench/Spinner.Benchmark/ObjectBenchWithParser.cs index db28e24..18934b4 100644 --- a/bench/Spinner.Benchmark/ObjectBenchWithParser.cs +++ b/bench/Spinner.Benchmark/ObjectBenchWithParser.cs @@ -8,10 +8,10 @@ namespace Writer.Benchmark [ObjectMapper(length: 50)] internal struct ObjectBenchWithParser : IEquatable, IEqualityComparer { - public ObjectBenchWithParser(string name, string adress) + public ObjectBenchWithParser(string name, string address) { Name = name; - Adress = adress; + Address = address; } [WriteProperty(length: 20, order: 1, paddingChar: ' ')] @@ -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) @@ -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); } } }