https://github.com/aaronontheweb/evilroslynanalyzers
Has your boss gone insane and banned LINQ at work? Why stop there - use this Roslyn Analyzer to ban extension methods altogether!
https://github.com/aaronontheweb/evilroslynanalyzers
roslyn-analyzer
Last synced: 7 months ago
JSON representation
Has your boss gone insane and banned LINQ at work? Why stop there - use this Roslyn Analyzer to ban extension methods altogether!
- Host: GitHub
- URL: https://github.com/aaronontheweb/evilroslynanalyzers
- Owner: Aaronontheweb
- License: apache-2.0
- Created: 2024-04-15T21:44:20.000Z (over 1 year ago)
- Default Branch: dev
- Last Pushed: 2024-05-02T02:27:10.000Z (over 1 year ago)
- Last Synced: 2024-05-02T17:56:17.428Z (over 1 year ago)
- Topics: roslyn-analyzer
- Language: C#
- Homepage: https://www.reddit.com/r/dotnet/comments/1c4hz1z/linq_forbidden/
- Size: 39.1 KB
- Stars: 30
- Watchers: 2
- Forks: 3
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Evil Roslyn Analyzers
Enterprise-approved insane C# Roslyn Analyzers under the motto: "don't let productivity triumph over orthodoxy."
* [`NoExtensionMethods`](https://www.reddit.com/r/dotnet/comments/1c4hz1z/linq_forbidden/) - especially LINQ. If classes were supposed to have these methods, they would have implemented via inheritance obviously.
* [`NoVarDeclarations`](https://twitter.com/michaeljolley/status/1782767354184667538) - the `var` keyword is dangerous; we should all write C# with explicit types in every expression, like a 1990s Java program.
* [`NoAndOperators`](https://twitter.com/willboulton) - disallow usage of the `&&` operator, instead you must be explicit by ruling falsehood.