Comments (4)
I'd like to be careful with adding new features which may complicate the configs and which may have a performance impact, so let's discuss it a bit.
The default behavior (allowlisting) already denies different modules to reference each other, unless they are explicitly allowed. What is your approach (or existing config) that would make such a disallowed rule necessary?
from nsdepcop.
Basically we follow deny listing rather than allow listing. The reason is that we only want to deny relationships between our assemblies. Anything coming from nuget, or the runtime, isn't of our concern.
Thus we have few rules which allow us to ensure that our architecture isn't misused.
This approach allows us to be very concise but also reuse the configuration for all our projects, since they all have the same architecture. The only thing we cannot do yet is guarantee that some projects aren't able to reference some other projects.
from nsdepcop.
I see.
Regarding the "current assembly name wildcard": does it mean that assembly name must exactly match the root namespace name in that assembly, or do you have some other logic in mind? And I guess it should add a .*
at the end of the namespace name to match all sub-namespaces too?
Regarding performance: do you have any concrete implementation idea in mind for efficiently matching a *Module
-like pattern? Would it work only for a leading *
wildcard in the name or could the *
be anywhere in the name?
from nsdepcop.
Thanks for your time and the feedback @realvizu. After working more with NsDepCop I realized that what we need is different so now we use an alternative which works fine for us so far.
from nsdepcop.
Related Issues (20)
- [Q] Are transient dependencies supported? HOT 1
- Support VS2019 HOT 1
- Unable to communicate with NsDepCop service. All retries failed on CI Build HOT 4
- Disallowed from a.* to a.b.* causes a.b.c->a.b.c to throw a warning HOT 2
- Warn when there is not used allowed rule HOT 1
- 'Unable to communicate with NsDepCop service' when building 1 project. Works when building multiple projects.
- Support regex in namespace definition
- How to disallow NS reference except for ... HOT 2
- Analysis fails with null reference error HOT 3
- Unable to communicate with NsDepCop service HOT 1
- VSIX not working in newer VS 2019 versions HOT 2
- Mac Rider Use NsDepCopTask error HOT 3
- New Feature: Add assembly(/nuget) version checks HOT 1
- Method call dependencies without a return type are ignored HOT 1
- Error with System.Runtime version 4.2.2.0 HOT 3
- The xsd for configuration does not define ParentCanDependOnChildImplicitly HOT 1
- Add Allowed Types/Members to build warning HOT 6
- VS 2022- Dont see NsDepCop work in C# ClassLibrary (.Net Framework) project HOT 2
- Make debug logging configurable
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nsdepcop.