Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
natlint
Natlint is an open-source tool for linting Solidity natspec comments.
Installation
You can install Natlint using Cargo:
Usage
First initialize a configuration file, if you don't have one:
This will create a natlint.toml file in the current directory with the default settings. See the commented config file for more details on the available options.
Then run Natlint with one or more Globs as arguments. For example, to lint all files inside contracts directory, you can do:
Run Natlint with the -h option to see all available options.
Configuration
You can use a natlint.toml file to configure Natlint. You can also specify the path to the configuration file with the --config option.
To generate a default configuration file, run:
Inline Configuration
You can use comments in the source code to configure Natlint in a given line.
// natlint-disable-next-line
function foo() public {
// ...
}
/// @notice This function does something important
// natlint-disable-next-line RuleName1,RuleName2
function bar() public {
// ...
}