mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-26 16:36:29 +00:00
Fix no-assert code-smell regex.
This commit is contained in:
@@ -5,7 +5,7 @@ import os
|
||||
import re
|
||||
import sys
|
||||
|
||||
ASSERT_RE = re.compile(r'.*(?<![-:a-zA-Z#][ -])\bassert\b(?!:).*')
|
||||
ASSERT_RE = re.compile(r'^\s*assert[^a-z0-9_:]')
|
||||
|
||||
|
||||
def main():
|
||||
|
||||
Reference in New Issue
Block a user