When running sonar-scanner -Dsonar.login=${TOKEN} -Dsonar.typescript.lcov.reportPaths="$BITBUCKET_CLONE_DIR/coverage/lcov.info" -Dsonar.javascript.lcov.reportPaths="$BITBUCKET_CLONE_DIR/coverage/lcov.info"
I’m getting this error:
ERROR: The field ‘Max’ does not exist or is not annotated with @RuleProperty in the class org.sonarsource.slang.checks.TooManyParametersCheck
Output:
INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties
INFO: Project root configuration file: /opt/atlassian/pipelines/agent/build/sonar-project.properties
INFO: SonarQube Scanner 3.2.0.1227
INFO: Java 1.8.0_171 Oracle Corporation (64-bit)
INFO: Linux 4.14.63-coreos amd64
INFO: User cache: /root/.sonar/cache
INFO: SonarQube server 7.4.0
INFO: Default locale: "en_US", source code encoding: "UTF-8" (analysis is platform dependent)
INFO: Publish mode
INFO: Load global settings
INFO: Load global settings (done) | time=610ms
INFO: Server id: BD367519-AWHW8ct9-T_TB3XqouNu
INFO: User cache: /root/.sonar/cache
INFO: Load/download plugins
INFO: Load plugins index
INFO: Load plugins index (done) | time=284ms
INFO: Load/download plugins (done) | time=403ms
INFO: Loaded core extensions: branch-scanner
INFO: Process project properties
INFO: Load project branches
INFO: Load project branches (done) | time=107ms
INFO: Load project pull requests
INFO: Load project pull requests (done) | time=143ms
INFO: Load branch configuration
INFO: There is an open PR for this branch, configuring PR analysis
INFO: Detected Bitbucket Pipelines
INFO: Auto-configuring pull request 185
INFO: Load branch configuration (done) | time=844ms
INFO: Load project repositories
INFO: Load project repositories (done) | time=474ms
INFO: Execute project builders
INFO: Execute project builders (done) | time=1ms
INFO: Load quality profiles
INFO: Load quality profiles (done) | time=144ms
INFO: Load active rules
INFO: Load active rules (done) | time=2858ms
INFO: Load metrics repository
INFO: Load metrics repository (done) | time=130ms
INFO: Project key: <redacted>
INFO: Project base dir: /opt/atlassian/pipelines/agent/build
INFO: Organization key: <redacted>
INFO: Pull request 185 for merge into master from feature/ <redacted>
INFO: ------------- Scan <redacted>
INFO: Base dir: /opt/atlassian/pipelines/agent/build
INFO: Working dir: /opt/atlassian/pipelines/agent/build/.scannerwork
INFO: Source paths: src
INFO: Source encoding: UTF-8, default locale: en_US
INFO: SCM collecting changed files in the branch
WARN: Could not find ref: master in refs/heads or refs/remotes/origin
INFO: SCM collecting changed files in the branch (done) | time=79ms
INFO: Load server rules
INFO: Load server rules (done) | time=626ms
WARN: Property 'sonar.abap.file.suffixes' is not declared as multi-values/property set but was read using 'getStringArray' method. The SonarQube plugin declaring this property should be updated.
INFO: Index files
INFO: Excluded sources:
INFO: **/node_modules/**,**/coverage/**,**/dist/**
INFO: **/__tests__/**
INFO: Included tests:
INFO: **/__tests__/**
INFO: 428 files indexed
INFO: 0 files ignored because of inclusion/exclusion patterns
INFO: Quality profile for css: Sonar way
INFO: Quality profile for js: Sonar way Recommended
INFO: Quality profile for ts: Sonar way recommended
INFO: Quality profile for web: Sonar way
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 12.249s
INFO: Final Memory: 28M/664M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarQube Scanner execution
ERROR: The field 'Max' does not exist or is not annotated with @RuleProperty in the class org.sonarsource.slang.checks.TooManyParametersCheck
ERROR:
ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.
Please advice.