[False Positive] Do not target .NET Framework versions less than 4.7.2. seems to flag .NET11 projects

Open Beginner friendly
#801 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
76/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
csharp
Domain
security, tooling

Research direction

The issue identifies rules/default/security/frameworks/dotnet_framework.json and the DS450000 rule. Read the rule's matching pattern and compare its behavior on net11.0 with the listed older target framework versions. Done means .NET 11 no longer triggers the rule while the intended older versions remain matched; the issue does not name a test file.

Written by the indexing model from the issue text.

Description

false positive

Rule ID

DS450000

What the rule matched

<TargetFramework>net11.0</TargetFramework>

Why should this not be matched?

This is .NET 11 not .NET 1.1

I believe the Regex in https://github.com/microsoft/DevSkim/blob/main/rules/default/security/frameworks/dotnet_framework.json is taking a partial string and should be something like
^(net11|net20|net35|net40|net403|net45|net451|net452|net46|net461|net462|net47|net471)$

Dominant language
C#
Stars
1k
Forks
135
Avg merge
15h 14m
Merged PRs (30d)
2

Getting set up

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.

More from microsoft/DevSkim

All issues in microsoft/DevSkim

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.