ionide / ionide/FSharp.Analyzers.SDK

Globbing more paths (like Projects)

Open
#219 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
F#
Stars
85
Forks
28
Avg merge
1d 8h
Merged PRs (30d)
20

Description

**Is your feature request related to a problem? Please describe.**

I'd like to add more globbing to more place (specifically `Project`)

## Background

I hit a very peculiar error while running the analyzer cli-tool.

> System.ComponentModel.Win32Exception (206): An error occurred trying to start process 'dotnet.exe' with working directory 'C:\actions-runner_work\foobar\foobar'. The filename or extension is too long.

It's a misleading error, it's actually a problem with [commands being too long](https://stackoverflow.com/questions/19306194/process-launch-exception-filename-or-extension-is-too-long-can-it-be-caused-b). It's because I added too many items to the `Exclude_Files` list. Luckily we [already support globbing](https://github.com/ionide/FSharp.Analyzers.SDK/blob/b8aca73b5aa122fa1e11e15067f1da99c188f1e5/src/FSharp.Analyzers.Cli/Program.fs#L531) for it but I think it would be good to add globbing to other potentially long listed items like [Projects](https://github.com/ionide/FSharp.Analyzers.SDK/blob/b8aca73b5aa122fa1e11e15067f1da99c188f1e5/src/FSharp.Analyzers.Cli/Program.fs#L523)

**Describe the solution you'd like**

Add globbing to more places.

**Describe alternatives you've considered**

Not doing anything. There's always an option not to.

**Additional context**
Add any other context or screenshots about the feature request here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.