Last active
March 4, 2021 05:24
-
-
Save operando/6a0892efe9c91c2972edafc0bf632b93 to your computer and use it in GitHub Desktop.
[Android] resにPNG画像が追加されたら、WebP or SVGに変更できないか検討してみよう!って言うDanger
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
png_files = (git.modified_files + git.added_files).uniq.select { |file| file.include?("res/") && file.end_with?('.png') && !file.end_with?('.9.png') } | |
png_files.each do |filename| | |
warn("該当のPNG画像をWebP or SVGに変更できないか検討してみましょう", file: filename, line: 0) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment