Comparing version 1.1.4 to 1.1.5
@@ -127,3 +127,2 @@ | ||
} | ||
} | ||
@@ -130,0 +129,0 @@ |
@@ -27,3 +27,3 @@ const CommentDirectiveParser = require('./comment-directive-parser'); | ||
if (this.config[ruleId] !== false && this.commentDirectiveParser.isRuleEnabled(line, ruleId)) { | ||
this.addReport(line, column, configSeverity || defaultSeverity, message, ruleId); | ||
this.addReport(line, column + 1, configSeverity || defaultSeverity, message, ruleId); | ||
} | ||
@@ -30,0 +30,0 @@ } |
@@ -63,3 +63,3 @@ const BaseChecker = require('./../base-checker'); | ||
const firstChild = this._firstChild(); | ||
return firstChild && typeOf(firstChild) === 'stateVariableDeclaration'; | ||
return typeOf(firstChild) === 'stateVariableDeclaration'; | ||
} | ||
@@ -66,0 +66,0 @@ |
@@ -10,3 +10,3 @@ const security = require('./security/index'); | ||
module.exports = function checkers(reporter, configVals={}) { | ||
module.exports = function checkers(reporter, configVals) { | ||
const config = configObject.from(configVals); | ||
@@ -13,0 +13,0 @@ |
{ | ||
"name": "solhint", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"description": "Solidity Code Linter", | ||
@@ -5,0 +5,0 @@ "main": "solhint.js", |
@@ -32,3 +32,3 @@ ## Solhint Project | ||
-V, --version output the version number | ||
-f, --formatter [name] Report formatter name | ||
-f, --formatter [name] Report formatter name (stylish, table, tap, unix)' | ||
-h, --help output usage information | ||
@@ -151,7 +151,2 @@ | ||
| **statement-indent** | Statement indentation is incorrect. | | ||
| **max-line-length** | Line length must be no more than 120 but current length is 121. | | ||
| **payable-fallback** | When fallback is not payable you will not be able to receive ethers | | ||
| **no-empty-blocks** | Code contains empty block | | ||
| **no-unused-vars** | Variable "name" is unused | | ||
| **function-max-lines** | Function body contains "count" lines but allowed no more than "maxLines" lines | | ||
| **space-after-comma** | Comma must be separated from next element by space | | ||
@@ -158,0 +153,0 @@ | **no-spaces-before-semicolon**| Semicolon must not have spaces before | |
@@ -12,7 +12,7 @@ #!/usr/bin/env node | ||
program | ||
.version('1.1.4'); | ||
.version('1.1.5'); | ||
program | ||
.usage('[options] <file> [...other_files]') | ||
.option('-f, --formatter [name]', 'report formatter name') | ||
.option('-f, --formatter [name]', 'report formatter name (stylish, table, tap, unix)') | ||
.description('Linter for Solidity programming language') | ||
@@ -19,0 +19,0 @@ .action(execMainAction); |
Sorry, the diff of this file is not supported yet
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
4093429
168
20439
171