
用于构建F# / FSAC自定义分析仪的库
概览
用于构建FSAC / F#编辑器自定义分析器的库。 F# 分析器是实时、基于项目的插件,能够诊断源代码,并将自定义错误、警告和代码修复内容展示到编辑器中。点击这里阅读更多关于分析器的信息 - https://medium.com/lambda-factory/introducing-f-analyzers-772487889429 1. 安装global.json中指定的.NET SDK版本 2.dotnet工具还原 3.打开并构建你喜欢的IDE,或使用dotnet build。 1. dotnet build -c 版本 2.运行控制台应用程序: 你也可以在你喜欢的IDE中设置FSharp.Analyzers.Cli的运行配置,使用类似的参数。这也允许你调试FSharp.Analyzers.Cli。 请查看我们为分析仪用户准备的入门指南! 该仓库附带一个代理技能,将 fsharp-analyzers 工具和分析器包升级到匹配的版本,重新运行分析器并报告新内容。
概述(AI 翻译)
用于构建FSAC / F#编辑器自定义分析器的库。
F# 分析器是实时、基于项目的插件,能够诊断源代码,并将自定义错误、警告和代码修复内容展示到编辑器中。点击这里阅读更多关于分析器的信息 - https://medium.com/lambda-factory/introducing-f-analyzers-772487889429
如何建造
- 安装
global.json指定的特定 .NET SDK 版本。 dotnet tool restore- 打开并构建你喜欢的IDE,或使用
dotnet build
如何运行样本
dotnet build -c Release- 运行控制台应用程序:
你也可以在你喜欢的IDE中设置FSharp.Analyzers.Cli的运行配置,使用类似的参数。这也允许你调试FSharp.Analyzers.Cli。
使用分析仪
请查看我们为分析仪用户准备的入门指南!
用AI代理升级
该仓库会发布一个代理技能,升级fsharp-analyzers工具和分析器包到匹配的版本,重新运行分析器并报告新增内容。全局安装时有:
然后让你的代理在使用它们的仓库里“升级F#分析器”。
写作分析器
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Ionide FSharp.Analyzers.SDK
Library used for building custom analyzers for FSAC / F# editors.
F# analyzers are live, real-time, project based plugins that enables to diagnose source code and surface custom errors, warnings and code fixes into editor. Read more about analyzers here - https://medium.com/lambda-factory/introducing-f-analyzers-772487889429
How to build
- Install the .NET SDK version specified in
global.json dotnet tool restore- Open and build in your favorite IDE, or use
dotnet build
How to run sample
dotnet build -c Release- Run the console application:
dotnet run --project src\FSharp.Analyzers.Cli\FSharp.Analyzers.Cli.fsproj -- --project ./samples/OptionAnalyzer/OptionAnalyzer.fsproj --analyzers-path ./artifacts/bin/OptionAnalyzer/release --verbosity d
You can also set up a run configuration of FSharp.Analyzers.Cli in your favorite IDE using similar arguments. This also allows you to debug FSharp.Analyzers.Cli.
Using Analyzers
Checkout our Getting Started guide for analyzer users!
Upgrading with an AI agent
This repository ships an agent skill that upgrades the fsharp-analyzers tool and your analyzer packages to a matching set of versions, re-runs the analyzers and reports what is new. Install it globally with:
npx skills add ionide/FSharp.Analyzers.SDK --skill upgrade-fsharp-analyzers -g
Then ask your agent to “upgrade the F# analyzers” in a repository that uses them.
Writing Analyzers
Checkout our Getting Started guide for analyzer authors!
How to contribute
Imposter syndrome disclaimer: I want your help. No really, I do.
There might be a little voice inside that tells you you’re not ready; that you need to do one more tutorial, or learn another framework, or write a few more blog posts before you can help me with this project.
I assure you, that’s not the case.
This project has some clear Contribution Guidelines and expectations that you can read here.
The contribution guidelines outline the process that you’ll need to follow to get a patch merged. By making expectations and process explicit, I hope it will make it easier for you to contribute.
And you don’t just have to write code. You can help out by writing documentation, tests, or even by giving feedback about this work. (And yes, that includes giving feedback about the contribution guidelines.)
Thank you for contributing!
Contributing and copyright
The project is hosted on GitHub where you can report issues, fork
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add ionide/fsharp.analyzers.sdk