theme-check 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -0
  3. data/CONTRIBUTING.md +1 -1
  4. data/bin/theme-check +29 -0
  5. data/bin/theme-check-language-server +29 -0
  6. data/config/default.yml +11 -0
  7. data/config/theme_app_extension.yml +15 -0
  8. data/docs/checks/app_block_valid_tags.md +40 -0
  9. data/docs/checks/asset_size_app_block_css.md +1 -1
  10. data/docs/checks/missing_template.md +25 -0
  11. data/docs/checks/pagination_size.md +44 -0
  12. data/docs/checks/undefined_object.md +5 -0
  13. data/lib/theme_check/check.rb +2 -2
  14. data/lib/theme_check/checks/app_block_valid_tags.rb +36 -0
  15. data/lib/theme_check/checks/asset_size_css.rb +3 -3
  16. data/lib/theme_check/checks/asset_size_javascript.rb +2 -2
  17. data/lib/theme_check/checks/convert_include_to_render.rb +3 -1
  18. data/lib/theme_check/checks/deprecate_bgsizes.rb +1 -1
  19. data/lib/theme_check/checks/deprecate_lazysizes.rb +2 -2
  20. data/lib/theme_check/checks/img_lazy_loading.rb +1 -1
  21. data/lib/theme_check/checks/img_width_and_height.rb +3 -3
  22. data/lib/theme_check/checks/missing_template.rb +21 -5
  23. data/lib/theme_check/checks/pagination_size.rb +65 -0
  24. data/lib/theme_check/checks/parser_blocking_javascript.rb +1 -1
  25. data/lib/theme_check/checks/remote_asset.rb +2 -2
  26. data/lib/theme_check/checks/space_inside_braces.rb +26 -6
  27. data/lib/theme_check/checks/undefined_object.rb +1 -1
  28. data/lib/theme_check/checks/valid_html_translation.rb +1 -1
  29. data/lib/theme_check/checks.rb +11 -1
  30. data/lib/theme_check/cli.rb +18 -2
  31. data/lib/theme_check/corrector.rb +4 -0
  32. data/lib/theme_check/file_system_storage.rb +12 -0
  33. data/lib/theme_check/html_check.rb +0 -1
  34. data/lib/theme_check/html_node.rb +37 -16
  35. data/lib/theme_check/html_visitor.rb +17 -3
  36. data/lib/theme_check/json_check.rb +2 -2
  37. data/lib/theme_check/json_printer.rb +26 -0
  38. data/lib/theme_check/language_server/handler.rb +6 -2
  39. data/lib/theme_check/node.rb +6 -4
  40. data/lib/theme_check/offense.rb +56 -3
  41. data/lib/theme_check/parsing_helpers.rb +4 -3
  42. data/lib/theme_check/position.rb +98 -14
  43. data/lib/theme_check/regex_helpers.rb +5 -2
  44. data/lib/theme_check/theme.rb +2 -0
  45. data/lib/theme_check/version.rb +1 -1
  46. data/lib/theme_check.rb +1 -0
  47. data/theme-check.gemspec +1 -1
  48. metadata +12 -10
  49. data/bin/liquid-server +0 -4
  50. data/exe/theme-check-language-server.bat +0 -3
  51. data/exe/theme-check.bat +0 -3
data/bin/liquid-server DELETED
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env bash
2
- dev="/opt/dev/bin/dev"
3
- cd "$($dev project-path theme-check)"
4
- "$dev" language-server
@@ -1,3 +0,0 @@
1
- @ECHO OFF
2
-
3
- ruby "%~dp0\theme-check-language-server" %*
data/exe/theme-check.bat DELETED
@@ -1,3 +0,0 @@
1
- @ECHO OFF
2
-
3
- ruby "%~dp0\theme-check" %*