|
22 | 22 | namespace Microsoft.NodejsTools {
|
23 | 23 | internal sealed class AnalysisConstants {
|
24 | 24 | internal const string NodeModulesFolder = "node_modules";
|
| 25 | + |
| 26 | + /// <summary> |
| 27 | + /// Maximum practical limit for the dependencies analysis. |
| 28 | + /// </summary> |
| 29 | + /// <remarks> |
| 30 | + /// There no practical reasons to go deeper in dependencies analysis. |
| 31 | + /// Number 4 is very practical. Here the examples which hightlight idea. |
| 32 | + /// |
| 33 | + /// Example 1 |
| 34 | + /// |
| 35 | + /// Level 0 - Large system. Some code should use properties of the object on level 4 here. |
| 36 | + /// Level 1 - Subsystem - pass data from level 4 |
| 37 | + /// Level 2 - Internal dependency for company - Do some work and pass data to level 1 |
| 38 | + /// Level 3 - Framework on top of which created Internal dependency. |
| 39 | + /// Level 4 - Dependency of the framework. Objects from here still should be available. |
| 40 | + /// Level 5 - Dependency of the framework provide some usefull primitive which would be used very often on the level of whole system. Hmmm. |
| 41 | + /// |
| 42 | + /// Example 2 (reason why I could increase to 5) |
| 43 | + /// |
| 44 | + /// Level 0 - Large system. Some code should use properties of the object on level 4 here. |
| 45 | + /// Level 1 - Subsystem - pass data from level 4 |
| 46 | + /// Level 2 - Internal dependency for company - Wrap access to internal library and perform business logic. Do some work and pass data to level 1 |
| 47 | + /// Level 3 - Internal library which wrap access to API. |
| 48 | + /// Level 4 - Http library. |
| 49 | + /// Level 5 - Promise Polyfill. |
| 50 | + /// |
| 51 | + /// All these examples are highly speculative and I specifically try to create such deep level. |
| 52 | + /// If you develop on windows with such deep level you already close to your limit, your maximum is probably 10. |
| 53 | + /// </remarks> |
| 54 | + internal const int MaxAnalysisDepthQualty = 4; |
| 55 | + |
| 56 | + /// <summary> |
| 57 | + /// Maximum practical limit for the dependencies analysis oriented on producing faster results. |
| 58 | + /// </summary> |
| 59 | + internal const int MaxAnalysisDepthFast = 2; |
25 | 60 | }
|
26 | 61 | }
|
0 commit comments