Skip to content

Instantly share code, notes, and snippets.

@rob-murray
Last active May 20, 2019 09:34
Show Gist options
  • Save rob-murray/416bd01b2a9a1244fd39f3b4b489b6f3 to your computer and use it in GitHub Desktop.
Save rob-murray/416bd01b2a9a1244fd39f3b4b489b6f3 to your computer and use it in GitHub Desktop.
linters:
LineLength:
max: 40
# frozen_string_literal: true
source "https://rubygems.org"
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
# Inline disable LineLength works:
gem "haml_lint", github: "sds/haml-lint", ref: "0d8316d1535a008eb8673286a302026a277e4a4d"
# # Inline disable LineLength not working:
# gem "haml_lint", github: "sds/haml-lint", ref: "5b4ebf93749ad091553847c18fe7239d64c62a83"
!!!
%html{ lang: "en-GB" }
%head
%body
-# haml-lint:disable LineLength
%h1 testtesttesttesttesttesttesttesttesttesttesttest
-# haml-lint:enable LineLength
%p foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment