Skip to content

Commit

Permalink
Change: Add script_add_preference() as exclusion to overlong line plu…
Browse files Browse the repository at this point in the history
…gin.
  • Loading branch information
cfi-gb authored and NiklasHargarter committed May 8, 2024
1 parent 9895b7b commit c10f1f3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/plugins/test_overlong_description_lines.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ def test_ok(self):
'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");\n'
' script_xref(name:"xref as well", value:"xxxxxxxxxxxxxx'
'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");\n'
' script_add_preference(name:"script_add_preference as well '
'xxxxxxxxxxxxxxxxxxxxxxx", type:"checkbox", value:"no", id:1);\n'
' script_add_preference(type:"password", value:"", id:2, name:"'
'Another variant of script_add_preference xxxxxxxxxxxxxxxxxxxx");\n'
" exit(0);\n"
"}\n"
"ignored line that is not part of description"
Expand Down
1 change: 1 addition & 0 deletions troubadix/plugins/overlong_description_lines.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
IGNORE_TAGS = [
"script_name",
"script_xref",
"script_add_preference",
]


Expand Down

0 comments on commit c10f1f3

Please sign in to comment.