dotnet / dotnet/format

pre-commit hook does not work if the solution is in a sub directory

Open
#1,232 2 comments 3 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
1.9k
Forks
173
Avg merge
10d 13h
Merged PRs (30d)
1

Description

i use the following .pre-commit-config.yaml file.

![image](https://user-images.githubusercontent.com/1427117/126219511-2b0f57f5-da56-4a4c-b6be-3ef387950dd7.png)

The structure of the repository looks like this

- repo
- .git
- src
- solution.sln
- .pre-commit-config.yaml

The original repo used to pass solutions from a subdirectory. Looks like it is not possible to pass the solution in an argument with this hook. I get the following error saying that there is no solution found in the directory

![image](https://user-images.githubusercontent.com/1427117/126219828-3dbe7ab3-a551-477d-9da4-d4f183090a67.png)

Thanks,

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.