fix: use HasSuffix
check for generating scope
#660
Merged
HasSuffix
check for generating scope
#660