After releasing a new version of your code or a new feature, your code might have include guard problems or inconsistent style guides. This can lead to issues such as “redundant includes” or “redundant code” which can cause Backward Inclusion Warning (BIW) in the event of the next commit. To avoid such issues, you can use the “after free” plugin which will run after each commit. By doing this, it will detect and fix any potential problems that might arise due to the code changes. To install this plugin, use the command below in your terminal.
If you are using version control system other than GitHub, you can follow these steps to install the plugin. Open your favorite code editor, paste the command below and hit enter. echo '[[ plugin/afterfree ]]' >> ~/.vim/pack/afterfree.vim
Steps to install the plugin
# 1. Install the plugin using the command below
[[ plugin/afterfree ]] # 2. Add the following configuration to your vimrc file
Timeline
Published on: 08/25/2022 20:15:00 UTC
Last modified on: 09/20/2022 20:35:00 UTC
References
- https://github.com/vim/vim/commit/d6c67629ed05aae436164eec474832daf8ba7420
- https://huntr.dev/bounties/53f53d9a-ba8a-4985-b7ba-23efbe6833be
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XWOJOA7PZZAMBI5GFTL6PWHXMWSDLUXL/
- https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2022-2982