Replies: 6 comments 3 replies
-
Hi @pdsavard, yes, you are probably one of the developers who stumbled upon that fix in v0.17.0 Every from tag needs to have a clearance. In your case, the domain type is cleared but not the type one. Can you update the following: 'src/app/shell/<shell>': 'domain:shell',
'src/app/domains/shared/<shared>': 'domain:shared', to 'src/app/shell/<shell>': ['domain:shell', 'type:shell'],
'src/app/domains/shared/<shared>': ['domain:shared', 'type:shared'], And also update your 'type:data': ['type:util', 'type:data', 'type:shell', 'type:shared'] Let me know, if that fixes the issue for you. |
Beta Was this translation helpful? Give feedback.
-
You are probably one of the developers who stumbled upon that fix in v0.17.0! YES! Maybe I got an incorrect structure too:
If I understand your answer, if I want to manually tag the Shell folder I need to set the domain AND the type to something?
And then use type dep rules instead of domain? I am not sure to understand that part. I was thinking user something like: Do I understand correctly? Sorry to ask such of basic question! ;-) Question 2: I a add the auto taging bloc like:
Does this will interfere with my manually Shared tag just above? Question 3: I lost the red squiggly warning in my file. Now I need to use ng lint to see Sheriff errors. Do I miss something after updating to 0.17? |
Beta Was this translation helpful? Give feedback.
-
So I continue my learning of the v0.17 but is not simple! ;-) My config is now:
But I still have some lint error that I do not understand. Like a file in auth domain that need to access domain:auth but failed:
The goal is that my Shell and Share are acessible from anywhere with any tag (for the moment). any idea? |
Beta Was this translation helpful? Give feedback.
-
@pdsavard, let's make sure that your configs works and then we can discuss your other questions in detail. |
Beta Was this translation helpful? Give feedback.
-
sameDomain seems to not been detected in the import { anyTag, sameDomain, SheriffConfig } from '@softarc/sheriff-core'; adding this 'domain:*': [sameDomain, 'shell', 'shared'], For exemple: But k2.state.ts are in +store folder of the same "KelvinV2" domain. In the dependency rule, I got this rule: 'type:store': ['type:util', 'type:data'], so normally the store can access the data one? |
Beta Was this translation helpful? Give feedback.
-
Sorry, I didn't see that I typed |
Beta Was this translation helpful? Give feedback.
-
I am not sure to understand well how to applie rule.
I got 2 domains that nned to be access anywhere (for now) from any tags. Shared and Shell.
this is my config:
But I still get lint error like:
5:1 error module \src\app\domains\KelvinV2+store cannot access \src\app\domains\shared\utils. Tag type:data has no clearance for tags domain:shared @softarc/sheriff/dependency-rule
9:1 error module \src\app\domains\KelvinV2+store cannot access \src\app\shell\notification. Tag type:data has no clearance for tags domain:shell @softarc/sheriff/dependency-rule
Beta Was this translation helpful? Give feedback.
All reactions