By: Carl Farterson (@carlfarterson)
Script to parse through smart contract directories to return a rating of the natspec documentation
- Each contract should have
@title
,@author
- All functions & contracts should have
@notice
- One
@param
per parameters in a function - One
@return
per return argument in a function
- Python 3.5+ and pip required
- Clone directory to your local computer
cd natspec-crawler
pip install -r Requirements.txt
python main.py {contracts directory path}
- For example,
python3 main.py /home/carl/Documents/some-repo/contracts
- For example,
- Effectively score usage of
@inheritdoc
(currently inheritance checks return N/A) - Interfaces - determine scoring
- Add
@dev
into scoring - Properly score .sol file with multiple contracts/interfaces