ReSharper InspectCode
ReSharper Automation Tools 2024.3.0
C#使用Jetbrains Resmantarper InspectCode對GitHub動作進行靜態分析。
name : InspectCode
on :
push :
branches :
- main
- ' releases/* '
pull_request :
types : [opened, reopened]
workflow_dispatch :
jobs :
inspect-code :
runs-on : ubuntu-latest
steps :
- uses : actions/checkout@v3
with :
submodules : recursive
- name : Annotate
# You may pin to the exact commit or the version.
uses : JetBrains/[email protected]
with :
solution : ./YourSolution.sln
permissions :
security-events : write with定義任何動作參數:
with :
tool-version : 2024.3.0您可以使用github工作流編輯器獲取具有描述的所有支持輸入的列表。
| 姓名 | 描述 | 預設 |
|---|---|---|
settings | 通往文件的路徑要使用自定義設置(默認:使用R#的解決方案共享設置)(如果存在)) | |
output | 將檢查報告寫入指定文件 | 結果 |
format | 以指定格式的寫檢查報告[XML,HTML,文本,SARIF] | 薩里夫 |
jobs | 並行運行到n個作業。 0意味著盡可能多 | 0 |
absolute-paths | 在檢查報告中使用絕對路徑 | 錯誤的 |
no-swea | 力禁用解決方案分析 | 錯誤的 |
swea | 力啟用溶液範圍內分析 | 錯誤的 |
project | 僅分析提供通配符選擇的項目(默認:分析解決方案中的所有項目) | |
include | 僅分析提供通配符選擇的文件(默認:分析解決方案中的所有文件) | |
exclude | 排除分析中提供的通配符選擇的文件(默認:分析解決方案中的所有文件) | |
dumpIssuesTypes | 轉儲問題類型 | 錯誤的 |
sEverity | 報告最小的嚴重程度要報告[信息,提示,建議,警告,錯誤] | 建議 |
debug | 顯示調試消息 | 錯誤的 |
verbosity | 顯示此數量的信息[關閉,致命,錯誤,警告,信息,冗長,跟踪] | 資訊 |
help | 顯示幫助並退出 | |
version | 顯示工具版本和退出 | |
toolset | MSBUILD工具集。默認情況下可用的最高可用。示例:-toolset = 12.0 | |
toolset-path | MSBUILD工具集(EXE/DLL)路徑。示例:-toolset-path =/usr/local/msbuild/bin/current/msbuild.exe | |
mono | 單道路。空忽略單聲道。未針對自動檢索指定。示例:-Mono =/Library/Frameworks/Mono.Framework/versions/current/bin/mono | |
dotnetcore | .NET核心路徑。空忽略.NET核心。未針對自動檢索指定。示例:-dotnetcore =/usr/local/share/dotnet/dotnet | |
dotnetcoresdk | .NET Core SDK版本。示例:-dotnetcoresdk = 3.0.100 | |
disable-settings-layers | 禁用指定的設置層。可能的價值:全球,全球授權,解決方案,解決方案人,項目共享,項目個人 | |
no-buildin-settings | 抑制全局,解決方案和項目設置配置文件使用情況。 - 可見的 - 塞特斯層:Globalall; GlobalPerpropoduct; SolutionShared; SolutionPersonal; ProjectShared; ProjectPersonal; ProjectPersonal | 錯誤的 |
caches-home | 將存儲生產的緩存的目錄的路徑 | |
properties | MSBUILD屬性 | |
targets-for-references | MSBUILD目標。這些目標將被執行以獲得參考項目的參考。 | |
targets-for-items | MSBUILD目標。這些目標將執行以獲取項目的其他項目(例如編譯項目)。 | |
eXtensions | 安裝並使用指定的擴展名 | |
source | 從指定來源安裝擴展 | |
measure | 測量自己的工具的性能[內存,採樣,時間表] | |
no-build | 處理之前不要構建解決方案 | 錯誤的 |
build | 在處理之前構建解決方案 | 真的 |
target | MSBUILD目標在處理之前要執行。 | 建造 |
solution | 解決方案文件 | |
tool-version | 工具版 | 2024.3.0 |