Husky.Net
csharpier
Our great sponsors
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Husky.Net
-
What are your pre-commit hooks?
I use Husky.net to hook in dotnet format on changed files.
-
Can the command dotnet format cause runtime errors?
One suggestion that I have is to set up Husky.Net. It'll allow you to ensure that dotnet format is run on every staged file. Assuming you guys are doing appropriately sized commits and PRs, your team will be able to evaluate formatting changes better by reviewing them in chunks as they come in, and not all at once in a large codebase.
- Migrating from JS/TS ecosystem to Blazor
-
Good nuget packages or GitHub repos to check out?
https://github.com/alirezanet/Husky.Net to auto run csharpier or anything else as a pre-commit hook
-
Enforce code style guidelines only on git push
Pre-commit hooks could work for this, but you will have to ensure everyone sets up the same pre-commit hook. https://github.com/typicode/husky or https://github.com/alirezanet/Husky.Net can make that easier.
csharpier
- 100% deterministic c# formatter
-
Is there an all-in-one code style solution yet?
Maybe check out https://csharpier.com/. I've never used it but am curious
-
Would you welcome top Level functions in C#
You're coupling your code in some manner whether you are calling static methods or instance methods. But yes, static methods aren't really mockable, so depending how you test it could bite you. However https://github.com/belav/csharpier makes extensive use of static methods and is incredibly well tested.
- how to bring order to a legacy codebase using editorconfig and dotnet format? it is only fixing whitespace issues
-
Dotnet, C#, code format on JetBrain IDE Rider
CSharpier
-
top 5 things every c# developer should know
I'm kind of hoping https://github.com/belav/csharpier becomes the norm.
- Does anyone have the default/standard resharper roslyn equivalent rules (or close) in an .editorconfig?
- Enforcing .NET code style rules at compile time
-
SourceGenerator.Foundations
https://github.com/belav/csharpier/tree/master/Src/CSharpier.Generators is an example.
-
How to apply formatting style/rules to an existing C# code base?
I'm biased (since I wrote it), but I've found nothing compares to using https://github.com/belav/csharpier
What are some alternatives?
GitRead.Net - .Net Standard library for reading Git repository data
format - Home for the dotnet-format command
Gogs - Gogs is a painless self-hosted Git service
EditorConfig - A very generic .editorconfig file supporting .NET, C#, VB and web technologies.
GitExtensions - Git Extensions is a standalone UI tool for managing git repositories. It also integrates with Windows Explorer and Microsoft Visual Studio (2015/2017/2019).
NumSharp - High Performance Computation for N-D Tensors in .NET, similar API to NumPy.
Gitea - Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
StyleCopAnalyzers - An implementation of StyleCop rules using the .NET Compiler Platform
LibGit2Sharp - Git + .NET = ❤
prettier - Prettier is an opinionated code formatter.
GitTrends - A iOS and Android app to monitor the Views, Clones and Star history of your GitHub repos
Visual Studio Uninstaller