Console: process multiple targets#805
Console: process multiple targets#805webwarrior-ws wants to merge 3 commits intofsprojects:masterfrom
Conversation
All supplied targets are processed (instead of only the last one, as it was before), but only if the --file-type is given or inferred type is the same for all targets. Otherwise there will be an error. Fixes fsprojects#802
b331b96 to
5c6274d
Compare
Instead of whole Console project. For simplicity.
When doing lint in testReleaseBinariesInDotNet8Container job. * Job was already installing specific image that only has .NET8 (not newer, not older). * Commit a3f6216 (the one that introduced this job) was wrong anyway because --framework flag is for dotnet run, doesn't work for dotnet tools.
5c6274d to
ee14b6d
Compare
|
One last thing to test here before I merge: make sure inline-source linting didn't get broken. Now, how to test this? I'm actually suspicious that it might be broken already, take a look at issue 801 and you let me know what you think (it also fails for FailWithBadUsage, in case 801 is a real false negative of FL87 rule). |
This is what I get: Not sure what is the expected output. |
|
Read issue 801 again, it is about FL87 rule. Analyze if that is truly a false negative (with a unit test?); if it is then we can create a PR to fix 801, but then we need another way to test inline source, try failwith String.Empty, which I think should fire https://fsprojects.github.io/FSharpLint/how-tos/rules/FL0072.html , but you can confirm it, again, by looking at its unit tests. |
|
All in all, I'm trying to find the easiest way to test inline source with a source code fragment that takes only one line (like the above examples) but that creates at least one rule violation. |
So inline-source linting does work. |
|
So inline-source linting always requires wrapping the source with quotes? |
Yes, otherwise it will treat it as separate arguments. |
Master branch too? |
In master only last non-named argument is considered. So e.g. in case of |
All supplied targets are processed (instead of only the last one, as it was before), but only if the --file-type is given or inferred type is the same for all targets. Otherwise there will be an error.
Fixes #802