-
Notifications
You must be signed in to change notification settings - Fork 323
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
Enable require-jsdoc
lint and add two lints related to React
#6403
Conversation
oops :( |
umm |
not sure why prettier workflow failed, local run of |
@somebody1234 even this PR has some weird issues on first electron open after build. Would you mind taking a look? |
@PabloBuchu hmm... unfortunately still can't repro :(
the first time i wasn't logged in though, rebuilt and still cannot repro. i can try a clean build? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh wow, I feel for you. Looks like a pretty tiring job with adding docs everywhere!
/** Set Chrome options based on the app configuration. For comprehensive list of available | ||
/** Sets Chrome options based on the app configuration. For comprehensive list of available |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In all of our Rust codebase we have the opposite rule - instead of "Sets" we use "Set". I think we should be consistent here. Using docs in the imperative form rather than 3rd person form makes them shorter and unified with Rust codebase (which is unified with official Rust style guide).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah - i think the convention for TS in the other files was to use the opposite, but should be easy enough to change back
const add = (option: string, value?: string) => | ||
/** Adds the specified Chrome option. */ | ||
function add(option: string, value?: string) { | ||
chromeOptions.push(new configParser.ChromeOption(option, value)) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why we need to change const lambdas int functions? This makes the code more verbose.
// to generate a new target directory name; | ||
// * contain the project files directly - in this case, the archive filename will be used | ||
// to generate a new target directory name. | ||
// We try to tell apart these two cases | ||
// by looking at the common prefix of the paths of the files in the archive. | ||
// If there is any, everything is under a single directory, and we need to strip it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these docs are strangely formatted now. Some lines are too short.
app/ide-desktop/eslint.config.js
Outdated
FunctionDeclaration: true, | ||
MethodDefinition: true, | ||
ClassDeclaration: true, | ||
ArrowFunctionExpression: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that requiring docs on arrow fn exprs is an overkill. Vast majority of them are small helper functions that do not require better docs than just a good name. In case we will find a code during review with too long such an arrow expression, we can always refactor it to a normal fn :)
@@ -16,6 +16,7 @@ interface UserMenuItemProps { | |||
onClick?: React.MouseEventHandler<HTMLDivElement> | |||
} | |||
|
|||
/** User menu item */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing dot
Ofc, please remember about Q/A before merging. |
require-jsdoc
lintrequire-jsdoc
lint and add two lints related to React
files with missing sections found using this fish shell command: for f in (find . -not \( -name node_modules -prune \) \( -name '*.ts' -o -name '*.tsx' -o -name '*.js' \) ); grep "====" $f > /dev/null || echo $f; end |
similarly with all lines over 100 characters long
|
I was reviewing this a week ago - still no Q/A - who is handling Q/A here? |
@PabloBuchu @indiv0 could one of you perhaps do a QA? |
@somebody1234 |
@mwu-tow merged, but i'm not sure any of the commits merged in would fix the issue you encountered - it was only missing the last 2 commits, so:
|
@somebody1234 |
@somebody1234 please merge with develop and solve conflicts so we can merge it :) |
@somebody1234 ping |
whoops, fixed @PabloBuchu. there are some minor changes, but they should all be changes to comments |
@somebody1234 what is the status here? |
@sylwiabr should be ready, it's just had quite a few merge conflicts |
QA 🟢 |
QA:
testing that frontend recompile watcher works: flags, tested using |
…t-rename * develop: Widgets, Vector as Column, Viz Fixes and Rename Columns (#6768) Implement simple variants of `parse` for the Database backend (#6731) Enable `require-jsdoc` lint and add two lints related to React (#6403) Decimal/Integer .round and .int #6654 (#6743) Set suggestion reexports when serializing the library (#6778) Fix file uploading node expression. (#6689) Using WarningsLibrary to query for warnings (#6751) Implement `cast` for Table and Column (#6711) Display Initializing project... message when initializing project (#6661) Only send suggestions updates when type changes (#6755) sbt runEngineDistribution --debug to ease debuggging (#6745) Display "modified at" column on the cloud dashboard (#6687) Meta.meta Integer . methods (#6740) Show spinner while loading directory (#6714) Add cloud dashboard to changelog (#6688) Fix list editor panics during insertion (#6540) Update bug-report.yml Remove project create form (#6710) Change full-screen visualisation shortcut to shift-space (#6663)
* develop: (30 commits) Widgets, Vector as Column, Viz Fixes and Rename Columns (#6768) Implement simple variants of `parse` for the Database backend (#6731) Enable `require-jsdoc` lint and add two lints related to React (#6403) Decimal/Integer .round and .int #6654 (#6743) Set suggestion reexports when serializing the library (#6778) Fix file uploading node expression. (#6689) Using WarningsLibrary to query for warnings (#6751) Implement `cast` for Table and Column (#6711) Display Initializing project... message when initializing project (#6661) Only send suggestions updates when type changes (#6755) sbt runEngineDistribution --debug to ease debuggging (#6745) Display "modified at" column on the cloud dashboard (#6687) Meta.meta Integer . methods (#6740) Show spinner while loading directory (#6714) Add cloud dashboard to changelog (#6688) Fix list editor panics during insertion (#6540) Update bug-report.yml Remove project create form (#6710) Change full-screen visualisation shortcut to shift-space (#6663) Revert "Show spinner when opening/creating a project (#6321)" (#6712) ...
Pull Request Description
require-jsdoc
lintImportant Notes
Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:
Scala,
Java,
and
Rust
style guides. In case you are using a language not listed above, follow the Rust style guide.
./run ide build
.