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
7d9eac49
You need to sign in or sign up before continuing.
Unverified
Commit
7d9eac49
authored
Jan 17, 2022
by
Matheus Felipe
Browse files
Change sections -> columns in error message
parent
e0468d13
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/validate/format.py
View file @
7d9eac49
...
@@ -234,7 +234,7 @@ def check_file_format(lines: List[str]) -> List[str]:
...
@@ -234,7 +234,7 @@ def check_file_format(lines: List[str]) -> List[str]:
num_in_category
+=
1
num_in_category
+=
1
segments
=
line_content
.
split
(
'|'
)[
1
:
-
1
]
segments
=
line_content
.
split
(
'|'
)[
1
:
-
1
]
if
len
(
segments
)
<
num_segments
:
if
len
(
segments
)
<
num_segments
:
err_msg
=
error_message
(
line_num
,
f
'entry does not have all the required
sectio
ns (have
{
len
(
segments
)
}
, need
{
num_segments
}
)'
)
err_msg
=
error_message
(
line_num
,
f
'entry does not have all the required
colum
ns (have
{
len
(
segments
)
}
, need
{
num_segments
}
)'
)
err_msgs
.
append
(
err_msg
)
err_msgs
.
append
(
err_msg
)
continue
continue
...
...
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