Skip to content

Fixed red box around at-signs. Automated the counting of issues.#6

Open
tqtsar wants to merge 1 commit into
spearbit-audits:mainfrom
tqtsar:main
Open

Fixed red box around at-signs. Automated the counting of issues.#6
tqtsar wants to merge 1 commit into
spearbit-audits:mainfrom
tqtsar:main

Conversation

@tqtsar

@tqtsar tqtsar commented Mar 6, 2022

Copy link
Copy Markdown

No description provided.

Comment thread main.tex
\makeatletter
\AtBeginEnvironment{minted}{\dontdofcolorbox}
\def\dontdofcolorbox{\renewcommand\fcolorbox[4][]{##4}}
\makeatother

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Comment thread severity_counts.sh
@@ -0,0 +1,6 @@
CRITICAL_RISK_COUNT=1

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread generate.sh
sed -i "s/HIGH_RISK_COUNT/$HIGH_RISK_COUNT/g" summary.tex
sed -i "s/MEDIUM_RISK_COUNT/$MEDIUM_RISK_COUNT/g" summary.tex
sed -i "s/LOW_RISK_COUNT/$LOW_RISK_COUNT/g" summary.tex
sed -i "s/GAS_INFO_COUNT/$(($GAS_OPTIMIZATION_COUNT+$INFORMATIONAL_COUNT))/g" summary.tex

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. BTW, the script in the CI is slightly different, because we are re-using some github actions / containers: https://github.com/spearbit-audits/report-template/blob/main/.github/workflows/build.yml

So will need to make changes there as well.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll take a look. I'm not too familiar with GH actions yet, but I'll catch up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants