Socket
Socket
Sign inDemoInstall

solium

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

solium - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

lib/rules/operator-whitespace.js

7

config/solium.json

@@ -18,2 +18,9 @@ {

"operator-whitespace": {
"enabled": true,
"recommended": true,
"type": "error",
"description": "Ensure that operators are surrounded by a single space on either side"
},
"lbrace": {

@@ -20,0 +27,0 @@ "enabled": true,

11

lib/cli.js

@@ -124,16 +124,13 @@ /**

if (cli.file) {
lint (userConfig, cli.file);
} else if (cli.hot) {
lint (userConfig, cli.file);
if (cli.hot) {
var spy = fs.watch (CWD);
lint (userConfig); //initial lint
spy.on ('change', function () {
lint (userConfig); //lint on subsequent changes (hot)
lint (userConfig, cli.file); //lint on subsequent changes (hot)
console.log (Array (50).join ('X') + '\n');
});
} else {
lint (userConfig);
}

@@ -140,0 +137,0 @@

@@ -51,2 +51,22 @@ /**

return sourceCodeText;
},
getNextChar: function (node) {
return this.text [node.end];
},
getPrevChar: function (node) {
return this.text [node.start - 1];
},
getNextChars: function (node, charCount) {
return this.text.slice (
node.end, node.end + charCount
);
},
getPrevChars: function (node, charCount) {
return this.text.slice (
node.start - charCount, node.start
);
}

@@ -53,0 +73,0 @@

{
"name": "solium",
"version": "0.1.2",
"version": "0.1.3",
"description": "A flexible, stand-alone linter for Ethereum Solidity",

@@ -5,0 +5,0 @@ "main": "./lib/solium.js",

@@ -37,3 +37,3 @@ # Solium

1. use ```solium --hot``` to enable Hot loading (Hot swapping). This currently works only over the full project.
1. use ```solium --hot``` to enable Hot loading (Hot swapping).

@@ -116,1 +116,4 @@ #Plugging in your custom rules

For a list of all available rules, see [solium.json](https://github.com/duaraghav8/Solium/blob/master/config/solium.json).
#Contributing
Please see the [Developer Guide](https://github.com/duaraghav8/Solium/blob/master/docs/DEVELOPER.md) to understand how to contribute rules to this repository.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc