Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wwwanlingxiao
public-apis
Commits
9f0174fd
"...src/views/tool/git@ustchcs.com:gujinli1118/RuoYi-Vue.git" did not exist on "ceefa20aa20efdd50a7bfc9a2b4d41ff25c4c544"
Unverified
Commit
9f0174fd
authored
Jan 17, 2022
by
Matheus Felipe
Browse files
Fix error message of max description length
parent
22e22b3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/validate/format.py
View file @
9f0174fd
...
@@ -120,7 +120,7 @@ def check_description(line_num: int, description: str) -> List[str]:
...
@@ -120,7 +120,7 @@ def check_description(line_num: int, description: str) -> List[str]:
desc_length
=
len
(
description
)
desc_length
=
len
(
description
)
if
desc_length
>
max_description_length
:
if
desc_length
>
max_description_length
:
err_msg
=
error_message
(
line_num
,
f
'description should not exceed
100
characters (currently
{
desc_length
}
)'
)
err_msg
=
error_message
(
line_num
,
f
'description should not exceed
{
max_description_length
}
characters (currently
{
desc_length
}
)'
)
err_msgs
.
append
(
err_msg
)
err_msgs
.
append
(
err_msg
)
return
err_msgs
return
err_msgs
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment