选择Git版本
.haml-lint.yml
Peter Leitzen
authored and
GitLab
committed
Add new cop Gitlab/Rails/SafeFormat See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/121313 Merged-by:Peter Leitzen <pleitzen@gitlab.com> Approved-by:
Diogo Frazão <dfrazao@gitlab.com> Approved-by:
Costel Maxim <cmaxim@gitlab.com> Approved-by:
Smriti Garg <sgarg@gitlab.com> Approved-by:
Rémy Coutable <remy@rymai.me> Reviewed-by:
Rémy Coutable <remy@rymai.me>
代码所有者
将用户和群组指定为特定文件更改的核准人。 了解更多。
.haml-lint.yml 4.86 KiB
inherits_from:
- .haml-lint_todo.yml
# Whether to ignore frontmatter at the beginning of HAML documents for
# frameworks such as Jekyll/Middleman
skip_frontmatter: false
exclude:
- 'vendor/**/*'
- 'spec/**/*'
- 'ee/spec/**/*'
require:
- './haml_lint/linter/documentation_links.rb'
- './haml_lint/linter/inline_javascript.rb'
- './haml_lint/linter/no_plain_nodes.rb'
linters:
AltText:
enabled: true
ClassAttributeWithStaticValue:
enabled: true
ClassesBeforeIds:
enabled: false
ConsecutiveComments:
enabled: false
ConsecutiveSilentScripts:
enabled: false
max_consecutive: 2
DocumentationLinks:
enabled: true
include:
- 'app/views/**/*.haml'
- 'ee/app/views/**/*.haml'
EmptyObjectReference:
enabled: true
EmptyScript:
enabled: true
FinalNewline:
enabled: true
present: true
HtmlAttributes:
enabled: true
IdNames:
enabled: false
ImplicitDiv:
enabled: true
InlineJavaScript:
enabled: true
InlineStyles:
enabled: false
InstanceVariables:
enabled: false
LeadingCommentSpace:
enabled: false
LineLength:
enabled: false