diff --git a/package.json b/package.json index 41631d2..5127dd8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@defi-wonderland/natspec-smells", - "version": "1.0.1", + "version": "1.0.2", "description": "Automatically identify missing or incomplete natspec", "homepage": "https://github.com/defi-wonderland/natspec-smells#readme", "repository": { diff --git a/src/main.ts b/src/main.ts index df266a2..7dc256a 100644 --- a/src/main.ts +++ b/src/main.ts @@ -18,6 +18,11 @@ import { Validator } from './validator'; const processor = new Processor(validator); const warnings = await processor.processSources(sourceUnits); + if (!warnings.length) { + console.warn('No issues found'); + return; + } + warnings.forEach(({ location, messages }) => { console.warn(location); messages.forEach((message) => {