Sha256: ef148645334e92266ecfdc5599ea9a406dcdf6c5148403ee1f4c9eb34644f211

Contents?: true

Size: 1.15 KB

Versions: 19

Compression:

Stored size: 1.15 KB

Contents

rules:
  - id: sample.typo
    pattern:
      - Github
      - FaceBook
    message: |
      Write GitHub and Facebook

      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"
    message: |
      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

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
goodcheck-2.5.2 sample.yml
goodcheck-2.5.1 sample.yml
goodcheck-2.5.0 sample.yml
goodcheck-2.4.5 sample.yml
goodcheck-2.4.4 sample.yml
goodcheck-2.4.3 sample.yml
goodcheck-2.4.2 sample.yml
goodcheck-2.4.1 sample.yml
goodcheck-2.4.0 sample.yml
goodcheck-2.3.2 sample.yml
goodcheck-2.3.1 sample.yml
goodcheck-2.3.0 sample.yml
goodcheck-2.2.0 sample.yml
goodcheck-2.1.2 sample.yml
goodcheck-2.1.1 sample.yml
goodcheck-2.1.0 sample.yml
goodcheck-1.7.1 sample.yml
goodcheck-1.7.0 sample.yml
goodcheck-1.6.0 sample.yml