sample.yml in goodcheck-1.5.1 vs sample.yml in goodcheck-1.6.0
- old
+ new
@@ -8,10 +8,11 @@
Their names are GitHub and Facebook.
Maybe, you are misspelling.
pass: GitHub
fail: Github
+
- id: sample.debug_print
pattern:
- token: pp
- token: p
glob: "**/*.rb"
@@ -19,8 +20,38 @@
You should not use debug print
pass:
- render "app/views/welcome.html.erb"
fail:
- pp("Hello World")
+
+ - id: sample.html
+ not:
+ pattern:
+ - token: <meta charset="utf-8"
+ - token: <meta charset="UTF-8"
+ message: |
+ Use UTF-8 (no BOM).
+ glob: "**/*.html"
+ pass:
+ - |
+ <html>
+ <meta charset="utf-8"/>
+ </html>
+ - |
+ <html>
+ <meta charset="utf-8"></meta>
+ </html>
+ - |
+ <html>
+ <meta charset="UTF-8"></meta>
+ </html>
+ fail:
+ - |
+ <html>
+ <meta charset="iso-8859-1">
+ </html>
+ - |
+ <html>
+ </html>
import:
- https://gist.githubusercontent.com/soutaro/6362c89acd7d6771ae6ebfc615be402d/raw/7f04b973c2c8df70783cd7deb955ab95d1375b2d/sample.yml