add a simple case here but I'm afraid that it is too simple. https://focs.ji.sjtu.edu.cn/git/JOJ/JOJ3-examples/src/branch/healthcheck/forbiddenfile
can anyone think about some more tricky cases.
seems easier than i think @bomingzh plz check it. i don't sure is this function correctly implemented in package.
may need some time for this feature. A little busy recently.
The .gitignore file may appear in sub-dirs, you also need to check them
Change to locallist and make it work as a gitignore file?
what if the gitignore is nonsense? Not every course provide unchangeable gitignore
Also, add an option to healthcheck parser for stdout and stderr as we need to put them to
/tmp/stdoutand/tmp/stderr.
not sure what did you mean, can you explain more detailedly?
So what's the default pattern if no gitignore? Warn student add a gitignore or set root as default value?
should fix issue in https://focs.ji.sjtu.edu.cn/git/engr151-24fa/hteam-05
❯ ../JOJ3/build/healthcheck -root=.
### Forbidden File Check Failed:
The following forbidden files were found:….gitignore file
also the healthcheck (or repo-healthcheck binary)
Note: to avoid the influence of stdout and stderr generated by go-judge, we need to put them to /tmp/stdout and /tmp/stderr when running repo…