File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
sonar-python-plugin/src/main/java/org/sonar/plugins/python Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 22
22
import com .sonar .sslr .api .AstNode ;
23
23
import com .sonar .sslr .api .RecognitionException ;
24
24
import java .io .File ;
25
+ import java .io .IOException ;
25
26
import java .util .ArrayDeque ;
26
27
import java .util .ArrayList ;
27
28
import java .util .Collections ;
@@ -98,12 +99,12 @@ protected String name() {
98
99
}
99
100
100
101
@ Override
101
- protected void scanFile (PythonInputFile inputFile ) {
102
+ protected void scanFile (PythonInputFile inputFile ) throws IOException {
102
103
PythonFile pythonFile = SonarQubePythonFile .create (inputFile .wrappedFile ());
103
104
PythonVisitorContext visitorContext ;
104
105
InputFile .Type fileType = inputFile .wrappedFile ().type ();
105
106
try {
106
- AstNode astNode = parser .parse (pythonFile . content ());
107
+ AstNode astNode = parser .parse (inputFile . contents ());
107
108
PythonTreeMaker treeMaker = getTreeMaker (inputFile );
108
109
FileInput parse = treeMaker .fileInput (astNode );
109
110
visitorContext = new PythonVisitorContext (parse ,
You can’t perform that action at this time.
0 commit comments