Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Solium is a Security & Style focused Linter for your Solidity Smart Contracts.
It provides powerful rules for writing cleaner, more secure contracts, automatic code formatting and simple-to-understand re-distributable configuration files.
npm install -g solium
solium -V
In any of the supported Linux distros:
sudo snap install solium --edge
(Note that this is an experimental and unstable release, at the moment)
In the root directory of your DApp, run the following:
solium --init
This creates 2 files for you:
.soliumignore
- contains names of files and directories to ignore while linting.soliumrc.json
- contains configuration that tells Solium how to lint your project. You should modify this file to configure rules, plugins and sharable configs..soliumrc.json
looks something like:
{
"extends": "solium:all",
"plugins": ["security"],
"rules": {
"quotes": ["error", "double"],
"indentation": ["error", 4],
"arg-overflow": ["warning", 3]
}
}
solium -f ./contracts/foobar.sol
solium -d contracts/
Or over the entire project using solium -d .
.
Solium lints all the files inside your project with .sol
extension.
--watch
to enable Hot loading (Hot swapping).--fix
flag to apply automatic formattingsolium --help
to get the full list of options you can supply.If you're currently using Solium v0
, we highly recommend you to migrate to v1. v1 is backward compatible and provides you with much greater flexibility to configure rules, powerful security rules and auto code formatting among other features.
FAQs
Linter to identify and fix Style & Security issues in Solidity
The npm package solium receives a total of 1,298 weekly downloads. As such, solium popularity was classified as popular.
We found that solium demonstrated a not healthy version release cadence and project activity because the last version was released 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
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.