Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
devtools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
codeaster-fra
devtools
Commits
963cba3c
Commit
963cba3c
authored
2 months ago
by
Maximilien Siavelis
Browse files
Options
Downloads
Patches
Plain Diff
[#32808] add checks for obsolete sdj and getvectjev
parent
28847078
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/aslint/python/python_checkers.py
+5
-0
5 additions, 0 deletions
lib/aslint/python/python_checkers.py
lib/aslint/test/test_checkers.py
+13
-0
13 additions, 0 deletions
lib/aslint/test/test_checkers.py
with
18 additions
and
0 deletions
lib/aslint/python/python_checkers.py
+
5
−
0
View file @
963cba3c
...
...
@@ -196,6 +196,11 @@ class ObsoleteSdj(FileContentCat, TextMsg):
id
=
"
C4014
"
search
=
search_msg
(
r
"
(?P<main>\w+\.sdj(?:\.\w+)?)
"
,
ignore_case
=
False
)
class
ObsoleteGetvectjev
(
FileContentCat
,
TextMsg
):
"""
Obsolete use of getvectjev or getcolljev
"""
id
=
"
C4015
"
search
=
search_msg
(
r
"
(?P<main>(getvectjev|getcolljev))
"
,
ignore_case
=
False
)
class
ReformatSource
(
FilenameCat
,
COMM
.
ReformatPy
):
"""
Reformat Python source
"""
...
...
This diff is collapsed.
Click to expand it.
lib/aslint/test/test_checkers.py
+
13
−
0
View file @
963cba3c
...
...
@@ -663,5 +663,18 @@ class ReformatSource(FilenameCat, COMM.ReformatPy):
return
COMM
.
ReformatPy
.
search
(
self
,
fname
)
return
[]
class
ObsoleteSdj
(
FileContentCat
,
TextMsg
):
"""
Obsolete use of
'
.sdj.XXX
'"""
apply_to
=
COMM_EXT
id
=
"
C2023
"
search
=
search_msg
(
r
"
(?P<main>\w+\.sdj(?:\.\w+)?)
"
,
ignore_case
=
False
)
class
ObsoleteGetvectjev
(
FileContentCat
,
TextMsg
):
"""
Obsolete use of getvectjev or getcolljev
"""
apply_to
=
COMM_EXT
id
=
"
C2024
"
search
=
search_msg
(
r
"
(?P<main>(getvectjev|getcolljev))
"
,
ignore_case
=
False
)
CHECK_LIST
=
checkers_from_context
(
globals
(),
TextMsg
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment