Skip to content

Commit

Permalink
docs: improved readme
Browse files Browse the repository at this point in the history
  • Loading branch information
0xGorilla committed Jan 13, 2024
1 parent 5d18643 commit 9616da1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
22 changes: 20 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,27 @@

# Natspec Smells

Just like code, documentation can smell, too. `natspec-smells` aims to help automatically identify missing or incomplete natspec.
Just like code, documentation can smell too.
Natspec Smells aims to help automatically identify missing or incomplete natspec.

## Usage
What can it do?

- Verifies natspec for: constructors, variables, functions, ~~structs~~, errors, events, modifiers
- Finds misspelled or missing @param or @return's.
- Lets you enforce the need for @inheritdoc in public/external functions.
- Can integrate on your daily workflow, or just as a final check.

## No setup usage

Want to quickly check if your natspec smells?

Just run:

```
npx @defi-wonderland/natspec-smells --include src --exclude test --exclude scripts
```

## Recommended setup

1. Install the package:

Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { Validator } from './validator';

const validator = new Validator(config);
const processor = new Processor(validator);
const warnings = processor.processSources(sourceUnits);
const warnings = await processor.processSources(sourceUnits);

warnings.forEach(({ location, messages }) => {
console.warn(location);
Expand Down

0 comments on commit 9616da1

Please sign in to comment.