File tree 2 files changed +11
-10
lines changed
2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @defi-wonderland/natspec-smells" ,
3
- "version" : " 1.1.4 " ,
3
+ "version" : " 1.1.5 " ,
4
4
"description" : " Automatically identify missing or incomplete natspec" ,
5
5
"homepage" : " https://github.com/defi-wonderland/natspec-smells#readme" ,
6
6
"repository" : {
Original file line number Diff line number Diff line change @@ -22,16 +22,17 @@ import { Validator } from './validator';
22
22
23
23
if ( ! warnings . length ) {
24
24
console . warn ( 'No issues found' ) ;
25
- return ;
26
- }
27
-
28
- warnings . forEach ( ( { location, messages } ) => {
29
- console . warn ( location ) ;
30
- messages . forEach ( ( message ) => {
31
- console . warn ( ` ${ message } ` ) ;
25
+ return process . exit ( 0 ) ;
26
+ } else {
27
+ warnings . forEach ( ( { location, messages } ) => {
28
+ console . warn ( location ) ;
29
+ messages . forEach ( ( message ) => {
30
+ console . warn ( ` ${ message } ` ) ;
31
+ } ) ;
32
+ console . warn ( ) ;
32
33
} ) ;
33
- console . warn ( ) ;
34
- } ) ;
34
+ return process . exit ( 1 ) ;
35
+ }
35
36
} ) ( ) . catch ( console . error ) ;
36
37
37
38
function getArguments ( ) : Config {
You can’t perform that action at this time.
0 commit comments