Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Lint tool for F#

License

NotificationsYou must be signed in to change notification settings

fsprojects/FSharpLint

Repository files navigation

FSharpLint is a static analysis tool for F#. Like many other software linters, it analyzes your source code (using both typed and untyped syntax trees) and highlights any violations of defined F# coding rules. There are various kinds of rules:

  • Conventions: ensures that your API members follow project- or solution-wide naming conventions.
  • Smells: warns about logic that may pose maintainability problems or potential downsides.
  • Formatting: checks that code is indented and structured according to specified cosmetic standards.

The tool is configurable via JSON and can be run as a console app or as an MSBuild task. It also provides an interface for easy integration into other software.

The project aims to let the user know of problems throughmatching user defined hints a laHLint, and also by using custom rules written in F# similar to the rules inMascot andStyleCop.

The tool in use (running as an MSBuild task with TreatWarningsAsErrors set to true):

Example

Usage

FSharpLint can be used in several ways:

Documentation

Thedocs contain an overview of the tool and how to use it, including a list of theavailable rules for linting.

Nuget Packages

PackageVersion
dotnet toolNuGet Status
APINuGet Status

How to build

  1. Make sure you've installed the .NET version defined inglobal.json
  2. Rundotnet tool restore to install all developer tools required to build the project
  3. Runmake to build (which executes theBuild target from the FAKE-basedbuild script)
  4. To run tests usemake check
  5. To build documentation usemake docs

How to work with documentation

  1. Make sure you've installed the .NET version defined inglobal.json
  2. Rundotnet tool restore to install all developer tools required to build the project
  3. Rundotnet fsi build.fsx to build default target ofbuild script
  4. Build documentation to make sure everything is fine withdotnet fsi build.fsx -t Docs
  5. Go to docs foldercd docs and start Fornax in watch modedotnet fornax watch
  6. Your documentation should be now accessible onlocalhost:8080 and will be regenerated on every file save

How to release

Pleaseread the Releasing Guidelines if you're a maintainer.

How to contribute

Bug reports, feature requests, and pull requests are very welcome! Pleaseread the Contribution Guidelinesto get started.

Licensing

The project is licensed under MIT. For more information on the license see the LICENSE file.

Maintainer(s)

The default maintainer account for projects under "fsprojects" is@fsprojectsgit - F# Community Project Incubation Space (repo management)


[8]ページ先頭

©2009-2025 Movatter.jp