Replies: 2 comments
-
For some expert discussion on this, see https://mastodon.social/@cocoaphony/112729062183695357. Not certain if this alters how this option should work in periphery. |
Beta Was this translation helpful? Give feedback.
-
Provided all of these I guess it's then down to you to decide whether you find value in redundant public analysis for non-main-app targets vs. reducing the number of warnings. Alternatively, you can exclude all results for just the main-app target with One could argue that Periphery should not report redundant public accessibility warnings for |
Beta Was this translation helpful? Give feedback.
-
In many cases, we have classes that would be
public
if they were in a separate module, but are currently part of the main app. We typically mark these aspublic final
to document their design intent and to simplify moving them into a separate module in the future.Periphery marks these redundant-public. My question is, given that they are also marked
final
, is there any cost to beingpublic
at the app level? Does this make the compiler work harder, or increase the size of intermediate files? If there's no cost, we would likely turn this analysis off since it's very noisy, though we would still like it for local modules.Beta Was this translation helpful? Give feedback.
All reactions