You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can read a more detailed [comparison between Slippy and Solhint](/docs/slippy-vs-solhint.md), but here's a summary:
29
+
You can read a more detailed [comparison between Slippy and Solhint](https://fvictorio.github.io/slippy/guides/slippy-vs-solhint), but here's a summary:
28
30
29
31
- A single, flexible configuration that lets you easily enable or disable rules for specific parts of your codebase
30
-
- A unified [`naming-convention`](/docs/rules/naming-convention.md) rule
31
-
- A more accurate [`no-unused-vars`](/docs/rules/no-unused-vars.md) rule
32
+
- A unified [`naming-convention`](https://fvictorio.github.io/slippy/rules/naming-convention) rule
33
+
- A more accurate [`no-unused-vars`](https://fvictorio.github.io/slippy/rules/no-unused-vars) rule
32
34
- Unused comment directives like `// slippy-disable-line` are reported
33
35
- No formatting rules
34
36
- Semantic versioning
@@ -46,40 +48,8 @@ module.exports = {
46
48
};
47
49
```
48
50
49
-
For more details on configuring Slippy, including advanced features like cascading configurations, file ignores, and comment directives, see the [configuration documentation](/docs/config.md).
51
+
For more details on configuring Slippy, including advanced features like cascading configurations, file ignores, and comment directives, see the [configuration documentation](https://fvictorio.github.io/guides/configuration).
50
52
51
53
# Rules
52
54
53
-
_Rules that have a 🔧 next to them can be automatically fixed by running Slippy with the `--fix` flag._
54
-
55
-
-[`compatible-pragma`](/docs/rules/compatible-pragma.md): checks that the minimum supported pragma version is compatible with the features used in the file.
56
-
-[`curly`](/docs/rules/curly.md): enforces the use of curly braces for all control structures.
57
-
-[`explicit-types`](/docs/rules/explicit-types.md): enforces or forbids the use of aliases like `uint` instead of `uint256`. 🔧
58
-
-[`id-denylist`](/docs/rules/id-denylist.md): allows you to specify a list of forbidden identifiers.
59
-
-[`imports-on-top`](/docs/rules/imports-on-top.md): enforces that all import statements are at the top of the file.
60
-
-[`max-state-vars`](/docs/rules/max-state-vars.md): limits the number of state variables in a contract.
61
-
-[`named-return-params`](/docs/rules/named-return-params.md): enforces that functions with multiple return parameters use named return parameters.
62
-
-[`naming-convention`](/docs/rules/naming-convention.md): enforces a naming convention across the codebase.
63
-
-[`no-console`](/docs/rules/no-console.md): forbids the use of `console.log` and the import of `console.sol`.
64
-
-[`no-default-visibility`](/docs/rules/no-default-visibility.md): forbids the use of default visibility for state variables. 🔧
65
-
-[`no-duplicate-imports`](/docs/rules/no-duplicate-imports.md): forbids importing the same file multiple times.
66
-
-[`no-empty-blocks`](/docs/rules/no-empty-blocks.md): forbids blocks without statements.
67
-
-[`no-global-imports`](/docs/rules/no-global-imports.md): forbids global imports like `import "./foo.sol"`.
68
-
-[`no-hardcoded-gas`](/docs/rules/no-hardcoded-gas.md): disallows hardcoded gas values in call options.
69
-
-[`no-restricted-syntax`](/docs/rules/no-restricted-syntax.md): disallows syntax patterns specified with [Slang queries](https://nomicfoundation.github.io/slang/latest/user-guide/06-query-language/01-query-syntax/).
70
-
-[`no-send`](/docs/rules/no-send.md): forbids the use of `send` and `transfer` for sending value, in favor of using `call` with value.
71
-
-[`no-tx-origin`](/docs/rules/no-tx-origin.md): forbids the use of `tx.origin`.
72
-
-[`no-unchecked-calls`](/docs/rules/no-unchecked-calls.md): disallows low-level calls like `call`, `staticcall`, and `delegatecall` that don't use their return values.
73
-
-[`no-uninitialized-immutable-references`](/docs/rules/no-uninitialized-immutable-references.md): forbids using immutable references before they are initialized.
74
-
-[`no-unnecessary-boolean-compare`](/docs/rules/no-unnecessary-boolean-compare.md): forbids unnecessary comparisons to boolean literals.
75
-
-[`no-unnecessary-else](/docs/rules/no-unnecessary-else.md): disallows `else` blocks following `if` statements that end with a control-flow-terminating statement (`return`, `break`, etc.)
76
-
-[`no-unused-vars`](/docs/rules/no-unused-vars.md): detects unused variables, imports and functions.
77
-
-[`one-contract-per-file`](/docs/rules/one-contract-per-file.md): enforces that a file contains at most one contract/interface/library definition.
78
-
-[`private-vars`](/docs/rules/private-vars.md): enforces that all state variables are private.
79
-
-[`require-revert-reason`](/docs/rules/require-revert-reason.md): enforces that all reverts have a reason.
80
-
-[`sort-imports`](/docs/rules/sort-imports.md): enforces a specific order for import statements.
81
-
-[`sort-members`](/docs/rules/sort-members.md): enforces a specific order for top-level elements and contract/interface/library members.
82
-
-[`sort-modifiers`](/docs/rules/sort-modifiers.md): enforces a specific order for modifiers. 🔧
83
-
-[`yul-prefer-iszero`](/docs/rules/yul-prefer-iszero.md): recommends using `iszero` instead of `eq` when comparing to the `0` literal in Yul code.
84
-
85
-
Don't see a rule you need? [Open an issue](https://github.com/fvictorio/slippy/issues/new).
55
+
You can find the full list of available rules in the [rules reference documentation](https://fvictorio.github.io/slippy/reference/rules).
|`npm run dev`| Starts local dev server at `localhost:4321`|
42
+
|`npm run build`| Build your production site to `./dist/`|
43
+
|`npm run preview`| Preview your build locally, before deploying |
44
+
|`npm run astro ...`| Run CLI commands like `astro add`, `astro check`|
45
+
|`npm run astro -- --help`| Get help using the Astro CLI |
46
+
47
+
## 👀 Want to learn more?
48
+
49
+
Check out [Starlight’s docs](https://starlight.astro.build/), read [the Astro documentation](https://docs.astro.build), or jump into the [Astro Discord server](https://astro.build/chat).
0 commit comments