Skip to content
This repository was archived by the owner on Jun 16, 2025. It is now read-only.

Conversation

YonatanKra
Copy link
Contributor

This solves an issue with depcheck in scss.
Apparently SCSS is not parsed the same way as SASS. When parsing SCSS, local imports (like importing _mixins.scss) is not overridden by the importer.
This is fixed by adding another SCSS parser.

YonatanKra and others added 3 commits September 4, 2020 18:08
- support local imports ignore in scss files
- dependencies with ':'
Separate SCSS parser inside the SASS parser according to file suffix
@codecov
Copy link

codecov bot commented Sep 4, 2020

Codecov Report

Merging #581 into main will increase coverage by 0.08%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #581      +/-   ##
==========================================
+ Coverage   98.48%   98.57%   +0.08%     
==========================================
  Files          47       47              
  Lines         925      980      +55     
==========================================
+ Hits          911      966      +55     
  Misses         14       14              
Impacted Files Coverage Δ
src/detector/importDeclaration.js 100.00% <ø> (ø)
src/detector/typescriptImportEqualsDeclaration.js 100.00% <ø> (ø)
src/detector/extract.js 100.00% <100.00%> (ø)
src/detector/requireCallExpression.js 100.00% <100.00%> (ø)
src/index.js 85.45% <100.00%> (-0.26%) ⬇️
src/parser/sass.js 100.00% <100.00%> (ø)
src/special/gatsby.js 100.00% <100.00%> (ø)
src/special/webpack.js 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cf2cbbb...626ee03. Read the comment docs.

@YonatanKra YonatanKra changed the title feat: support local import scss ignore fix(sass-parser): support local import scss ignore Sep 5, 2020
@YonatanKra YonatanKra changed the title fix(sass-parser): support local import scss ignore fix(sass-parser): ignore local import in scss Sep 5, 2020
@rumpl rumpl merged commit 15df693 into depcheck:main Nov 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants