Hi all
I have configured my own build system as shown below:
{
"shell_cmd": "splint \"d:\\bin\\splint\\settings.lnt\" \"${file}\"",
"file_regex": "^(.*):([0-9]*):([0-9]*): (.*)",
"working_dir": "${file_path}",
"selector": "source.c",
}
when executed, it works properly and also nicely displays the error messages, but there are two issues:
a) it always prints the environment variables when executed. Example:
...
D:\tmp\firmware\src\main.c:98:2: Warning 527: Unreachable code at token 'return'
:0:0: Note 900: Successful completion, 14 messages produced
[Finished in 0.0s with exit code 14]
[shell_cmd: splint -u -v "d:\bin\splint\settings.lnt" "D:\tmp\firmware\src\main.c"]
[dir: D:\tmp\firmware\src]
[path: C:\ProgramData\Oracle\Java....]
why does it show what command, directory and path it used? I don’t want it to display these values.
b) it seems to execute the command not only for the currently open file, but for all files in my project. When I run it for main.c, it is also run for all other *.c files, even though I didn’t configure the build system to do so, did I?