Skip to content

Commit

Permalink
Add a linter for haml
Browse files Browse the repository at this point in the history
  • Loading branch information
hellcp committed Mar 29, 2022
1 parent ce99b8e commit 8fbc3fa
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,17 @@ jobs:
bundler-cache: true
- name: Run linter
run: bundle exec rubocop
haml-linter:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
bundler-cache: true
- name: Run linter
run: bundle exec haml-lint
unit:
needs: linter
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ group :test do
gem 'selenium-webdriver'
gem 'vcr'
gem 'webmock'
gem 'haml_lint', require: false
end

group :development, :test do
Expand Down
10 changes: 9 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,12 @@ GEM
haml (>= 4.0.6, < 6.0)
html2haml (>= 1.0.1)
railties (>= 5.1)
haml_lint (0.40.0)
haml (>= 4.0, < 5.3)
parallel (~> 1.10)
rainbow
rubocop (>= 0.50.0)
sysexits (~> 1.1)
hashdiff (1.0.1)
hashie (5.0.0)
html2haml (2.2.0)
Expand Down Expand Up @@ -284,7 +290,6 @@ GEM
childprocess (>= 0.5, < 5.0)
rexml (~> 3.2, >= 3.2.5)
rubyzip (>= 1.2.2)
sexp_processor (4.16.0)
sentry-rails (5.1.1)
railties (>= 5.0)
sentry-ruby-core (~> 5.1.1)
Expand All @@ -293,6 +298,7 @@ GEM
sentry-ruby-core (= 5.1.1)
sentry-ruby-core (5.1.1)
concurrent-ruby
sexp_processor (4.16.0)
singleton (0.1.1)
sprockets (4.0.3)
concurrent-ruby (~> 1.0)
Expand All @@ -302,6 +308,7 @@ GEM
activesupport (>= 5.2)
sprockets (>= 3.0.0)
strscan (3.0.1)
sysexits (1.2.0)
temple (0.8.2)
terser (1.1.8)
execjs (>= 0.3.0, < 3)
Expand Down Expand Up @@ -341,6 +348,7 @@ DEPENDENCIES
gettext (>= 1.9.3)
gettext_i18n_rails (>= 0.4.3)
haml-rails (~> 2.0)
haml_lint
hashie
lograge
matrix
Expand Down
Binary file added vendor/cache/haml_lint-0.40.0.gem
Binary file not shown.
Binary file added vendor/cache/sysexits-1.2.0.gem
Binary file not shown.

0 comments on commit 8fbc3fa

Please sign in to comment.