Ignore / Suppress specific magic number warning in detekt baseline.xml for a Compose function #7274
-
To ignore magic number in a class, we can do this:
Where, What would happen if this is in compose lets say:
I have tried multiple approaches, but still I am unable to suppress this. Referencing direct function from file reference:
Referencing direct magic number from file reference:
Referencing direct magic number from element (function) reference:
This is hit and trial. I know that already, that this is not the way to do it (not mentioned in the docs what to do either) Only reference to read for Baseline I found is this detekt website |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
In general I don't recommend you to create the baseline by hand. I would recommend to execute the baseline task to generate it for you. If there are more lines that you want you can simply remove those. If you still want to build it by hand I recommend you to go to the |
Beta Was this translation helpful? Give feedback.
In general I don't recommend you to create the baseline by hand. I would recommend to execute the baseline task to generate it for you. If there are more lines that you want you can simply remove those.
If you still want to build it by hand I recommend you to go to the
txt
report and copy the lines from there. They follow the same pattern, I don't even know exactly which one it is.