You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/04_tip_and_tricks/avoiding_a_global_resource_file.md
+41-28Lines changed: 41 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,34 +69,47 @@ The recommended solution is to **modularize your resources**:
69
69
70
70
This modular approach not only eliminates issues like circular dependencies and performance bottlenecks but also enhances maintainability and clarity. It ensures that suite settings clearly document which components are required for each test suite.
71
71
72
-
### When Restructuring Isn’t Possible
73
-
74
-
If restructuring your project is not an option, you can mitigate potential issues by managing the warnings provided by your development environment. For instance, you can suppress warnings related to circular dependencies and redundant imports either on a per-file basis or globally.
75
-
76
-
For global suppression in VS Code, add the following to your `settings.json`:
Alternatively, you can use a [`robot.toml`](/03_reference/config) file with these contents:
89
-
90
-
```toml
91
-
[tool.robotcode-analyze.modifiers]
92
-
ignore = [
93
-
"PossibleCircularImport",
94
-
"CircularImport",
95
-
"ResourceAlreadyImported",
96
-
"VariablesAlreadyImported",
97
-
"LibraryAlreadyImported"
98
-
]
99
-
```
72
+
## When Restructuring Isn’t Possible
73
+
74
+
If restructuring your project isn’t an option, you can mitigate potential issues by managing warnings from your development environment. For example, you can suppress warnings related to circular dependencies and redundant imports on a per-file basis or globally.
75
+
76
+
-**Suppress Warnings in Specific Files:**
77
+
Use directives to disable warnings for circular dependencies and already-imported resources on a per-file basis.
0 commit comments