DigitecGalaxus / DigitecGalaxus/ProjectsRuler

Completely fluent style for checking

Open
#13 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
11
Forks
0
PR merge metrics
No merged PRs in 30d

Description

I dig fluent interfaces. There now is a fluent builder for rules, but I feel like the checking in general could be done via a fluent interface.

In my mind, it'd be like

```C#
var violations = ForProject("path/to/sln").Check()
.That.Project("SomeCoolProject").DoesNotReference("*Test")
.That.AllProjects.Import("Common.props")
.That.Project("*.Database").DoesNotReference("*").Except("EF.Core")
.Result()
```

This would allow different kinds of checks to weave together... instead of checking "horizontally" - e.g. all references, all duplicates, ... - you could check "vertically" for projects or layers.

Of course, actual names are subject for debate 😉

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.