Commit graph

9 commits

Author SHA1 Message Date
Brett Walker
6683aa8b10 Fix uninitialized constant HamlLint::Linter
Running multiple `rake` commands with `spring', such as
`spring rake db:rollback` could cause a
`NameError: uninitialized constant HamlLint::Linter`
2018-10-17 18:27:11 -05:00
gfyoung
c8755543f0 Enable even more frozen string in lib/**/*.rb
Enables frozen string for the following files:

* lib/generators/**/*.rb
* lib/gitaly/**/*.rb
* lib/google_api/**/*.rb
* lib/haml_lint/**/*.rb
* lib/json_web_token/**/*.rb
* lib/mattermost/**/*.rb
* lib/microsoft_teams/**/*.rb
* lib/object_storage/**/*.rb
* lib/omni_auth/**/*.rb
* lib/peek/**/*.rb
* lib/rouge/**/*.rb
* lib/rspec_flaky/**/*.rb
* lib/system_check/**/*.rb

Partially addresses #47424.
2018-10-08 11:16:49 -07:00
Gabriel Mazetto
5c7a738105 [CE] Add Naming/FileName rule checking expected class/module per filename 2018-03-08 12:56:54 +00:00
Connor Shea
25283e7101
Update inline_javascript.rb to lint uses of the javascript filter as well as script tags. 2018-02-28 15:58:12 -07:00
Winnie Hellmann
83b3e9fa40 Update inline_javascript.rb 2018-02-28 21:42:34 +00:00
Winnie Hellmann
9d06504d42 Forbid all inline script tags in Linter::InlineJavaScript 2018-02-28 21:23:58 +00:00
Jacopo
181cd299f9 Adds Rubocop rule for line break after guard clause
Adds a rubocop rule (with autocorrect) to ensure line break after guard clauses.
2017-11-16 17:58:29 +01:00
winh
b3537000aa Restrict InlineJavaScript for haml_lint to dev and test environment 2017-08-08 10:36:21 +02:00
winniehell
c6bf292efb Add custom linter for inline JavaScript to haml_lint (!9742) 2017-08-07 11:37:16 +02:00