Skip to content

Commit

Permalink
feat: success message (#21)
Browse files Browse the repository at this point in the history
# 🤖 Linear

Closes BES-224
  • Loading branch information
gas1cent authored Jan 17, 2024
1 parent f66c5b0 commit d5c64f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
5 changes: 5 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit d5c64f7

Please sign in to comment.