Konrad Komorowski
08/27/2025, 3:21 PM/typescript and /python subdirs.
We have custom Diamond rules for both Typescript and Python – both are file-based.
The problem is that Diamond applies irrelevant Typescript rules to Python files, and vice versa.
What's the best way to deal with it?
(1) Add comment exclusion rule like in the screenshot.
Will this work? Is Diamond aware of the name of the custom rules it's evaluating? Is it aware of the locations of the files it reviews?
(2) Add to our monorepo a file that matches the glob of Typescript/Python custom rules, explaining where to apply them
We have 17 Typescript rule files and 4 Python rules files. I'm not sure how they get concatenated into a single set of instructions.
If we do pursue this path, should we strive for the "only apply these rules to those files" disclaimer to appear at the top or bottom?
I assume the files get concatenated in alphabetical order, but I'm not sure!
(3) Some other way?Pylon
08/27/2025, 3:21 PMKonrad Komorowski
08/27/2025, 3:21 PMPylon
08/27/2025, 3:47 PMKonrad Komorowski
08/27/2025, 4:03 PM