Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unrecognized files count and colorization #392

Merged
merged 1 commit into from
Sep 7, 2020

Conversation

avdv
Copy link
Collaborator

@avdv avdv commented Sep 7, 2020

A file is assigned a generic icon / glyph in files.yaml, so looking up
:file in the corresponding hash always succeeds, but :file is also used as
the fallback key if a file's extension is not recognized.

First determining the color and group of a given file before falling back to
the :file key fixes this issue.

Description

Thanks for contributing this Pull Request. Add a brief description of what this Pull Request does. Do tag the relevant issue(s) and PR(s) below. If required, add some screenshot(s) to support your changes.

A *file* is assigned a generic icon / glyph in `files.yaml`, so looking up
`:file` in the corresponding hash always succeeds, but `:file` is also used as
the fallback key if a file's extension is not recognized.

First determining the color and group of a given file before falling back to
the `:file` key fixes this issue.
@codecov-commenter
Copy link

codecov-commenter commented Sep 7, 2020

Codecov Report

Merging #392 into master will increase coverage by 0.59%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #392      +/-   ##
==========================================
+ Coverage   88.02%   88.62%   +0.59%     
==========================================
  Files           8        8              
  Lines         501      501              
==========================================
+ Hits          441      444       +3     
+ Misses         60       57       -3     
Impacted Files Coverage Δ
lib/colorls/core.rb 89.95% <100.00%> (+1.36%) ⬆️

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 c36ed1a...52b8c34. Read the comment docs.

@avdv avdv merged commit 965eb61 into athityakumar:master Sep 7, 2020
@avdv avdv deleted the fix-unrecognized branch September 7, 2020 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants