Closed milbrandt closed 4 years ago
Testing on Server of 3.0.0.302 failed:
2020-02-24T19:48:58.5685974Z INFO: [|"/i:e:_1\22.sonarqube\out.sonar\fs-analysis-input.xml"; 2020-02-24T19:48:58.5686617Z INFO: "/o:e:_1\22.sonarqube\out.sonar\fs-analysis-output.xml"|] 2020-02-24T19:49:01.4310139Z INFO: Lint Execution Failed System.ArgumentOutOfRangeException: Index and length must refer to a location within the string. (Parameter 'length') 2020-02-24T19:49:01.4310845Z INFO: at System.String.Substring(Int32 startIndex, Int32 length) 2020-02-24T19:49:01.4311129Z INFO: at FSharpLint.Framework.ParseFile.helper@137(FSharpLineTokenizer tokenizer, String line, FSharpTokenizerLexState tupledArg0, FSharpList
1 tupledArg1) 2020-02-24T19:49:01.4311376Z INFO: at FSharpLint.Framework.ParseFile.tokenizeLine(FSharpLineTokenizer tokenizer, String line, FSharpTokenizerLexState initialState) 2020-02-24T19:49:01.4311628Z INFO: at FSharpLint.Framework.ParseFile.helper@148-1(FSharpSourceTokenizer sourceTok, FSharpTokenizerLexState tupledArg0, Int32 tupledArg1, FSharpList
1 tupledArg2, FSharpList1 tupledArg3) 2020-02-24T19:49:01.4311877Z INFO: at FSharpLint.Framework.ParseFile.tokenizeLines(FSharpList
1 fileLines) 2020-02-24T19:49:01.4312115Z INFO: at FSharpLint.Framework.Suppression.parseSuppressionInfo(FSharpList1 lines) 2020-02-24T19:49:01.4312350Z INFO: at FSharpLint.Framework.Suppression.getSuppressedRulesPerLine(FSharpSet
1 allRules, FSharpList`1 lines) 2020-02-24T19:49:01.4312578Z INFO: at FSharpLint.Application.Lint.lint(LintInfo lintInfo, FileParseInfo fileInfo) 2020-02-24T19:49:01.4312818Z INFO: at FSharpLint.Application.Lint.lintParsedFile(OptionalLintParameters optionalParams, ParsedFileInformation parsedFileInfo, String filepath) 2020-02-24T19:49:01.4313054Z INFO: at FSharpLint.Application.Lint.lintFile(OptionalLintParameters optionalParams, String filepath) 2020-02-24T19:49:01.4313267Z INFO: at FsSonarRunnerCore.FsLintRunner.ExecuteAnalysis() 2020-02-24T19:49:01.7295648Z INFO: at FsSonarRunnerCore.SQAnalyser.RunLint(String path, String input, String inputXmlConfig)Lint Ok
I will break this PR up in multiple commits and test individually
The update of SonarQube API will lead to some deprecations which need to be addressed in Issue #83