Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
C language prettier that conforms to 42 norm v3. I know you are already a good human norm. It's just for convenience.
Requires Python3.8+ (3.9, 3.10, 3.11, 3.12)
pip3 install c-formatter-42
pip3 install --user c-formatter-42 # If you don't have root privileges
git clone https://github.com/cacharle/c_formatter_42
cd c_formatter_42
pip3 install -e .
c_formatter_42 < file.c
python3 -m c_formatter_42 < file.c # If you get 'command not found' with the previous one
c_formatter_42 --help
usage: c_formatter_42 [-h] [-c] [FILE [FILE ...]]
Format C source according to the norm
positional arguments:
FILE File to format inplace, if no file is provided read STDIN
optional arguments:
-h, --help show this help message and exit
-c, --confirm Ask confirmation before overwriting any file
Check out the c_formatter_42.vim
plugin. This plugin automatically installs the c_formatter_42
package using pip.
c_formatter_42
keyhr.42-c-format
extensionkeyhr.42-c-format
as the default formatter for C files in .vscode/settings.json
{
"[c]": {
"editor.defaultFormatter": "keyhr.42-c-format"
}
}
Feel free to report issues or contribute. :)
pip3 install tox
tox
tox -e py311 # for a specific python version
pip3 install bumpversion
bumpversion [major|minor|patch]
git push
git push --tags
Go to: https://github.com/dawnbeen/c_formatter_42/tags and click on the tag you just created.
Then click on Create release from tag
, the pipeline will build and deploy that version for you.
FAQs
formatting tool complient with 42 school's norm
We found that c-formatter-42 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.