TQRG / secomlint

💯🍵⚙️ Linter for security commit messages.
https://tqrg.github.io/secomlint/
2 stars 1 forks source link

Issue reading from CSV files #3

Open tdunlap607 opened 1 year ago

tdunlap607 commented 1 year ago

I'm trying to run secomlint on a CSV file with commit messages.

The CSV file (sample.csv) is in the following format:

message
"Fix bug CVE-123-4567"
"Fix bug CVE-123-7654"

From the command line I execute the following:

secomlint --from-file sample.csv

I receive the following error:

Traceback (most recent call last):
  File ".venv/bin/secomlint", line 8, in <module>
    sys.exit(main())
  File ".venv/lib/python3.8/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File ".venv/lib/python3.8/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File ".venv/lib/python3.8/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File ".venv/lib/python3.8/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File ".venv/lib/python3.8/site-packages/secomlint/__main__.py", line 92, in main
    entities += section.entities
TypeError: 'NoneType' object is not iterable

Any insight to resolve this issue would be highly appreciated :) Thanks!

sofiaoreis commented 1 year ago

Hey, sorry for the delay. Could you let me know if you managed to fix this?