README.md in goodcheck-1.2.0 vs README.md in goodcheck-1.3.1
- old
+ new
@@ -44,11 +44,11 @@
pattern: Github
message: |
GitHub is GitHub, not Github
You may misspelling the name of the service!
- justifications:
+ justification:
- When you mean a service different from GitHub
- When GitHub is renamed
glob:
- app/views/**/*.html.slim
- config/locales/**/*.yaml
@@ -118,22 +118,23 @@
pattern:
token: "<blink"
case_sensitive: false
message: Stop using <blink> tag
glob: "**/*.html"
-justifications:
+justification:
- If Lynx is the major target of the web site
```
It tries to tokenize the input and generates a regexp which matches sequence of tokens.
The tokenization is heuristic and may not work well for your programming language.
In that case, try using *regexp pattern*.
-The generated regexp of `<blink` is `<\s*blink\b`.
+The generated regexp of `<blink` is `<\s*blink\b/m`.
It matches with `<blink />` and `< BLINK>`, but does not match with `https://www.chromium.org/blink`.
It accepts one optional attribute, `case_sensitive`.
The default value of `case_sensitive` is `true`.
+Note that the generated regexp is in multiline mode.
### *glob*
A *glob* can be a string, or a hash.