Skip to content

Inconsistent results and false negative between Dev and CI #855

@babysnakes

Description

@babysnakes

Hi, I have a project using FSharpLint version 0.26.10 and Dotnet 10.0.203.

On my PC the linting passes without an error, but on CI I get this error:

========== Linting D:\a\GlazeWM-Tray\GlazeWM-Tray\src\TrayApp\TrayItem.fs ==========
Usage of `new` keyword here is redundant.
Error on line 49 starting at column 15
    let tray = new TrayIcon()
               ^             
See https://fsprojects.github.io/FSharpLint/how-tos/rules/FL0014.html
--------------------------------------------------------------------------------

The TrayIcon in the error, refers to Avalonia's TrayIcon which implements IDisposable so the new is there for a reason.

Both running on windows (I'm not sure which Windows version does Github Actions runs on).

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions