MobSF / mobsfscan

mobsfscan is a static analysis tool that can find insecure code patterns in your Android and iOS source code. Supports Java, Kotlin, Swift, and Objective C Code. mobsfscan uses MobSF static analysis rules and is powered by semgrep and libsast pattern matcher.
GNU Lesser General Public License v3.0
607 stars 97 forks source link

Restrict output width? #92

Closed below closed 2 weeks ago

below commented 2 months ago

I am running mobsfscan in a gitlab pipeline, but for some reason, mobsfscan assumes a very wide terminal.

I would like to restrict the width of the output.

stty fails, because input is not a terminal.

Are there ways inside or outside of mobsfscan to restrict the output width?

ajinabraham commented 2 months ago

The width is assumed based on the internal libs and the length of the files/findings.

You could try using a different output format in this case.

 --json                set output format as JSON
  --sarif               set output format as SARIF 2.1.0
  --sonarqube           set output format compatible with SonarQube
  --html                set output format as HTML