-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SONARPY-2346 Remove usage of old ProjectLevelSymbolTable#from using V1 symbols #2199
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, it looks good to me. However, I had some questions during the review and left some nitpicks.
python-frontend/src/main/java/org/sonar/python/semantic/ProjectLevelSymbolTable.java
Outdated
Show resolved
Hide resolved
python-frontend/src/main/java/org/sonar/python/semantic/ProjectLevelSymbolTable.java
Show resolved
Hide resolved
python-frontend/src/test/java/org/sonar/python/semantic/ProjectLevelSymbolTableTest.java
Show resolved
Hide resolved
python-frontend/src/test/java/org/sonar/python/semantic/ProjectLevelSymbolTableTest.java
Outdated
Show resolved
Hide resolved
classASymbol.addSuperClass(new SymbolImpl("BaseException", "BaseException")); | ||
Map<String, Set<Descriptor>> globalDescriptors = Collections.singletonMap("mod1", | ||
Collections.singleton( | ||
new ClassDescriptor("A", "mod1.A", Collections.singleton("BaseException"), Set.of(), false, null, false, false, null, false))); | ||
FileInput tree = parse( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick: Could a ClassDescriptorBuilder
be used?
python-frontend/src/test/java/org/sonar/python/semantic/ProjectLevelSymbolTableTest.java
Outdated
Show resolved
Hide resolved
ecff6b5
to
ad67906
Compare
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
SONARPY-2394