Skip to content

Commit

Permalink
fix: linter
Browse files Browse the repository at this point in the history
  • Loading branch information
dbale-altoros committed Mar 11, 2024
1 parent 8dd676e commit 538e47b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions conf/rulesets/solhint-all.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
{
Expand Down
2 changes: 1 addition & 1 deletion docs/rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion lib/rules/gas-consumption/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 538e47b

Please sign in to comment.