Hello, I recently added a folder to my github repo to host my Javadocs alongside my library, and since then, the lift analysis finds a lot of javascript related issues with jquery in that folder. Since I don’t care about this folder, I created a .lift.toml file in the root of my repo with the following content:
# Sonatype Lift Configuration
# gitignore formatted string of files to ignore.
ignoreFiles = """
.github/
.mvn/
docs/
src/test/
"""
This was done following the documentation here Configuration Reference. However, I have since then run a couple of scans, and the docs folder, which is the main folder I want ignored, is not ignored.
My question is, is there something I am doing wrong? I know there is an alternative approach .lift/ignoreFiles dedicated for this, but I would prefer to have the main one I am trying to get working.
You are not doing anything wrong that I can see. I have tried to reproduce the issue. First we have a simple bug with shellcheck (https://github.com/TomMD/test/pull/3). Notice the bug is in the docs/ directory. Next we add a copy and paste of your .lift.toml file (https://github.com/TomMD/test/pull/4). In the second case I do not get the error messages posted.
Could you share a repository or even just a JobID? The job ID is the alpha numeric part of the URL in lift.sonatype.com results linked from github’s status bar.
Excellent, thanks. There seems to be some neglect around ignoring nested paths. For now you can ignore foo/** instead of foo but I am filing a ticket to get this handled properly. Thank you for continuing to raise the issues you experience, I really appreciate it.