Comparing version 3.3.7 to 3.3.8
@@ -74,12 +74,2 @@ const BaseChecker = require('../base-checker') | ||
ImportDirective(node) { | ||
const token = this.tokens.find( | ||
token => token.loc.start.line === node.loc.start.line && token.value.includes(node.path) | ||
) | ||
if (token) { | ||
this.validateQuotes(token) | ||
} | ||
} | ||
validateQuotes(node) { | ||
@@ -86,0 +76,0 @@ if (node.value.startsWith(this.incorrectQuote)) { |
@@ -9,3 +9,3 @@ const BaseChecker = require('./../base-checker') | ||
docs: { | ||
description: 'Function name must be in camelCase.', | ||
description: 'Function name must be in mixedCase.', | ||
category: 'Style Guide Rules' | ||
@@ -12,0 +12,0 @@ }, |
@@ -8,3 +8,3 @@ const BaseChecker = require('./../base-checker') | ||
docs: { | ||
description: `Avoid to make time-based decisions in your business logic.`, | ||
description: `Avoid making time-based decisions in your business logic.`, | ||
category: 'Security Rules' | ||
@@ -38,3 +38,3 @@ }, | ||
_warn(node) { | ||
this.warn(node, 'Avoid to make time-based decisions in your business logic') | ||
this.warn(node, 'Avoid making time-based decisions in your business logic') | ||
} | ||
@@ -41,0 +41,0 @@ } |
{ | ||
"name": "solhint", | ||
"version": "3.3.7", | ||
"version": "3.3.8", | ||
"description": "Solidity Code Linter", | ||
@@ -22,3 +22,2 @@ "main": "lib/index.js", | ||
"test": "mocha --recursive", | ||
"test-mutation": "stryker run", | ||
"lint": "eslint .", | ||
@@ -39,3 +38,3 @@ "docs": "node scripts/generate-rule-docs.js" | ||
"dependencies": { | ||
"@solidity-parser/parser": "^0.14.1", | ||
"@solidity-parser/parser": "^0.14.5", | ||
"ajv": "^6.6.1", | ||
@@ -56,5 +55,2 @@ "antlr4": "4.7.1", | ||
"devDependencies": { | ||
"@stryker-mutator/core": "^2.3.0", | ||
"@stryker-mutator/javascript-mutator": "^2.3.0", | ||
"@stryker-mutator/mocha-runner": "^2.3.0", | ||
"assert": "1.4.1", | ||
@@ -61,0 +57,0 @@ "coveralls": "^3.0.2", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
11
225599
6718
1