-
Notifications
You must be signed in to change notification settings - Fork 580
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
Add mlint bear #2352
Comments
Hi, I get a bit confused. Mlint is just a function that can be run in MATLAB. How can we write a bear for it since a lint bear needs an executable? |
maybe we can somehow use the MATLAB compiler for static code analysis using the |
But in that case it wouldn't be a |
I would like to solve it. Some concerns:
|
👍
Yeah that's a problem. Usually you would start some background service / daemon you would reuse, but that raises the difficulty a bit. Maybe Matlab provides already something for similar purposes? |
|
My bad, @Makman2 I think I can handle this issue now. |
I am trying to write tests for MlintBear but I come up with a problem: MATLAB is commercial. How can it pass CI test? Only people with Matlab installed would be able to run the test. |
Put your bear in new directory /bears/non-free/ , with tests in /tests/non-free/ , and delete both directories in the .CI scripts. |
In quite a few cases we have rejected non-free linters, because free tools existed, even if not as good, but IMO matlab is a special case. We may end up rejecting this bear, as other maintainers will need to consider this policy question, but at least your CI should be green , and the code not intrusive to the free linters. A middle ground might be to create a non-free-bears repos ;-) |
Perform lint check on Matlab code. Closes coala#2352
Perform lint check on Matlab code. Closes coala#2352
Perform lint check on Matlab code. Closes coala#2352
If the tests are never run on the CI, how can we know whether the bear is working as intended? What is the need to have a test file in this case? Is it just for the contributor to check and verify? |
As these are significantly different, we're going to put them in their own repo. |
For MATLAB code
https://in.mathworks.com/help/matlab/ref/mlint.html?requestedDomain=true
The text was updated successfully, but these errors were encountered: