Socket
Socket
Sign inDemoInstall

solhint

Package Overview
Dependencies
Maintainers
3
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

solhint - npm Package Compare versions

Comparing version 3.3.7 to 3.3.8

10

lib/rules/miscellaneous/quotes.js

@@ -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)) {

2

lib/rules/naming/func-name-mixedcase.js

@@ -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",

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