Skip to content

Commit

Permalink
lint, add file checkisng, add to blacklist
Browse files Browse the repository at this point in the history
  • Loading branch information
DZGoldman committed Apr 28, 2021
1 parent 27e71d9 commit 16b0413
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 91 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@


black_list_dirs = ["arb-bridge-eth/libraries", "arb-bridge-eth/interfaces"]
black_list_files = ["ProxySetter.md"]
black_list_files = [
"ProxySetter.md",
"TokenAddressHandler.md",
"INode.md",
"IRollup.md",
"IEthERC20Bridge.md",
]


def get_all_files(dir):
Expand Down Expand Up @@ -50,11 +56,13 @@ def remove_unwanted_docs():
os.system("rm " + _file)
else:
# remove "empty" (header-only) files
if not os.path.exists(_file):
continue
file_data = open(_file, "r")
lines = len([line for line in file_data if len(line.strip()) > 0])
file_data.close()
if lines <= 3:
os.system("rm " + _file)
file_data.close()


def run():
Expand Down
39 changes: 0 additions & 39 deletions docs/sol_contract_docs/md_docs/arb-bridge-eth/rollup/INode.md

This file was deleted.

19 changes: 0 additions & 19 deletions docs/sol_contract_docs/md_docs/arb-bridge-eth/rollup/IRollup.md

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"demo:deploy": "./scripts/arb_deploy.py local",
"prod:initialize": "yarn workspace tools prod:initialize",
"deploy:validators": "./scripts/arb_deploy.py",
"sol_docs:generate": "python docs/sol_contract_docs/generate.py"
"sol_docs:generate": "python docs/sol_contract_docs/generate_docs.py"
},
"engines": {
"node": ">= 8.0.0 < 13.0.0",
Expand Down

0 comments on commit 16b0413

Please sign in to comment.