Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/g-research/fsharp-analyzers
Analyzers for F#
https://github.com/g-research/fsharp-analyzers
analyzer analyzers code-quality code-scanning dotnet fsharp
Last synced: about 1 month ago
JSON representation
Analyzers for F#
- Host: GitHub
- URL: https://github.com/g-research/fsharp-analyzers
- Owner: G-Research
- License: apache-2.0
- Created: 2023-09-07T12:49:24.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-19T06:09:58.000Z (4 months ago)
- Last Synced: 2024-08-19T07:26:49.901Z (4 months ago)
- Topics: analyzer, analyzers, code-quality, code-scanning, dotnet, fsharp
- Language: F#
- Homepage: https://g-research.github.io/fsharp-analyzers/
- Size: 419 KB
- Stars: 14
- Watchers: 16
- Forks: 1
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# G-Research Fsharp Analyzers
![GitHub Workflow Status (event)](https://img.shields.io/github/actions/workflow/status/G-Research/fsharp-analyzers/release.yml?branch=main&label=CI&style=flat-square)
[![Nuget (with prereleases)](https://img.shields.io/nuget/vpre/G-Research.FSharp.Analyzers?style=flat-square)](https://www.nuget.org/packages/G-Research.FSharp.Analyzers/absoluteLatest)A curated set of [Ionide SDK analyzers](https://ionide.io/FSharp.Analyzers.SDK/) for F#.
## Usage
To run any analyzer you need to find a way to download the NuGet package locally.
At the time of writing there is no standard way to do this, one way this can be done is by using the [](https://learn.microsoft.com/en-us/nuget/consume-packages/packagedownload-functionality)```xml
false
./.analyzerpackages/
net6.0
true
false
```
Running `dotnet restore` will download this locally to `./.analyzerpackages`.
Then you need to install the [fsharp-analyzers tool](https://www.nuget.org/packages/fsharp-analyzers).
Next you can run `dotnet fsharp-analyzers --project YourProject.fsproj --analyzers-path ./.analyzerpackages/g-research.fsharp.analyzers/0.1.4/lib/net6.0`
Please checkout the documentation over at [FSharp.Analyzers.SDK](https://ionide.io/FSharp.Analyzers.SDK/).
## Contributing
We welcome new contributors! We'll happily receive PRs for bug fixes
or small changes. If you're contemplating something larger please get
in touch first by opening a GitHub Issue describing the problem and
how you propose to solve it.### Scaffold new analyzer
Run
dotnet fsi build.fsx -- -p NewAnalyzer
to scaffold a new analyzer.
## License
Copyright © 2023 G-Research
Licensed under the Apache License, Version 2.0 (the "License"); you may not use these files except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.