-
Notifications
You must be signed in to change notification settings - Fork 14
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
Review generate HTML files #934
Comments
I don't think a ton of comments about matching indentation style are particularly necessary. What would you change to add documentation? (Feel free to add docs)
To me, the inline version is much more readable. isolating that into a variable doesn't give a whole lot more information, and the inline version shows where the content will end up in the string. Thoughts? Otherwise, the review issues should be handled, good finds! |
Re: Indentation for Also, the inline version of |
Closing this issue since the above items have been addressed. |
Related to #872 for reviewing
generateDevelopmentHTML.js
andgenerateTestHTML.js
:generateDevelopmentHTML.js
Top-level documentation reads "... using the current brand's splash and preloads". However
const brands = 'phet'
is hard-coded (line 43). Should the top-level doc be specific tophet
brand because it is hard-coded?Documentation in generateTestHTML.options.stylesheets reads :
// Note the preceding whitespace which makes the formatting match IDEA formatting.
Shouldbodystyle
in generateDevelopmentHTML.js include documentation as to why the white space is "essential"? Is it for the same reason?Organization: I would move the
indentLines()
declaration above thepreloads
declaration so the helper functions are grouped togetherWithin
stringifyArray
, renamearr.map().join()
tostringifiedPreload
. It would make the return value more readable.Within
stringifyArray
,prefix
is concatenated to the end of the return value (like this[ arr.map().join() + prefix ].
Prefix
in this case isn't really a prefix, it is a suffix. Consider renaming toindentation
, based on it being concatenated to the beginning and end of the string instringifyArray
.generateTestHTML.js
Shouldn't this file use strict mode?
use strict
is missing.module.exports = async ( repo, options )
is missing its jsDoc.Assigning to @jonathanolson to respond to review comments.
The text was updated successfully, but these errors were encountered: