-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scaladoc -no-link-warnings does not work #16694
Comments
So I think there is a bit of confusion here. Looking at the actual description you see:
So it's actually not meant to be applied in this way. Although the overloading here is confusing. I see that #17028 does provide a fix for this, but probably not the way we want to do this. There is a few different things we could do here:
|
## Goal There are two purposes to this PR, the first is to add warning suppression when the path to the file is inneficient and a warning suppression flag is set. The second one is to deprecate the current flag and introduce a new to avoid the ambiguity. One for dead links with the current meaning, and one with dead links in assets. The goal is to avoid the confusion with overloading of the naming. I wonder if I also change the name of the previous flag to be more precise in its use. ## Flags noLinkWarnings - Boolean "-no-link-warnings", "Avoid warnings for ambiguous and incorrect links in members look up. Doesn't affect warnings for incorrect links of assets etc." noLinkAssetWarnings - Boolean "-no-link-asset-warnings", "Avoid warnings for incorrect links of assets like images, static pages, etc.", false ## Before : <img width="700" alt="Screenshot 2023-03-13 at 16 25 03" src="https://user-images.githubusercontent.com/44496264/224748941-65f08ba5-0498-4a0c-82b4-38b3921fcddd.png"> ## After : <img width="700" alt="Screenshot 2023-03-13 at 16 28 02" src="https://user-images.githubusercontent.com/44496264/224748976-dcd1825b-e4e7-48b4-b093-cc4f86a78fb0.png"> Fixes #16694
## Goal There are two purposes to this PR, the first is to add warning suppression when the path to the file is inneficient and a warning suppression flag is set. The second one is to deprecate the current flag and introduce a new to avoid the ambiguity. One for dead links with the current meaning, and one with dead links in assets. The goal is to avoid the confusion with overloading of the naming. I wonder if I also change the name of the previous flag to be more precise in its use. ## Flags noLinkWarnings - Boolean "-no-link-warnings", "Avoid warnings for ambiguous and incorrect links in members look up. Doesn't affect warnings for incorrect links of assets etc." noLinkAssetWarnings - Boolean "-no-link-asset-warnings", "Avoid warnings for incorrect links of assets like images, static pages, etc.", false ## Before : <img width="700" alt="Screenshot 2023-03-13 at 16 25 03" src="https://user-images.githubusercontent.com/44496264/224748941-65f08ba5-0498-4a0c-82b4-38b3921fcddd.png"> ## After : <img width="700" alt="Screenshot 2023-03-13 at 16 28 02" src="https://user-images.githubusercontent.com/44496264/224748976-dcd1825b-e4e7-48b4-b093-cc4f86a78fb0.png"> Fixes #16694 [Cherry-picked be70d46]
## Goal There are two purposes to this PR, the first is to add warning suppression when the path to the file is inneficient and a warning suppression flag is set. The second one is to deprecate the current flag and introduce a new to avoid the ambiguity. One for dead links with the current meaning, and one with dead links in assets. The goal is to avoid the confusion with overloading of the naming. I wonder if I also change the name of the previous flag to be more precise in its use. ## Flags noLinkWarnings - Boolean "-no-link-warnings", "Avoid warnings for ambiguous and incorrect links in members look up. Doesn't affect warnings for incorrect links of assets etc." noLinkAssetWarnings - Boolean "-no-link-asset-warnings", "Avoid warnings for incorrect links of assets like images, static pages, etc.", false ## Before : <img width="700" alt="Screenshot 2023-03-13 at 16 25 03" src="https://user-images.githubusercontent.com/44496264/224748941-65f08ba5-0498-4a0c-82b4-38b3921fcddd.png"> ## After : <img width="700" alt="Screenshot 2023-03-13 at 16 28 02" src="https://user-images.githubusercontent.com/44496264/224748976-dcd1825b-e4e7-48b4-b093-cc4f86a78fb0.png"> Fixes #16694 [Cherry-picked be70d46]
Scaladoc version 3.2.1 -- Copyright 2002-2022, LAMP/EPFL
If the
--no-link-warnings
flag is used, it does not suppress link warnings,The text was updated successfully, but these errors were encountered: