fsprojects / fsprojects/FSharpLint

Enable #nowarn to disable FSharpLint warnings

Open
#502 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
F#
Stars
327
Forks
74
PR merge metrics
No merged PRs in 30d

Description

Description

Enable #nowarn to disable FSharpLint warnings

Repro steps
#nowarn "FL0038"
type lowercase = class end
Expected behavior

Lint warning is disabled for file.

Actual behavior

Lint warning continues to exist.

Known workarounds

Use the provided json settings - Not standard and not local to the file.

Related information
  • Operating system Windows
  • Branch master
  • .NET Runtime, CoreCLR or Mono Version 5.0.400
  • Performance information, links to performance testing scripts None

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start from the F# repro using #nowarn "FL0038" and inspect how FSharpLint reads source directives and emits warnings. Done means the directive disables the specified lint warning for the file while JSON settings remain unnecessary; verify the reported repro case and related lint behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
fsharp
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.