arduino / arduino-lint

Tool to check for problems with Arduino projects
https://arduino.github.io/arduino-lint/latest/
GNU General Public License v3.0
106 stars 12 forks source link

Fix example file causing panic #752

Closed umbynos closed 3 months ago

umbynos commented 3 months ago

Having an example file in the library was causing the tool to panic, because it was being treated like a directory, but without checking if it was actually one. The example file is just ignored now. Close #751 The bug was discovered in https://github.com/arduino/library-registry/pull/4836

codecov-commenter commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 90.05%. Comparing base (92436f3) to head (a4d7dd9). Report is 17 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #752 +/- ## ======================================= Coverage 90.05% 90.05% ======================================= Files 44 44 Lines 6800 6800 ======================================= Hits 6124 6124 Misses 553 553 Partials 123 123 ``` | [Flag](https://app.codecov.io/gh/arduino/arduino-lint/pull/752/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=arduino) | Coverage Δ | | |---|---|---| | [unit](https://app.codecov.io/gh/arduino/arduino-lint/pull/752/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=arduino) | `90.05% <100.00%> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=arduino#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.