[Office Hours] Overriding Periphery CI check #120
Answered
by
PSchmiedmayer
kkellybonilla
asked this question in
Office Hours
-
Beta Was this translation helpful? Give feedback.
Answered by
PSchmiedmayer
Feb 6, 2025
Replies: 1 comment
-
The checks are there to remove unused code so I would generally aim to remove all elements that are currently not needed and implement & test them as they become relevant in the app. It is challenging to maintain larger code bases with a lot of dead code and most of the time it won't be used after all. If you run into any false positives (e.g. the tool not detecting that a variable is actually used), you can use the ignore commends and a reasoning to disable these checks on a line-by-line basis. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
PSchmiedmayer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The checks are there to remove unused code so I would generally aim to remove all elements that are currently not needed and implement & test them as they become relevant in the app. It is challenging to maintain larger code bases with a lot of dead code and most of the time it won't be used after all.
If you run into any false positives (e.g. the tool not detecting that a variable is actually used), you can use the ignore commends and a reasoning to disable these checks on a line-by-line basis.