[yast-devel] New Yard Warnings
Hi YaSTies, new yardoc is here and because we do not freeze its version, we also using it. It adds a more strictness to link resolving. So it no longer resolve links to method of constant or to attribute that is not found. Sadly those constant include also yast modules which is costant created as instance of class so it is singleton. What is affected? All packages that use links and use check:doc to verify documentation. How error looks like? ``` [warn]: The namespace of link "Y2ModuleConfig#resource_aliases_map" is a constant or invalid. [warn]: The namespace of link "Profile.Prepare" is a constant or invalid. [warn]: The namespace of link "Yast::Profile.current" is a constant or invalid. [warn]: In file `src/lib/autoinstall/activate_callbacks.rb':40: Cannot resolve link to Yast::Profile.current from text: ...{Yast::Profile.current}... ``` How to fix it? Using Class suffix to link class that implements method. Example can be seen in this commit - https://github.com/yast/yast-autoinstallation/pull/607/commits/dd3e20dc54eca... Josef -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org To contact the owner, e-mail: yast-devel+owner@opensuse.org
participants (1)
-
josef Reidinger