Comparing version 0.1.2 to 0.1.3
@@ -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, |
@@ -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. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38473
26
959
118