Sonar is returning an error when analyzing .sass files

Template for a good new topic, formatted with Markdown:

  • ALM used: Azure DevOps
  • CI system used: Azure DevOps
  • Scanner command used when applicable (private details masked)
- task: SonarCloudPrepare@1
       inputs:
         SonarCloud: ${{ parameters.serviceConnection }}
         organization: 'l***b'
         scannerMode: 'CLI'
         configMode: 'file'

- task: SonarCloudAnalyze@1

- task: SonarCloudPublish@1
      inputs:
        pollingTimeoutSec: '300'
  • Languages of the repository: Ruby
  • Issue Description: When SonarAnalyze gets to the step of checking the .sass files, it starts to pop up errors relating to the node, but once the .sass files have been ignored, the errors no longer appear. We’re using a container with node 18 and java 17
  • Error observed
2023-11-14T14:59:54.8612687Z ##[section]Starting: SonarCloudAnalyze
2023-11-14T14:59:54.8623485Z ==============================================================================
2023-11-14T14:59:54.8624133Z Task         : Run Code Analysis
2023-11-14T14:59:54.8624427Z Description  : Run scanner and upload the results to the SonarCloud server.
2023-11-14T14:59:54.8625109Z Version      : 1.43.2
2023-11-14T14:59:54.8625316Z Author       : sonarsource
2023-11-14T14:59:54.8625586Z Help         : Version: 1.43.2. This task is not needed for Maven and Gradle projects since the scanner should be run as part of the build.

[More Information](https://docs.sonarcloud.io/advanced-setup/ci-based-analysis/sonarcloud-extension-for-azure-devops/)
2023-11-14T14:59:54.8627979Z ==============================================================================
2023-11-14T14:59:56.3187093Z [command]/__w/_tasks/SonarCloudAnalyze_ce096e50-6155-4de8-8800-4221aaeed4a1/1.43.2/sonar-scanner/bin/sonar-scanner
2023-11-14T14:59:56.5247807Z INFO: Scanner configuration file: /__w/_tasks/SonarCloudAnalyze_ce096e50-6155-4de8-8800-4221aaeed4a1/1.43.2/sonar-scanner/conf/sonar-scanner.properties
2023-11-14T14:59:56.5251264Z INFO: Project root configuration file: /__w/4122/s/sonar-project.properties
2023-11-14T14:59:56.5753115Z INFO: SonarScanner 4.8.1.3023
2023-11-14T14:59:56.5757058Z INFO: Java 17.0.8.1 Eclipse Adoptium (64-bit)
2023-11-14T14:59:56.5758022Z INFO: Linux 4.9.0-19-amd64 amd64
2023-11-14T14:59:56.5819354Z INFO: SONAR_SCANNER_OPTS=--add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED
2023-11-14T14:59:56.9970181Z INFO: User cache: /home/_azuredevops_azpcontainer/.sonar/cache
2023-11-14T14:59:59.6740868Z INFO: Analyzing on SonarCloud
2023-11-14T14:59:59.6741833Z INFO: Default locale: "en_US", source code encoding: "UTF-8"
2023-11-14T15:00:00.4247326Z INFO: Load global settings
2023-11-14T15:00:00.8473266Z INFO: Load global settings (done) | time=425ms
2023-11-14T15:00:00.8543258Z INFO: Server id: 1BD809FA-AWHW8ct9-T_TB3XqouNu
2023-11-14T15:00:00.8724558Z INFO: User cache: /home/_azuredevops_azpcontainer/.sonar/cache
2023-11-14T15:00:00.8834296Z INFO: Loading required plugins
2023-11-14T15:00:00.8839252Z INFO: Load plugins index
2023-11-14T15:00:01.2145112Z INFO: Load plugins index (done) | time=330ms
2023-11-14T15:00:01.2149144Z INFO: Load/download plugins
2023-11-14T15:00:08.9273488Z INFO: Load/download plugins (done) | time=7711ms
2023-11-14T15:00:09.5736350Z INFO: Loaded core extensions: developer-scanner
2023-11-14T15:00:10.2602705Z INFO: Found an active CI vendor: 'Azure DevOps'
2023-11-14T15:00:10.2848671Z INFO: Load project settings for component key: 'criador:yata-editor'
2023-11-14T15:00:10.5616623Z INFO: Load project settings for component key: 'criador:yata-editor' (done) | time=275ms
2023-11-14T15:00:10.5723764Z INFO: Process project properties
2023-11-14T15:00:10.5882792Z INFO: Execute project builders
2023-11-14T15:00:10.5906703Z INFO: Execute project builders (done) | time=4ms
2023-11-14T15:00:10.5940467Z INFO: Project key: criador:yata-editor
2023-11-14T15:00:10.5941230Z INFO: Base dir: /__w/4122/s
2023-11-14T15:00:10.5941769Z INFO: Working dir: /__w/4122/s/.scannerwork
2023-11-14T15:00:10.7197543Z INFO: Load project branches
2023-11-14T15:00:11.0010064Z INFO: Load project branches (done) | time=281ms
2023-11-14T15:00:11.0054207Z INFO: Check ALM binding of project 'criador:yata-editor'
2023-11-14T15:00:11.2557336Z INFO: Detected project binding: NOT_BOUND
2023-11-14T15:00:11.2561488Z INFO: Check ALM binding of project 'criador:yata-editor' (done) | time=251ms
2023-11-14T15:00:11.2606073Z INFO: Load project pull requests
2023-11-14T15:00:11.5217343Z INFO: Load project pull requests (done) | time=256ms
2023-11-14T15:00:11.5246776Z INFO: Load branch configuration
2023-11-14T15:00:11.5271119Z INFO: Load branch configuration (done) | time=4ms
2023-11-14T15:00:11.5470126Z INFO: Load quality profiles
2023-11-14T15:00:11.8886517Z INFO: Load quality profiles (done) | time=340ms
2023-11-14T15:00:11.9024782Z INFO: Load active rules
2023-11-14T15:00:25.1578647Z INFO: Load active rules (done) | time=13255ms
2023-11-14T15:00:25.4734733Z INFO: Organization key: locaweb
2023-11-14T15:00:25.4758589Z INFO: Branch name: fix/atualiza-container-sonar, type: short-lived
2023-11-14T15:00:25.5328565Z INFO: Preprocessing files...
2023-11-14T15:00:26.0936548Z INFO: 3 languages detected in 519 preprocessed files
2023-11-14T15:00:26.0937601Z INFO: 0 files ignored because of inclusion/exclusion patterns
2023-11-14T15:00:26.0938488Z INFO: 0 files ignored because of scm ignore settings
2023-11-14T15:00:26.1417856Z INFO: Loading plugins for detected languages
2023-11-14T15:00:26.1425613Z INFO: Load/download plugins
2023-11-14T15:00:27.1775906Z INFO: Load/download plugins (done) | time=1035ms
2023-11-14T15:00:27.2874997Z INFO: Load project repositories
2023-11-14T15:00:27.6096073Z INFO: Load project repositories (done) | time=323ms
2023-11-14T15:00:27.6119271Z INFO: SCM collecting changed files in the branch
2023-11-14T15:00:27.6173818Z WARN: Could not find ref: master in refs/heads, refs/remotes/upstream or refs/remotes/origin
2023-11-14T15:00:27.7003363Z INFO: SCM collecting changed files in the branch (done) | time=88ms
2023-11-14T15:00:27.7156346Z INFO: Indexing files...
2023-11-14T15:00:27.7159186Z INFO: Project configuration:
2023-11-14T15:00:27.7165967Z INFO:   Excluded sources: **/build-wrapper-dump.json, spec
2023-11-14T15:00:27.7166823Z INFO:   Included tests: spec
2023-11-14T15:00:27.7171238Z INFO:   Excluded sources for coverage: app/routes/**/*, node_modules/*
2023-11-14T15:00:28.2893435Z INFO: 519 files indexed
2023-11-14T15:00:28.3083463Z INFO: Quality profile for css: Sonar way
2023-11-14T15:00:28.3084369Z INFO: Quality profile for js: Sonar way
2023-11-14T15:00:28.3085023Z INFO: Quality profile for web: Sonar way
2023-11-14T15:00:28.3086269Z INFO: ------------- Run sensors on module criador:yata-editor
2023-11-14T15:00:28.4321994Z INFO: Load metrics repository
2023-11-14T15:00:28.7017265Z INFO: Load metrics repository (done) | time=269ms
2023-11-14T15:00:28.7159049Z INFO: Sensor cache enabled
2023-11-14T15:00:28.7215721Z INFO: Load sensor cache
2023-11-14T15:00:31.6110836Z INFO: Load sensor cache (357 KB) | time=2889ms
2023-11-14T15:00:33.9460693Z INFO: Sensor JaCoCo XML Report Importer [jacoco]
2023-11-14T15:00:33.9473833Z INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
2023-11-14T15:00:33.9484951Z INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
2023-11-14T15:00:33.9486350Z INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=3ms
2023-11-14T15:00:33.9488791Z INFO: Sensor JavaScript/TypeScript analysis [javascript]
2023-11-14T15:00:41.7899780Z INFO: Detected os: Linux arch: amd64 alpine: false. Platform: LINUX_X64
2023-11-14T15:00:41.8008061Z INFO: Using Node.js executable: 'node'.
2023-11-14T15:00:47.0315967Z INFO: Memory configuration: OS (24071 MB), Node.js (4144 MB).
2023-11-14T15:00:51.9344161Z INFO: Found 0 tsconfig.json file(s): []
2023-11-14T15:00:51.9727070Z INFO: Creating TypeScript program
2023-11-14T15:00:51.9728852Z INFO: TypeScript configuration file /tmp/tmp-303-aRhRFMj824fo
2023-11-14T15:00:51.9804003Z INFO: 263 source files to be analyzed
2023-11-14T15:00:53.8653359Z INFO: Creating TypeScript program (done) | time=1893ms
2023-11-14T15:00:53.8654240Z INFO: Starting analysis with current program
2023-11-14T15:01:01.9905332Z INFO: 55/263 files analyzed, current file: /__w/4122/s/app/components/sidebar/appearance/cs-format-style.js
2023-11-14T15:01:11.9905173Z INFO: 152/263 files analyzed, current file: /__w/4122/s/app/routes/pages/preview.js
2023-11-14T15:01:21.9906281Z INFO: 249/263 files analyzed, current file: /__w/4122/s/app/components/cs-box.js
2023-11-14T15:01:23.3685205Z INFO: Analyzed 263 file(s) with current program
2023-11-14T15:01:23.3735723Z INFO: 263/263 source files have been analyzed
2023-11-14T15:01:23.3737972Z INFO: Hit the cache for 0 out of 263
2023-11-14T15:01:23.3777414Z INFO: Miss the cache for 263 out of 263: ANALYSIS_MODE_INELIGIBLE [263/263]
2023-11-14T15:01:23.3781494Z INFO: Sensor JavaScript/TypeScript analysis [javascript] (done) | time=49429ms
2023-11-14T15:01:23.3785421Z INFO: Sensor JavaScript inside HTML analysis [javascript]
2023-11-14T15:01:23.3872666Z INFO: 1 source file to be analyzed
2023-11-14T15:01:23.4762019Z INFO: 1/1 source file has been analyzed
2023-11-14T15:01:23.4762956Z INFO: Hit the cache for 0 out of 1
2023-11-14T15:01:23.4763724Z INFO: Miss the cache for 1 out of 1: ANALYSIS_MODE_INELIGIBLE [1/1]
2023-11-14T15:01:23.4766490Z INFO: Sensor JavaScript inside HTML analysis [javascript] (done) | time=98ms
INFO: Sensor CSS Rules [javascript]
INFO: 83 source files to be analyzed
##[error]ERROR: Error: You must pass either a node or a line number
ERROR: Error: You must pass either a node or a line number
##[error]ERROR:     at report (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/utils/report.js:42:9)
ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/rules/no-empty-source/index.js:32:3
ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/lintPostcssResult.js:120:8
ERROR:     at Array.map (<anonymous>)
ERROR:     at lintPostcssResult (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/lintPostcssResult.js:110:18)
ERROR:     at lintSource (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/lintSource.js:110:8)
ERROR:     at async Object.standalone (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/standalone.js:125:26)
ERROR:     at async MessagePort.<anonymous> (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/lib/bridge/src/worker.js:60:36)
ERROR:     at report (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/utils/report.js:42:9)
ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/rules/no-empty-source/index.js:32:3
ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/lintPostcssResult.js:120:8
ERROR:     at Array.map (<anonymous>)
ERROR:     at lintPostcssResult (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/lintPostcssResult.js:110:18)
ERROR:     at lintSource (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/lintSource.js:110:8)
ERROR:     at async Object.standalone (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/standalone.js:125:26)
ERROR:     at async MessagePort.<anonymous> (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/lib/bridge/src/worker.js:60:36)
##[error]ERROR: Error: You must pass either a node or a line number
ERROR:     at report (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/utils/report.js:42:9)
ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/rules/no-empty-source/index.js:32:3
ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/lintPostcssResult.js:120:8
ERROR:     at Array.map (<anonymous>)
ERROR:     at lintPostcssResult (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/lintPostcssResult.js:110:18)
ERROR:     at lintSource (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/lintSource.js:110:8)
ERROR:     at async Object.standalone (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/standalone.js:125:26)
ERROR:     at async MessagePort.<anonymous> (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/lib/bridge/src/worker.js:60:36)
ERROR: Error: You must pass either a node or a line number
ERROR:     at report (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/utils/report.js:42:9)
ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/rules/no-empty-source/index.js:32:3
ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/lintPostcssResult.js:120:8
ERROR:     at Array.map (<anonymous>)
ERROR:     at lintPostcssResult (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/lintPostcssResult.js:110:18)
ERROR:     at lintSource (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/lintSource.js:110:8)
ERROR:     at async Object.standalone (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/standalone.js:125:26)
ERROR:     at async MessagePort.<anonymous> (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/lib/bridge/src/worker.js:60:36)
##[error]ERROR: Error: The node source must be present
ERROR:     at Object.getContext (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/utils/nodeContextLookup.js:23:28)
ERROR: Error: The node source must be present
ERROR:     at Object.getContext (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/utils/nodeContextLookup.js:23:28)
##[error]ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/rules/no-duplicate-selectors/index.js:60:53
ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:369:18
ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:297:18
ERROR:     at Root.each (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:53:16)
ERROR:     at Root.walk (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:294:17)
ERROR:     at Root.walkRules (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:367:19)
ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/rules/no-duplicate-selectors/index.js:55:8
ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/rules/no-duplicate-selectors/index.js:60:53
ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:369:18
ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:297:18
ERROR:     at Root.each (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:53:16)
ERROR:     at Root.walk (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:294:17)
ERROR:     at Root.walkRules (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:367:19)
ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/rules/no-duplicate-selectors/index.js:55:8
##[error]ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/lintPostcssResult.js:120:8
ERROR:     at Array.map (<anonymous>)
ERROR:     at lintPostcssResult (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/lintPostcssResult.js:110:18)
ERROR:     at lintSource (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/lintSource.js:110:8)
ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/lintPostcssResult.js:120:8
ERROR:     at Array.map (<anonymous>)
ERROR:     at lintPostcssResult (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/lintPostcssResult.js:110:18)
ERROR:     at lintSource (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/lintSource.js:110:8)
##[error]ERROR:     at async Object.standalone (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/standalone.js:125:26)
ERROR:     at async MessagePort.<anonymous> (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/lib/bridge/src/worker.js:60:36)
ERROR:     at async Object.standalone (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/standalone.js:125:26)
ERROR:     at async MessagePort.<anonymous> (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/lib/bridge/src/worker.js:60:36)
##[error]ERROR: Error: The node source must be present
ERROR: Error: The node source must be present
##[error]ERROR:     at Object.getContext (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/utils/nodeContextLookup.js:23:28)
ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/rules/no-duplicate-selectors/index.js:60:53
ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:369:18
ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:297:18
ERROR:     at Object.getContext (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/utils/nodeContextLookup.js:23:28)
ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/rules/no-duplicate-selectors/index.js:60:53
ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:369:18
ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:297:18
##[error]ERROR:     at Rule.each (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:53:16)
ERROR:     at Rule.walk (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:294:17)
ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:302:24
ERROR:     at Root.each (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:53:16)
ERROR:     at Root.walk (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:294:17)
ERROR:     at Rule.each (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:53:16)
ERROR:     at Rule.walk (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:294:17)
ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:302:24
ERROR:     at Root.each (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:53:16)
ERROR:     at Root.walk (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:294:17)
##[error]ERROR:     at Root.walkRules (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:367:19)
ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/rules/no-duplicate-selectors/index.js:55:8
ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/lintPostcssResult.js:120:8
ERROR:     at Array.map (<anonymous>)
ERROR:     at Root.walkRules (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:367:19)
ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/rules/no-duplicate-selectors/index.js:55:8
ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/lintPostcssResult.js:120:8
ERROR:     at Array.map (<anonymous>)
##[error]ERROR:     at lintPostcssResult (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/lintPostcssResult.js:110:18)
ERROR:     at lintSource (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/lintSource.js:110:8)
ERROR:     at async Object.standalone (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/standalone.js:125:26)
ERROR:     at async MessagePort.<anonymous> (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/lib/bridge/src/worker.js:60:36)
ERROR:     at lintPostcssResult (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/lintPostcssResult.js:110:18)
ERROR:     at lintSource (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/lintSource.js:110:8)
ERROR:     at async Object.standalone (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/standalone.js:125:26)
ERROR:     at async MessagePort.<anonymous> (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/lib/bridge/src/worker.js:60:36)
##[error]ERROR: Error: The node source must be present
ERROR: Error: The node source must be present
 ##[error]ERROR:     at Object.getContext (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/utils/nodeContextLookup.js:23:28)
ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/rules/no-duplicate-selectors/index.js:60:53
ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:369:18
ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:297:18
ERROR:     at Root.each (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:53:16)
ERROR:     at Root.walk (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:294:17)
ERROR:     at Root.walkRules (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:367:19)
ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/rules/no-duplicate-selectors/index.js:55:8
ERROR:     at Object.getContext (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/utils/nodeContextLookup.js:23:28)
ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/rules/no-duplicate-selectors/index.js:60:53
ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:369:18
ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:297:18
ERROR:     at Root.each (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:53:16)
ERROR:     at Root.walk (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:294:17)
ERROR:     at Root.walkRules (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:367:19)
ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/rules/no-duplicate-selectors/index.js:55:8
##[error]ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/lintPostcssResult.js:120:8
ERROR:     at Array.map (<anonymous>)
ERROR:     at lintPostcssResult (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/lintPostcssResult.js:110:18)
ERROR:     at lintSource (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/lintSource.js:110:8)
ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/lintPostcssResult.js:120:8
ERROR:     at Array.map (<anonymous>)
ERROR:     at lintPostcssResult (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/lintPostcssResult.js:110:18)
ERROR:     at lintSource (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/lintSource.js:110:8)
##[error]ERROR:     at async Object.standalone (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/standalone.js:125:26)
ERROR:     at async MessagePort.<anonymous> (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/lib/bridge/src/worker.js:60:36)
ERROR:     at async Object.standalone (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/standalone.js:125:26)
ERROR:     at async MessagePort.<anonymous> (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/lib/bridge/src/worker.js:60:36)
##[error]ERROR: Error: The node source must be present
ERROR:     at Object.getContext (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/utils/nodeContextLookup.js:23:28)
ERROR: Error: The node source must be present
ERROR:     at Object.getContext (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/utils/nodeContextLookup.js:23:28)
##[error]ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/rules/no-duplicate-selectors/index.js:60:53
ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:369:18
ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:297:18
ERROR:     at Root.each (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:53:16)
ERROR:     at Root.walk (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:294:17)
ERROR:     at Root.walkRules (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:367:19)
ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/rules/no-duplicate-selectors/index.js:55:8
ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/lintPostcssResult.js:120:8
ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/rules/no-duplicate-selectors/index.js:60:53
ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:369:18
ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:297:18
ERROR:     at Root.each (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:53:16)
ERROR:     at Root.walk (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:294:17)
ERROR:     at Root.walkRules (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:367:19)
ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/rules/no-duplicate-selectors/index.js:55:8
ERROR:     at /__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/lintPostcssResult.js:120:8
##[error]ERROR:     at Array.map (<anonymous>)
ERROR:     at Array.map (<anonymous>)
##[error]ERROR:     at lintPostcssResult (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/lintPostcssResult.js:110:18)
ERROR:     at lintSource (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/lintSource.js:110:8)
ERROR:     at async Object.standalone (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/standalone.js:125:26)
ERROR:     at async MessagePort.<anonymous> (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/lib/bridge/src/worker.js:60:36)
ERROR:     at lintPostcssResult (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/lintPostcssResult.js:110:18)
ERROR:     at lintSource (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/lintSource.js:110:8)
ERROR:     at async Object.standalone (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/standalone.js:125:26)
ERROR:     at async MessagePort.<anonymous> (/__w/4122/s/.scannerwork/.sonartmp/bridge-bundle/package/lib/bridge/src/worker.js:60:36)
2023-11-14T15:01:27.1357149Z INFO: 83/83 source files have been analyzed
2023-11-14T15:01:27.1361149Z INFO: Hit the cache for 0 out of 0
2023-11-14T15:01:27.1362155Z INFO: Miss the cache for 0 out of 0
2023-11-14T15:01:27.1363381Z INFO: Sensor CSS Rules [javascript] (done) | time=3659ms
2023-11-14T15:01:27.1370598Z INFO: Sensor JavaScript/TypeScript Coverage [javascript]
2023-11-14T15:01:27.7599007Z INFO: No LCOV files were found using ./coverage/lcov.info
2023-11-14T15:01:27.7600268Z WARN: No coverage information will be saved because all LCOV files cannot be found.
2023-11-14T15:01:27.7601557Z INFO: Sensor JavaScript/TypeScript Coverage [javascript] (done) | time=622ms
2023-11-14T15:01:27.7602597Z INFO: Sensor CSS Metrics [javascript]
2023-11-14T15:01:28.2697710Z INFO: Sensor CSS Metrics [javascript] (done) | time=508ms
2023-11-14T15:01:28.2698837Z INFO: Sensor C# Project Type Information [csharp]
2023-11-14T15:01:28.2725232Z INFO: Sensor C# Project Type Information [csharp] (done) | time=3ms
2023-11-14T15:01:28.2727085Z INFO: Sensor C# Analysis Log [csharp]
2023-11-14T15:01:28.2977655Z INFO: Sensor C# Analysis Log [csharp] (done) | time=24ms
2023-11-14T15:01:28.2979818Z INFO: Sensor C# Properties [csharp]
2023-11-14T15:01:28.2980742Z INFO: Sensor C# Properties [csharp] (done) | time=0ms
2023-11-14T15:01:28.2981958Z INFO: Sensor HTML [web]
2023-11-14T15:01:28.3573595Z INFO: Sensor HTML [web] (done) | time=59ms
2023-11-14T15:01:28.3579825Z INFO: Sensor TextAndSecretsSensor [text]
2023-11-14T15:01:29.1297761Z INFO: 346 source files to be analyzed
2023-11-14T15:01:32.8265795Z INFO: 346/346 source files have been analyzed
2023-11-14T15:01:32.8267094Z INFO: Sensor TextAndSecretsSensor [text] (done) | time=4469ms
2023-11-14T15:01:32.8269808Z INFO: Sensor VB.NET Project Type Information [vbnet]
2023-11-14T15:01:32.8306967Z INFO: Sensor VB.NET Project Type Information [vbnet] (done) | time=3ms
2023-11-14T15:01:32.8312455Z INFO: Sensor VB.NET Analysis Log [vbnet]
2023-11-14T15:01:32.8550466Z INFO: Sensor VB.NET Analysis Log [vbnet] (done) | time=24ms
2023-11-14T15:01:32.8553711Z INFO: Sensor VB.NET Properties [vbnet]
2023-11-14T15:01:32.8554795Z INFO: Sensor VB.NET Properties [vbnet] (done) | time=1ms
2023-11-14T15:01:32.8557045Z INFO: Sensor IaC Docker Sensor [iac]
2023-11-14T15:01:32.8616049Z INFO: 0 source files to be analyzed
2023-11-14T15:01:32.9887585Z INFO: 0/0 source files have been analyzed
2023-11-14T15:01:32.9888404Z INFO: Sensor IaC Docker Sensor [iac] (done) | time=133ms
2023-11-14T15:01:32.9891134Z INFO: Sensor Serverless configuration file sensor [security]
2023-11-14T15:01:32.9907342Z INFO: 0 Serverless function entries were found in the project
2023-11-14T15:01:32.9955915Z INFO: 0 Serverless function handlers were kept as entrypoints
2023-11-14T15:01:32.9961837Z INFO: Sensor Serverless configuration file sensor [security] (done) | time=7ms
2023-11-14T15:01:32.9963311Z INFO: Sensor AWS SAM template file sensor [security]
2023-11-14T15:01:32.9975697Z INFO: Sensor AWS SAM template file sensor [security] (done) | time=2ms
2023-11-14T15:01:32.9978075Z INFO: Sensor AWS SAM Inline template file sensor [security]
2023-11-14T15:01:32.9997682Z INFO: Sensor AWS SAM Inline template file sensor [security] (done) | time=1ms
2023-11-14T15:01:32.9999131Z INFO: Sensor javabugs [dbd]
2023-11-14T15:01:33.0030905Z INFO: Reading IR files from: /__w/4122/s/.scannerwork/ir/java
INFO: No IR files have been included for analysis.
INFO: Sensor javabugs [dbd] (done) | time=3ms
INFO: Sensor pythonbugs [dbd]
INFO: Reading IR files from: /__w/4122/s/.scannerwork/ir/python
INFO: No IR files have been included for analysis.
INFO: Sensor pythonbugs [dbd] (done) | time=0ms
INFO: Sensor JavaSecuritySensor [security]
INFO: Enabled taint analysis rules: S2076, S2078, S2083, S2091, S2631, S3649, S5131, S5135, S5144, S5145, S5146, S5147, S5334, S5883, S6096, S6173, S6287, S6350, S6384, S6390, S6398, S6399, S6547, S6549
INFO: Load type hierarchy and UCFGs: Starting
INFO: Load type hierarchy: Starting
INFO: Reading type hierarchy from: /__w/4122/s/.scannerwork/ucfg2/java
INFO: Read 0 type definitions
INFO: Load type hierarchy: Time spent was 00:00:00.003
INFO: Load UCFGs: Starting
INFO: Load UCFGs: Time spent was 00:00:00.001
INFO: Load type hierarchy and UCFGs: Time spent was 00:00:00.005
INFO: No UCFGs have been included for analysis.
INFO: java security sensor: Time spent was 00:00:00.010
INFO: Sensor JavaSecuritySensor [security] (done) | time=31ms
INFO: Sensor CSharpSecuritySensor [security]
INFO: Enabled taint analysis rules: S2076, S2078, S2083, S2091, S2631, S3649, S5131, S5135, S5144, S5145, S5146, S5334, S5883, S6096, S6173, S6287, S6350, S6399, S6639, S6641
INFO: Load type hierarchy and UCFGs: Starting
INFO: Load type hierarchy: Starting
INFO: Reading type hierarchy from: /__w/4122/s/ucfg2/cs
INFO: Read 0 type definitions
INFO: Load type hierarchy: Time spent was 00:00:00.000
INFO: Load UCFGs: Starting
INFO: Load UCFGs: Time spent was 00:00:00.000
INFO: Load type hierarchy and UCFGs: Time spent was 00:00:00.001
INFO: No UCFGs have been included for analysis.
INFO: csharp security sensor: Time spent was 00:00:00.001
INFO: Sensor CSharpSecuritySensor [security] (done) | time=2ms
INFO: Sensor PhpSecuritySensor [security]
INFO: Enabled taint analysis rules: S2076, S2078, S2083, S2091, S2631, S3649, S5131, S5135, S5144, S5145, S5146, S5334, S5335, S5883, S6173, S6287, S6350
INFO: Load type hierarchy and UCFGs: Starting
INFO: Load type hierarchy: Starting
INFO: Reading type hierarchy from: /__w/4122/s/.scannerwork/ucfg2/php
INFO: Read 0 type definitions
INFO: Load type hierarchy: Time spent was 00:00:00.000
INFO: Load UCFGs: Starting
INFO: Load UCFGs: Time spent was 00:00:00.000
INFO: Load type hierarchy and UCFGs: Time spent was 00:00:00.000
INFO: No UCFGs have been included for analysis.
INFO: php security sensor: Time spent was 00:00:00.001
INFO: Sensor PhpSecuritySensor [security] (done) | time=2ms
INFO: Sensor PythonSecuritySensor [security]
INFO: Enabled taint analysis rules: S2076, S2078, S2083, S2091, S2631, S3649, S5131, S5135, S5144, S5145, S5146, S5147, S5334, S5496, S6287, S6350
INFO: Load type hierarchy and UCFGs: Starting
INFO: Load type hierarchy: Starting
INFO: Reading type hierarchy from: /__w/4122/s/.scannerwork/ucfg2/python
INFO: Read 0 type definitions
INFO: Load type hierarchy: Time spent was 00:00:00.000
INFO: Load UCFGs: Starting
INFO: Load UCFGs: Time spent was 00:00:00.000
INFO: Load type hierarchy and UCFGs: Time spent was 00:00:00.000
INFO: No UCFGs have been included for analysis.
INFO: python security sensor: Time spent was 00:00:00.001
INFO: Sensor PythonSecuritySensor [security] (done) | time=2ms
INFO: Sensor JsSecuritySensor [security]
INFO: Enabled taint analysis rules: S5146, S6096, S5334, S2631, S6350, S5144, S5883, S6105, S6287, S5696, S5147, S2076, S3649, S5131, S2083
INFO: Load type hierarchy and UCFGs: Starting
INFO: Load type hierarchy: Starting
INFO: Reading type hierarchy from: /__w/4122/s/.scannerwork/ucfg2/js
INFO: Read 0 type definitions
INFO: Load type hierarchy: Time spent was 00:00:00.000
INFO: Load UCFGs: Starting
INFO: Load UCFGs: Time spent was 00:00:00.000
INFO: Load type hierarchy and UCFGs: Time spent was 00:00:00.000
INFO: No UCFGs have been included for analysis.
INFO: js security sensor: Time spent was 00:00:00.001
INFO: Sensor JsSecuritySensor [security] (done) | time=2ms
INFO: ------------- Run sensors on project
INFO: Sensor Analysis Warnings import [csharp]
INFO: Sensor Analysis Warnings import [csharp] (done) | time=2ms
INFO: Sensor Zero Coverage Sensor
INFO: Sensor Zero Coverage Sensor (done) | time=1051ms
INFO: CPD Executor 63 files had no CPD blocks
INFO: CPD Executor Calculating CPD for 201 files
INFO: CPD Executor CPD calculation finished (done) | time=125ms
INFO: SCM writing changed lines
WARN: Could not find ref: master in refs/heads, refs/remotes/upstream or refs/remotes/origin
INFO: SCM writing changed lines (done) | time=54ms
INFO: Analysis report generated in 339ms, dir size=423 KB
INFO: Analysis report compressed in 1077ms, zip size=291 KB
INFO: Analysis report uploaded in 1019ms
ANALYSIS SUCCESSFUL, you can find the results at: https://sonarcloud.io/dashboard?id=criador%3Ayata-editor&branch=fix%2Fatualiza-container-sonar&resolved=false
INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
INFO: More about the report processing at https://sonarcloud.io/api/ce/task?id=AYvOWia47U3a2WqDdAxN
INFO: Sensor cache published successfully
INFO: Analysis total time: 1:38.046 s
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 1:51.121s
INFO: Final Memory: 23M/108M
INFO: ------------------------------------------------------------------------
##[section]Finishing: SonarCloudAnalyze
2 Likes

Hello @Joao_Victor_Dias,

thank you for reporting this. Indeed, we do not support Sass syntax at the moment.

In the meantime, I suggest you add those files to the ignore list.

Edit: Ok, this was merged last September and is already available in SonarCloud. Can you share a file that generates that error, please? We may have some cases which do not cover properly.

Cheers,
Victor

Good morning, Victor,
After a day of analysis and debugging we managed to find the files that were having errors, we found similarities in them such as the errors being linked to tags like @ media and @ each and some were giving problems because they were empty. Here are some examples and their backtraces.

  • Problem on @ each:
 $sizes: 6, 7, 8, 10, 11, 14, 15, 17, 34

@each $size in $sizes
  .cs-mb-#{$size}
    margin-bottom: $size+px
  • Backtrace:
19:11:21.557 DEBUG: Analyzing file: file:///usr/src/app/styles/editor/helpers/spacing.sass
19:11:21.564 ERROR: Error: The node source must be present
19:11:21.564 ERROR:     at Object.getContext (/usr/src/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/utils/nodeContextLookup.js:23:28)
19:11:21.564 ERROR:     at /usr/src/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/rules/no-duplicate-selectors/index.js:60:53
19:11:21.564 ERROR:     at /usr/src/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:369:18
19:11:21.564 ERROR:     at /usr/src/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:297:18
19:11:21.564 ERROR:     at Root.each (/usr/src/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:53:16)
19:11:21.564 ERROR:     at Root.walk (/usr/src/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:294:17)
19:11:21.564 ERROR:     at Root.walkRules (/usr/src/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/postcss/lib/container.js:367:19)
19:11:21.564 ERROR:     at /usr/src/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/rules/no-duplicate-selectors/index.js:55:8
19:11:21.564 ERROR:     at /usr/src/.scannerwork/.sonartmp/bridge-bundle/package/node_modules/stylelint/lib/lintPostcssResult.js:120:8
19:11:21.564 ERROR:     at Array.map (<anonymous>)
19:11:21.565 DEBUG: Found 0 issue(s)

The backtrace is the same for both, only the target file changes

  • Problem on @ media:
body
  height: 100%
  font-family: 'Open Sans', verdana, helvetica, arial, sans-serif

.cs-lines
  @extend %section
  min-height: inherit

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active)
  .cs-line
    height: 100%

.cs-boxes
  @include display(flex)
  @include flex-wrap(wrap)

.cs-box
  min-width: 10px
  padding: 0 10px
  @include flex(1 0 300px)

  @include medium
    @include flex(1 0 100px)

We tested this @ media and @ each error by making a basic example file of each, available on the sass website, like this example:

$layout-breakpoint-small: 960px

.test
  width: 10px

  @media (min-width: $layout-breakpoint-small)
    display: none

1 Like

Hello @Joao_Victor_Dias,

thank you very much for the detailed report. We have opened a ticket to fix this error.

In the meantime, you can probably exclude .sass files from the analysis.

Cheers,
Victor

1 Like

Thanks, now that we’ve found out which ones gave errors we’ll ignore them!

1 Like

Hello Victor,

We have this error in a few .sass files but most of our files seem to be analyzed without any problems. We prefer not to exclude all .sass files nor exclude separate files in our config (and update this list of files during active development).

Does excluding .sass files make any practical sense besides removing the errors from the console? Can we safely just ignore these errors for the time being?

1 Like

Hi @Stanislav_Slobodian,

if you are ok with having the errors in the logs, and your analysis succeeds (some other errors make the analysis fail, thus breaking the CI pipe), feel free to leave them, should not have any effect.

Cheers,
Victor

2 Likes