You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You have clear variable names which makes it easy to follow. Your syntax is also intuitive and similar to ninja
You should add validation in your constructors. Your classes like rule and build should have logic in their constructors instead of leaving them empty
Your classes don't store their constructor parameters since they have no member variables. For example your var class doesn't have member variables "name" and "value" but your constructor requires those values to be passed
Your depth parameter in pool_ is never used. Your pool_ class also has inconsistent naming compared to your other classes without an underscore
You should add documentation or comments explaining each of your classes and what parameters they expect
Change Granularity:
Multiple commits per PR, which does not meet the requirements. Consider having it in one commit.
If not considering this, the commits are progressing in a logical sense with each commit serving a specific purpose.
Code Functionality:
Consider adding a builddir variable to control build output location.
The code does not handle Windows vs Unix command line differences
Other than that, the code matches what a build.ninja would look like.
Readability & Structure:
Some inconsistent naming conventions (pool_ and default_ vs other classes)
Well encapsulation of functions
Standards Compatibility:
Class fields are private, except for Token class
Consider adding error handling and exceptions.
Testing:
CircleCI is correctly set up and all the tests passes successfully
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.