SharpSource
1.26.0

コマンドラインからインストールします。
Install-Package SharpSourceまたは自分で参照を追加します:
< ItemGroup >
< PackageReference Include = " SharpSource " Version = " 1.26.0 " PrivateAssets = " All " />
</ ItemGroup >代わりに拡張機能としてインストールしたい場合は、市場からダウンロードしてください。
このレポは、いくつかの言語機能とフレームワークの種類を操作しやすくすることを目的とするアナライザーのコレクションを収容しています。これは、最適ではないパフォーマンス、ランタイムの例外、または一般的な意図しない動作をもたらす方法で何かを誤って使用する可能性があることを強調することでこれを行います。
言い換えれば、このレポは、欠陥チケットに変わる具体的な可能性があるパターンのアナライザーのみが含まれています。コードのフォーマットや生産性ヘルパーの提供など、一般的なハウスキーピングタスクを支援することを意図したものではありません。
貢献に興味がありますか?ガイドラインを見てください!
各アナライザーの詳細な説明は、ドキュメントにあります:https://github.com/vannevelj/sharpsource/tree/master/docs
| コード | 名前 |
|---|---|
| SS001 | asyncmethodwithvoidreturntype |
| SS002 | DateTimenow |
| SS003 | Divideintegerbyinteger |
| SS004 | ElementAryMethodsofTypeIncollectionNotOverridend |
| SS005 | equalsandgethashcodenotimplementedtogether |
| SS006 | 投げた |
| SS007 | flagsenumvaluesarenotpowersoftwo |
| SS008 | gethashcodereferstomutablemember |
| SS009 | Loopedrandomintantiation |
| SS010 | NewGuid |
| SS011 | onpropertychanged withoutnameofoperator |
| SS012 | RecursiveOperatorOverload |
| SS013 | rethrowexceptionwithOutlosingStackTrace |
| SS014 | stringdotformatwithdifferentamountofarguments |
| SS015 | stringplaceholdersinwrongorder |
| SS017 | struct withoutelementArymethodsoverridden |
| SS018 | Switchdoesnothandleallenumoptions |
| SS019 | SwitchismissingDefaultLabel |
| SS020 | publicModifierをtestMethodwithodwithodwithodwithodwithodwithodwithodwithodwithodwithodwith withsod |
| SS021 | testMethodWithOutTattribute |
| SS022 | IMPLICITOPERATORの例外 |
| SS023 | Propertygetterから例外 |
| SS024 | 構築物から例外 |
| SS025 | 例外的にブロックされた |
| SS026 | 例外的なfromequalityOperator |
| SS027 | 例外的にfromdispose |
| SS028 | FromFinalizerから例外 |
| SS029 | 例外throwngethashashcode |
| SS030 | 例外的なfromequals |
| SS032 | スレッドスリープインシンメトッド |
| SS033 | asyncoverloadsavaible |
| SS034 | AccessingTaskResultWithOutWait |
| SS035 | SynchronustaskWait |
| SS036 | expricitenumvalues |
| SS037 | httpclientInStantiTERECTLY |
| SS038 | httpcontextStoredInfield |
| SS039 | enumwithoutdefaultValue |
| SS040 | UnusedultonimmutableObject |
| SS041 | 不必要な発作能力化 |
| SS042 | instancefieldwiththreadstatic |
| SS043 | 複数のBodyBodyParameters |
| SS044 | AttributeMustSpecifeAttributionSage |
| SS045 | staticInitializerAccessedBeforeInitialization |
| SS046 | unboundedStackAlloc |
| SS047 | linqtraversalbeforefilter |
| SS048 | lockingondiscouragedObject |
| SS049 | 比較ストリングスストリングストリングコマイソン |
| SS050 | ParameterAssignedInconstructor |
| SS051 | lockingonmutableReference |
| SS052 | threadStaticWithInitializer |
| SS053 | PlentlessCollectionTostring |
| SS054 | NewtonsoftMixedWithSystemTextJson |
| SS055 | MulthyorderByCalls |
| SS056 | formreadsynchronally |
| SS057 | CollectionManipulatedDuringTraversal |
| SS058 | stringconcatenatedinloop |
| SS059 | DisseaSyncdisposable |
| SS060 | 同時ディクショナリemptyCheck |
特定のルールはあなたの好みに対するものではありませんか?重症度を調整し、完全に無効にする方法はたくさんあります。いくつかのオプションの概要については、このドキュメントをご覧ください。