diff --git a/conf/rulesets/solhint-all.js b/conf/rulesets/solhint-all.js index 9474667a..d3548aa6 100644 --- a/conf/rulesets/solhint-all.js +++ b/conf/rulesets/solhint-all.js @@ -38,7 +38,7 @@ module.exports = Object.freeze({ 'const-name-snakecase': 'warn', 'contract-name-camelcase': 'warn', 'event-name-camelcase': 'warn', - 'foundry-test-functions': ['off', ['setUp']], + 'foundry-test-functions': ['warn', ['setUp']], 'func-name-mixedcase': 'warn', 'func-named-parameters': ['warn', 4], 'func-param-name-mixedcase': 'warn', @@ -49,7 +49,7 @@ module.exports = Object.freeze({ }, ], 'modifier-name-mixedcase': 'warn', - 'named-parameters-mapping': 'off', + 'named-parameters-mapping': 'warn', 'private-vars-leading-underscore': [ 'warn', { diff --git a/docs/rules.md b/docs/rules.md index cbb834e4..2506059c 100644 --- a/docs/rules.md +++ b/docs/rules.md @@ -35,8 +35,8 @@ title: "Rule Index of Solhint" | [gas-multitoken1155](./rules/gas-consumption/gas-multitoken1155.md) | ERC1155 is a cheaper non-fungible token than ERC721 | | | | [gas-named-return-values](./rules/gas-consumption/gas-named-return-values.md) | Enforce the return values of a function to be named | | | | [gas-small-strings](./rules/gas-consumption/gas-small-strings.md) | Keep strings smaller than 32 bytes | | | +| [gas-strict-inequalities](./rules/gas-consumption/gas-strict-inequalities.md) | Suggest Strict Inequalities over non Strict ones | | | | [gas-struct-packing](./rules/gas-consumption/gas-struct-packing.md) | Suggest to re-arrange struct packing order when it is inefficient | | | -| [gas-strict-inequalities](./rules/gas-consumption/gas-strict-inequalities.md) | Suggest Strict Inequalities over non Strict ones | | | ## Miscellaneous diff --git a/lib/rules/gas-consumption/index.js b/lib/rules/gas-consumption/index.js index fcb47a36..d29e54b0 100644 --- a/lib/rules/gas-consumption/index.js +++ b/lib/rules/gas-consumption/index.js @@ -8,7 +8,6 @@ const GasStrictInequalities = require('./gas-strict-inequalities') const GasNamedReturnValuesChecker = require('./gas-named-return-values') const GasCustomErrorsChecker = require('./gas-custom-errors') - module.exports = function checkers(reporter, config) { return [ new GasMultitoken1155(reporter, config),