barnhill / barcodelib

C# Barcode Image Generation Library
Apache License 2.0
744 stars 239 forks source link

Add EditorConfig, fix formatting, remove unuses usings etc #192

Closed Saibamen closed 9 months ago

Saibamen commented 9 months ago
  1. Add EditorConfig from https://github.com/dotnet/aspnetcore repo
  2. Sort and remove unused usings
  3. var
  4. Fix formatting
  5. Remove trailing whitespaces
  6. Add missing readonly
  7. Avoid unnecessary assignment of value
  8. Object initialization
  9. Fix some private variable names
  10. Remove unused GetFontSize
  11. Remove redundant ToString() - this will also fix possible NREs
  12. Curly braces to surround blocks of code
  13. Convert to file-scoped namespace to reduce nesting
  14. And more

Please hide spaces in diff for better CR experience:

image

barnhill commented 9 months ago

I can't review this since it touches almost every line

Saibamen commented 9 months ago

OK, I created https://github.com/barnhill/barcodelib/pull/194