apply miss_hit linter #33
Merged
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.
@marcobarilari you were asking for some styling tool that would help you know where to put spaces and so on.
This PR is the results of just typing this in the command line. Many of things this linter is not happy with are automatically fixed. Others throw a warning.
From this project: https://florianschanda.github.io/miss_hit/style_checker.html
The main difference vizually is that it indents the functions by default, but the matlab editor can do that too if you set it up that way.
I am tempted to start adding this linter to our matlab projects so we don't have to think about formating.
@CerenB @marcobarilari
What do you think?