GithubHelp home page GithubHelp logo

linter-haml's Introduction

linter-haml

Build Status

This linter plugin for Linter provides an interface to haml-lint. It will be used with files that have the "HAML" syntax.

Installation

Dependencies

This plugin requires a separate package to be installed to run it and provide an interface. If Linter is not installed already, it will be installed for you to provide this.

Linter-haml relies on the HAML-lint gem to perform linting. If you do not currently have HAML-lint installed, follow the instructions here.

As Atom doesn't include a HAML language by default, language-haml will be installed for you if it isn't already. You will likely want to disable language-ruby as it will mark all files as Ruby before language-haml.

If you prefer an alternative to any of the above packages that are installed for you, simply disable them.

Plugin installation

$ apm install linter-haml

Settings

linter-haml can be configured from Atom's Settings menu in the Packages section. All available options are shown there.

Contributing

If you would like to contribute enhancements or fixes, please do the following:

  1. Fork the plugin repository.
  2. Hack on a separate topic branch created from the latest master.
  3. Commit and push the topic branch.
  4. Make a pull request.
  5. welcome to the club

linter-haml's People

Contributors

arcanemagus avatar averydev avatar erreinion avatar greenkeeper[bot] avatar greenkeeperio-bot avatar jschroeder9000 avatar maletor avatar renovate-bot avatar tolerantx avatar vzamanillo avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

linter-haml's Issues

Lint on the fly does not work

Hello!

I've just installed linter (1.3.1) plugin and linter-haml (0.4.0) plugin into Atom 1.0.4. Haven't added any additional settings but linting on the fly doesn't work.
Since lint-ing works via console (executing haml-lint gem) I guess there is no problem with my Ruby.
Also it doesn't look like a problem in Linter plugin because .scss lint-ing works too.

P.S. running it under windows 8.1 and ruby 2.0

Blank error message when running Ruby 2.6.4

After receiving this warning:

haml-lint: warning: parser/current is loading parser/ruby26, which recognizes warning: 2.6.4-compliant syntax, but you are running 2.6.3

I upgraded my application to ruby 2.6.4 and re-ran bundler. After the upgrade I started seeing a blank error message in Atom whenever opening a file to be linted. The problem persists even after a reinstall of linter-haml and the problem disappears when rolled back to Ruby 2.6.3

Here's the error message in Atom (notice, no content):

<atom-notifications><atom-notification class="error icon icon-flame native-key-bindings" tabindex="-1"><div class="content">
  <div class="message item"></div>
  <div class="detail item">
    <div class="detail-content"></div>
    <a href="#" class="stack-toggle"></a>
    <div class="stack-container"></div>
  </div>
  <div class="meta item"></div>
</div>
<div class="close icon icon-x"></div>
<div class="close-all btn btn-error">Close All</div></atom-notification></atom-notifications>

There are no errors in the developer console either.

Anything else to try to see what's happening here?

An in-range update of eslint is breaking the build 🚨

Version 4.18.0 of eslint was just published.

Branch Build failing 🚨
Dependency eslint
Current Version 4.17.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

eslint is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details

Commits

The new version differs by 14 commits.

  • 883a2a2 4.18.0
  • 89d55ca Build: changelog update for 4.18.0
  • 70f22f3 Chore: Apply memoization to config creation within glob utils (#9944)
  • 0e4ae22 Update: fix indent bug with binary operators/ignoredNodes (fixes #9882) (#9951)
  • 47ac478 Update: add named imports and exports for object-curly-newline (#9876)
  • e8efdd0 Fix: support Rest/Spread Properties (fixes #9885) (#9943)
  • f012b8c Fix: support Async iteration (fixes #9891) (#9957)
  • 74fa253 Docs: Clarify no-mixed-operators options (fixes #9962) (#9964)
  • 426868f Docs: clean up key-spacing docs (fixes #9900) (#9963)
  • 4a6f22e Update: support eslint-disable-* block comments (fixes #8781) (#9745)
  • 777283b Docs: Propose fix typo for function (#9965)
  • bf3d494 Docs: Fix typo in max-len ignorePattern example. (#9956)
  • d64fbb4 Docs: fix typo in prefer-destructuring.md example (#9930)
  • f8d343f Chore: Fix default issue template (#9946)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

LinterHaml.Linter is deprecated.

AtomLinter v0.X.Y API has been deprecated. Please refer to the Linter docs to update and the latest API: https://github.com/atom-community/linter/wiki/Migrating-to-the-new-API

LinterHaml.Linter (/home/joe/.atom/packages/linter/lib/linter.coffee:60:4)
new LinterHaml (/home/joe/.atom/packages/linter-haml/lib/linter-haml.coffee:21:4)
Object.lint (/home/joe/.atom/packages/linter/lib/legacy.coffee:61:21)
<unknown> (/home/joe/.atom/packages/linter/lib/editor-linter.coffee:69:25)
currentLinter (/home/joe/.atom/packages/linter/lib/editor-linter.coffee:68:19)
<unknown> (/home/joe/.atom/packages/linter/lib/editor-linter.coffee:82:22)

haml-lint not working in atom.

I am able to run haml-lint on the command line, and receive back detailed information regarding potential haml issues (that I've purposefully made to test this out). However, I cannot get this working within atom. I have tried explicitly setting the path to haml-lint both using rbenv which haml-lint , and when that didn't work using just which haml-lint path. Neither works. I have tried closing down Atom completely and reopening multiple times, etc. I have the base linter addon installed in addition to the language-haml package. My other linters in atom are working fine (scss/sass, rubocop) . Any thoughts or suggestions? I'm at a loss and have spent far too long trying to get this to work.

Wrong warning

Hi all,

not sure whether this is a warning or an error but everything's working fine, since when in the browser, the page is rendered correctly.

Thanks!

screen shot 2018-02-03 at 10 35 20

An in-range update of eslint-plugin-import is breaking the build 🚨

Version 2.9.0 of eslint-plugin-import was just published.

Branch Build failing 🚨
Dependency eslint-plugin-import
Current Version 2.8.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

eslint-plugin-import is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details

Commits

The new version differs by 101 commits.

  • 180d71a bump plugin to v2.9.0
  • 0231c78 Merge pull request #1026 from isiahmeadows/patch-1
  • ae5a031 Missed a link
  • 5b0777d Add no-default-export + docs/tests (#936)
  • ff3d883 Merge pull request #1025 from patrick-steele-idem/update-dependencies
  • 654d284 Merge pull request #1024 from patrick-steele-idem/issue-1023
  • 9b20a78 Upgraded "find-root" and "lodash.get" for the webpack resolver
  • 8778d7c Fixes #1023 - Load exceptions in user resolvers are not reported
  • 91cfd6d Merge pull request #1022 from nevir/patch-1
  • 0e729c7 no-self-import is unreleased
  • 219a8d2 Merge pull request #1012 from silvenon/extensions-export
  • ab49972 Support export declarations in extensions rule
  • 3268a82 Merge pull request #1010 from silvenon/extensions
  • fdcd4d9 Add a .coffee test proving extension resolve order
  • bc50394 Merge pull request #1009 from silvenon/extensions

There are 101 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of eslint-config-airbnb-base is breaking the build 🚨

Version 11.3.0 of eslint-config-airbnb-base just got published.

Branch Build failing 🚨
Dependency eslint-config-airbnb-base
Current Version 11.2.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

As eslint-config-airbnb-base is “only” a devDependency of this project it might not break production or downstream projects, but “only” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this 💪

Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

An in-range update of eslint is breaking the build 🚨

Version 4.8.0 of eslint just got published.

Branch Build failing 🚨
Dependency eslint
Current Version 4.7.2
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

As eslint is “only” a devDependency of this project it might not break production or downstream projects, but “only” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this 💪

Status Details
  • continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

Release Notes v4.8.0
  • 3f2b908 New: add option to report unused eslint-disable directives (fixes #9249) (#9250) (Teddy Katz)
  • ff2be59 Fix: dot notation rule failing to catch string template (fixes #9350) (#9357) (Phil Quinn)
  • b1372da Chore: remove sourceCode property from Linter (refs #9161) (#9363) (Teddy Katz)
  • cef6f8c Docs: remove line about removing rules from semver policy (#9367) (Teddy Katz)
  • 06efe87 Fix: Add meta element with charset attribute. (#9365) (H1Gdev)
  • 458ca67 Docs: update architecture page (fixes #9337) (#9345) (Victor Hom)
  • 1c6bc67 Fix: special EventEmitter keys leak information about other rules (#9328) (Teddy Katz)
  • d593e61 Docs: update eslint.org links to use https (#9358) (Teddy Katz)
  • 38d0cb2 Fix: fix wrong code-path about try-for-in (fixes #8848) (#9348) (Toru Nagashima)
  • 434d9e2 Fix: Invalid font-size property value issue. (#9341) (H1Gdev)
  • a7668c2 Chore: Remove unnecessary slice from logging utility (#9343) (Gyandeep Singh)
  • 2ff6fb6 Chore: remove unused arguments in codebase (#9340) (Teddy Katz)
Commits

The new version differs by 14 commits.

  • 8ebb034 4.8.0
  • 916a2d7 Build: changelog update for 4.8.0
  • 3f2b908 New: add option to report unused eslint-disable directives (fixes #9249) (#9250)
  • ff2be59 Fix: dot notation rule failing to catch string template (fixes #9350) (#9357)
  • b1372da Chore: remove sourceCode property from Linter (refs #9161) (#9363)
  • cef6f8c Docs: remove line about removing rules from semver policy (#9367)
  • 06efe87 Fix: Add meta element with charset attribute. (#9365)
  • 458ca67 Docs: update architecture page (fixes #9337) (#9345)
  • 1c6bc67 Fix: special EventEmitter keys leak information about other rules (#9328)
  • d593e61 Docs: update eslint.org links to use https (#9358)
  • 38d0cb2 Fix: fix wrong code-path about try-for-in (fixes #8848) (#9348)
  • 434d9e2 Fix: Invalid font-size property value issue. (#9341)
  • a7668c2 Chore: Remove unnecessary slice from logging utility (#9343)
  • 2ff6fb6 Chore: remove unused arguments in codebase (#9340)

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

TypeError: path must be a string

Not sure what's causing this issue, but when I linter-haml runs on a .eco.haml file, I get the following errors:

http://i.nick.sg/0w3f0u0g222P/Image%202016-04-01%20at%2011.17.42%20AM.png

I'd be happy to supply more information if it might help to debug, as I'm fairly new to Atom. Let me know what that information might be and I'll send along.

Not work with ruby 2.5.4+

Hello. haml-lint work from command line.
But atom not show lint warning

ruby -v
ruby 2.6.2p47 (2019-03-13 revision 67232) [x86_64-linux]
haml-lint -v
haml-lint 0.28.0
haml-lint .
log_view.html.haml:18 [W] LineLength: Line is too long. [172/80]

1 file inspected, 1 lint detected
dvm@massahouse:~/RoR/tham$ atom log_view.html.haml 

Снимок экрана из 2019-03-22 18-00-57

An in-range update of eslint-plugin-import is breaking the build 🚨

Version 2.3.0 of eslint-plugin-import just got published.

Branch Build failing 🚨
Dependency eslint-plugin-import
Current Version 2.2.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

As eslint-plugin-import is “only” a devDependency of this project it might not break production or downstream projects, but “only” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this 💪

Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details

Commits

The new version differs by 46 commits.

  • b79e083 Merge pull request #837 from benmosher/release-2.3.0
  • 74425a2 changelog update for 2.3.0
  • 1377f55 bump v2.3.0
  • 2efc41a fix null pointer exception (#717) (#797)
  • 0fb592e Add support to specify the package.json (#685)
  • 2cc9768 Add test for flow type export (#835)
  • bd0e5e3 Merge pull request #821 from smably/patch-1
  • 412e518 Clarify docs for glob arrays
  • 106740f chore(package): update typescript-eslint-parser to version 2.1.0 (#790)
  • 6288cf9 chore(package): update babel-register to version 6.24.1 (#796)
  • 2e9eea6 newline-after-import test syntax fails
  • c9f10e8 extensions test fixes, attempt 2
  • 861765f fix babel syntax errors in extensions tests
  • 82f796c chore(package): update cross-env to version 4.0.0 (#783)
  • 98e7048 Merge pull request #757 from gmathieu/fix-default-keyword

There are 46 commits in total.

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

Error: spawn haml-lint ENOENT

Issue

Error: spawn haml-lint ENOENT
at exports._errnoException (util.js:890:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:182:32)
at onErrorNT (internal/child_process.js:348:16)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)

Details

Atom v. 1.11.2
OSX Yosemite 10.10.5

Uncaught Error: spawn EACCES

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.4.0
System: Mac OS X 10.10.5
Thrown From: linter-haml package, v1.1.0

Stack Trace

Uncaught Error: spawn EACCES

At /Applications/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:260

Error: spawn EACCES
    at exports._errnoException (util.js:837:11)
    at ChildProcess.spawn (internal/child_process.js:298:11)
    at Object.exports.spawn (child_process.js:351:9)
    at BufferedProcess.module.exports.BufferedProcess.spawn (/Applications/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:188:44)
    at new BufferedProcess (/Applications/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:52:14)
    at /Users/katrina/.atom/packages/linter-haml/lib/linter.coffee:151:28
    at Linter.lintFile (/Users/katrina/.atom/packages/linter-haml/lib/linter.coffee:138:14)
    at /Users/katrina/.atom/packages/linter-haml/lib/linter.coffee:122:26

Commands

     -8:19.5.0 tree-view:add-file (span.name.icon.icon-file-directory)
     -8:02.5.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -2:34.7.0 core:paste (atom-text-editor.editor.is-focused)
     -2:23.4.0 core:copy (atom-text-editor.editor.is-focused)
  2x -2:19.2.0 editor:newline (atom-text-editor.editor.is-focused)
  2x -2:18.7.0 core:move-up (atom-text-editor.editor.is-focused)
     -2:17.8.0 core:paste (atom-text-editor.editor.is-focused)
     -2:10.1.0 core:save (atom-text-editor.editor.is-focused)
     -2:03.6.0 core:save-as (atom-text-editor.editor.is-focused)
  3x -1:32.2.0 settings-view:check-for-package-updates (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-one-dark-syntax.theme-one-dark-ui)
     -0:40.2.0 tree-view:move (span.name.icon.icon-file-text)
  4x -0:36.7.0 core:backspace (atom-text-editor.editor.mini.is-focused)
     -0:31.2.0 core:confirm (atom-text-editor.editor.mini.is-focused)

Config

{
  "core": {},
  "linter-haml": {
    "copyRubocopYml": true,
    "hamlLintExecutablePath": "/Users/katrina/.atom/packages/save-session/projects"
  }
}

Installed Packages

# User
autosave, v0.23.0
formatter-coffeescript, v0.1.1
language-haml, v0.23.15
linter, v1.11.3
linter-coffeescript, v1.0.0
linter-haml, v1.1.0
save-session, v0.15.7

# Dev
No dev packages

Plugin fails when .rubocop.yml inherits from another file

This happens if the option "Copy rubocop.yml to temporary directory" is active.

linter-haml error Error: No such file or directory @ rb_sysopen - /var/folders/l1/c7gt0c8x1lsgn49kthq1fmyc0000gn/T/AtomLinter116021-27770-5yvtrn/.rubocop_todo.yml

Here's how the .rubocop.yml file looks like:

---
inherit_from: .rubocop_todo.yml

Style/DotPosition:
  EnforcedStyle: trailing

Style/MultilineOperationIndentation:
  EnforcedStyle: indented

Lint/EndAlignment:
  AlignWith: variable

Lint/HandleExceptions:
  Exclude:
    - 'bin/*'

An in-range update of atom-package-deps is breaking the build 🚨

Version 4.6.1 of atom-package-deps was just published.

Branch Build failing 🚨
Dependency atom-package-deps
Current Version 4.6.0
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

atom-package-deps is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details

Commits

The new version differs by 22 commits.

  • 0bac264 :arrow_up: Bump version to 4.6.1
  • 6d1509b :memo: Document version in CHANGELOG
  • d2d75da Merge pull request #111 from UziTech/stop-enabling-notifications
  • c19a4a1 add console warning if notifications are disabled
  • e600c24 chore(package): update flow-bin to version 0.55.0 (#112)
  • 227f223 remove enablePackage helper as it is never used
  • 83aa2d1 let user get the notification however they want
  • 4e705d8 chore(package): update flow-bin to version 0.54.0 (#109)
  • 8f51b52 chore(package): update flow-bin to version 0.53.0 (#107)
  • 7161535 :new: Add package-lock
  • 421f16e Merge pull request #105 from steelbrain/greenkeeper/flow-bin-0.46.0
  • 6373f95 chore(package): update flow-bin to version 0.46.0
  • 902b690 Merge pull request #104 from steelbrain/steelbrain/fix-on-windows
  • 4ccdede :art: Address reviewer's comment
  • 1eeb892 :bug: Fix a typo

There are 22 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Implement specs

It looks like this linter does not currently have any specs written for it, adding it to the list being maintained here for tracking.

Specs do not need to be super detailed, as they should mainly test whether the package is properly running the linter plugin and parsing its messages. Leave testing of the linter functionality to the author of the linter.

If you need any help feel free to ask!

Uncaught TypeError: Cannot read property 'match' of undefined

Seems to happen as I'm typing after having just backspaced through something.

Atom Version: 1.0.5
System: Ubuntu 15.04
Thrown From: linter-haml package, v1.0.0

Stack Trace

Uncaught TypeError: Cannot read property 'match' of undefined

At /opt/atom/resources/app.asar/src/tokenized-buffer.js:680

TypeError: Cannot read property 'match' of undefined
    at TokenizedBuffer.module.exports.TokenizedBuffer.indentLevelForLine (/opt/atom/resources/app.asar/src/tokenized-buffer.js:680:23)
    at DisplayBuffer.module.exports.DisplayBuffer.indentLevelForLine (/opt/atom/resources/app.asar/src/display-buffer.js:820:35)
    at TextEditor.module.exports.TextEditor.indentLevelForLine (/opt/atom/resources/app.asar/src/text-editor.js:2250:33)
    at TextEditor.module.exports.TextEditor.indentationForBufferRow (/opt/atom/resources/app.asar/src/text-editor.js:2222:19)
    at /home/scott/.atom/packages/linter-haml/lib/linter.coffee:166:42
    at Function.self.forEach (/home/scott/.atom/packages/linter-haml/node_modules/xregexp/xregexp-all.js:542:22)
    at BufferedProcess.exit (/home/scott/.atom/packages/linter-haml/lib/linter.coffee:164:23)
    at triggerExitCallback (/opt/atom/resources/app.asar/src/buffered-process.js:213:47)
    at /opt/atom/resources/app.asar/src/buffered-process.js:220:18
    at Socket.<anonymous> (/opt/atom/resources/app.asar/src/buffered-process.js:98:18)
    at emitOne (events.js:82:20)
    at Socket.emit (events.js:166:7)
    at Pipe.close (net.js:464:12)

Commands

     -0:44.8.0 core:move-right (atom-text-editor.editor.is-focused)
     -0:44.4.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:42.9.0 core:save (atom-text-editor.editor.is-focused)
     -0:23.9.0 core:move-up (atom-text-editor.editor.is-focused)
     -0:23.5.0 core:move-left (atom-text-editor.editor.is-focused)
  2x -0:19.6.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:15 core:move-right (atom-text-editor.editor.is-focused)
     -0:14.1.0 core:move-left (atom-text-editor.editor.is-focused)
  7x -0:12.4.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:09.9.0 core:move-right (atom-text-editor.editor.is-focused)
     -0:09.6.0 core:move-left (atom-text-editor.editor.is-focused)
  2x -0:09.4.0 editor:newline (atom-text-editor.editor.is-focused)
     -0:02.1.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:01.9.0 snippets:next-tab-stop (atom-text-editor.editor.is-focused)
     -0:01.9.0 snippets:expand (atom-text-editor.editor.is-focused)
     -0:01.9.0 editor:indent (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "projectHome": "/home/scott/Documents/Code",
    "disabledPackages": [
      "language-ruby"
    ],
    "themes": [
      "one-outlander-ui",
      "gruvbox"
    ]
  }
}

Installed Packages

# User
atom-beautify, v0.28.11
atom-django, v0.3.0
autocomplete-php, v0.3.6
autocomplete-python, v0.5.3
autocomplete-ruby, v0.1.0
autocomplete-sass, v0.1.0
browser-refresh, v0.9.0
color-picker, v2.0.11
django-templates, v0.5.0
file-icon-supplement, v0.8.3
file-icons, v1.6.3
git-tab-status, v1.9.2
grunt-runner, v0.11.0
gruvbox, v1.0.5
language-apache, v1.3.0
language-cmake, v0.1.4
language-conky, v0.2.0
language-dart, v0.2.0
language-diff, v0.3.0
language-dotenv, v1.0.0
language-gettext, v0.6.1
language-gitignore, v0.2.0
language-haml, v0.21.0
language-htaccess, v0.1.1
language-ini, v1.11.0
language-log, v0.5.0
language-lua, v0.9.4
language-qml, v1.0.0
language-rspec, v0.3.0
language-ruby-without-erb, v0.52.0
language-svg, v0.8.0
linter, v1.3.4
linter-bootlint, v0.0.6
linter-coffeelint, v1.0.2
linter-cpplint, v0.1.4
linter-csslint, v1.0.5
linter-erb, v0.1.1
linter-haml, v1.0.0
linter-js-yaml, v1.1.1
linter-jshint, v1.1.5
linter-less, v2.0.3
linter-lua, v1.0.0
linter-pep8, v1.0.1
linter-ruby, v1.0.1
linter-scss-lint, v2.0.0
linter-shellcheck, v1.0.1
linter-xmllint, v0.0.7
minimap, v4.12.2
minimap-git-diff, v4.1.7
one-outlander-ui, v0.3.1
pigments, v0.9.3
recent-projects, v0.7.6
tabs-to-spaces, v0.11.0
travis-ci-status, v0.16.0
tree-view-git-status, v0.1.2

# Dev
No dev packages

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Edited/Blocked

These updates have been manually edited so Renovate will no longer make changes. To discard all commits and start over, click on a checkbox.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

bundler
Gemfile
npm
package.json
  • atom-linter 10.0.0
  • atom-package-deps 5.1.0
  • escape-html 1.0.3
  • eslint 5.16.0
  • eslint-config-airbnb-base 13.1.0
  • eslint-plugin-import 2.17.2
  • jasmine-fix 1.3.1

  • Check this box to trigger a request for Renovate to run again on this repository

RuboCop Errors » Unexpected tokens

Hi guys, I'm finding an issue with my haml-linting using linter-haml in atom.

It seems like the rubocop implementation isn't realising that the file is a HAML file.

screen shot 2016-07-19 at 1 17 36 pm

This is what I see at the bottom of my *.html.haml pages.

If I run from command line "haml-lint app/views" there's no reference to these errors.

Thoughts?

Rubocop config is ignored

Currently we have a problem with rubocop config being ignored.

Say I have a file I am editing/linting located at ~/my_project/foo/bar.html.haml.

Then, before linting begins, a temporary file is written out to /tmp/hash_dir/bar.html.haml. The process that linter spawns has cwd set to ~/my_project/foo, which is fine for picking up the correct haml-lint.yml file without any intervention because haml-lint uses ruby's Dir.pwd as a starting point to locate haml-lint.yml.

However, rubocop starts looking for .rubocop.yml at the file's location (in this exemple, /tmp/hash_dir/bar.html.haml. This is a problem because most likely the correct location for .rubocop.yml is ~/my_project/.rubocop.yml, although because of rubocop's config inheritance abilities, it's possible that ~/my_project/foo/.rubocop.yml should be the config file loaded.

The linter-rubocop package solves this with a findFile call looking for .rubocop.yml starting with cwd. Theoretically we could do the same, but haml-lint does not currently support specifying the location of the rubocop config, only the location of the haml-lint config.

Line numbers are off when using skip_frontmatter: true

I have skip_frontmatter: true in .haml-lint.yml.

Warning displayed in Atom:

LineLength: Line is too long. [112/80] at line 9 col 5

---
title: Veranstaltungen

---
%h1
  - unless @item.fetch(:year, nil)
    Zukünftige
  Veranstaltungen
  - if @item.fetch(:year, nil)
    von                                  # Line 9 is reported as too long.
    = @item.fetch(:year)

- events = Events.new(@items).in_year(@item.fetch(:year, Date.today.year), future: @item.fetch(:year, nil).nil?)
# The last line is the actually offending line.

Support v2 Linter API

In the v2.3.0 release of linter support for the v1 API was removed, breaking semver. This means that this provider is no longer supported by the current version of linter.

To get this provider working again it will need to be upgrade to the v2 API, a guide for accomplishing that can be found here: Upgrading to Standard Linter v2.

Until this is fixed in order to use this provider you will need to downgrade to the last version of linter that supports the v1 API, you can do this with apm install [email protected].

Package.getActivationCommands is deprecated.

Use activationCommands instead of activationEvents in your package.json
Commands should be grouped by selector as follows:

  "activationCommands": {
    "atom-workspace": ["foo:bar", "foo:baz"],
    "atom-text-editor": ["foo:quux"]
  }
Package.getActivationCommands (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:790:9)
Package.hasActivationCommands (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:715:20)
<unknown> (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:169:24)
Package.measure (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:147:15)

An in-range update of eslint is breaking the build 🚨

Version 4.7.0 of eslint just got published.

Branch Build failing 🚨
Dependency eslint
Current Version 4.6.1
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

As eslint is “only” a devDependency of this project it might not break production or downstream projects, but “only” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this 💪

Status Details
  • continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

Release Notes v4.7.0
  • 787b78b Upgrade: Espree v3.5.1 (fixes #9153) (#9314) (Brandon Mills)
  • 1488b51 Update: run rules after node.parent is already set (fixes #9122) (#9283) (Teddy Katz)
  • 4431d68 Docs: fix wrong config in max-len example. (#9309) (薛定谔的猫)
  • 7d24dde Docs: Fix code snippet to refer to the correct option (#9313) (Ruben Tytgat)
  • 12388d4 �Chore: rewrite parseListConfig for a small perf gain. (#9300) (薛定谔的猫)
  • ce1f084 Update: fix MemberExpression handling in no-extra-parens (fixes #9156) (jackyho112)
  • 0c720a3 Update: allow autofixing when using processors (fixes #7510) (#9090) (Teddy Katz)
  • 838df76 Chore: upgrade deps. (#9289) (薛定谔的猫)
  • f12def6 Update: indent flatTernary option to handle return (fixes #9285) (#9296) (Teddy Katz)
  • e220687 Fix: remove autofix for var undef inits (fixes #9231) (#9288) (Victor Hom)
  • 002e199 Docs: fix no-restricted-globals wrong config. (#9305) (薛定谔的猫)
  • fcfe91a Docs: fix wrong config in id-length example. (#9303) (薛定谔的猫)
  • 2731f94 Update: make newline-per-chained-call fixable (#9149) (João Granado)
  • 61f1093 Chore: avoid monkeypatching Linter instances in RuleTester (#9276) (Teddy Katz)
  • 28929cb Chore: remove Linter#reset (refs #9161) (#9268) (Teddy Katz)
  • abc8634 Build: re-run browserify when generating site (#9275) (Teddy Katz)
  • 7685fed Fix: IIFE and arrow functions in no-invalid-this (fixes #9126) (#9258) (Toru Nagashima)
  • 2b1eba2 Chore: enable eslint-plugin/no-deprecated-context-methods (#9279) (Teddy Katz)
  • 981f933 Fix: reuse the AST of source code object in verify (#9256) (Toru Nagashima)
  • cd698ba Docs: move RuleTester documentation to Node.js API page (#9273) (Teddy Katz)
  • 4ae7ad3 Docs: fix inaccuracy in npm run perf description (#9274) (Teddy Katz)
  • cad45bd Docs: improve documentation for rule contexts (#9272) (Teddy Katz)
  • 3b0c6fd Chore: remove extraneous linter properties (refs #9161) (#9267) (Teddy Katz)
  • c3231b3 Docs: Fix typo in array-bracket-newline.md (#9269) (宋文强)
  • 51132d6 Fix: Formatters keep trailing '.' if preceded by a space (fixes #9154) (#9247) (i-ron-y)
  • 88d5d4d Chore: remove undocumented Linter#markVariableAsUsed method (refs #9161) (#9266) (Teddy Katz)
  • 09414cf Chore: remove internal Linter#getDeclaredVariables method (refs #9161) (#9264) (Teddy Katz)
  • f31f59d Chore: prefer smaller scope for variables in codebase (#9265) (Teddy Katz)
  • 3693e4e Chore: remove undocumented Linter#getScope method (#9253) (Teddy Katz)
  • 5d7eb81 Chore: refactor config hash caching in CLIEngine (#9260) (Teddy Katz)
  • 1a76c4d Chore: remove SourceCode passthroughs from Linter.prototype (refs #9161) (#9263) (Teddy Katz)
  • 40ae27b Chore: avoid relying on Linter#getScope/markVariableAsUsed in tests (#9252) (Teddy Katz)
  • b383d81 Chore: make executeOnFile a pure function in CLIEngine (#9262) (Teddy Katz)
  • 5e0e579 Chore: avoid internal SourceCode methods in Linter tests (refs #9161) (#9223) (Teddy Katz)
  • adab827 Chore: remove unused eslint-disable comment (#9251) (Teddy Katz)
  • 31e4ec8 Chore: use consistent names for apply-disable-directives in tests (#9246) (Teddy Katz)
  • 7ba46e6 Fix: shebang error in eslint-disable-new-line; add tests (fixes #9238) (#9240) (i-ron-y)
  • 8f6546c Chore: remove undocumented defaults() method (refs #9161) (#9237) (Teddy Katz)
  • 82d8b73 Docs: Fix error in example code for sort-imports (fixes #8734) (#9245) (i-ron-y)
  • a32ec36 Update: refactor eslint-disable comment processing (#9216) (Teddy Katz)
  • 583f0b8 Chore: avoid using globals in CLIEngine tests (#9242) (Teddy Katz)
  • c8bf687 Chore: upgrade [email protected] (#9234) (薛定谔的猫)
  • 3c41a05 Chore: always normalize rules to new API in rules.js (#9236) (Teddy Katz)
  • c5f4227 Chore: move logic for handling missing rules to rules.js (#9235) (Teddy Katz)
  • bf1e344 Chore: create report translators lazily (#9221) (Teddy Katz)
  • 2eedc1f Chore: remove currentFilename prop from Linter instances (refs #9161) (#9219) (Teddy Katz)
  • 5566e94 Docs: Replace misleading CLA links (#9133) (#9232) (i-ron-y)
  • c991630 Chore: remove ConfigOps.normalize in favor of ConfigOps.getRuleSeverity (#9224) (Teddy Katz)
  • 171962a Chore: remove internal Linter#getAncestors helper (refs #9161) (#9222) (Teddy Katz)
  • a567499 Chore: avoid storing list of problems on Linter instance (refs #9161) (#9214) (Teddy Katz)
  • ed6d088 Chore: avoid relying on undocumented Linter#getFilename API in tests (#9218) (Teddy Katz)
Commits

The new version differs by 55 commits.

  • 439e8e6 4.7.0
  • 2ec62f9 Build: changelog update for 4.7.0
  • 787b78b Upgrade: Espree v3.5.1 (fixes #9153) (#9314)
  • 1488b51 Update: run rules after node.parent is already set (fixes #9122) (#9283)
  • 4431d68 Docs: fix wrong config in max-len example. (#9309)
  • 9d1df92 Chore: Revert "avoid handling Rules instances in config-validator" (#9295)
  • 7d24dde Docs: Fix code snippet to refer to the correct option (#9313)
  • 12388d4 �Chore: rewrite parseListConfig for a small perf gain. (#9300)
  • ce1f084 Update: fix MemberExpression handling in no-extra-parens (fixes #9156)
  • 0c720a3 Update: allow autofixing when using processors (fixes #7510) (#9090)
  • 838df76 Chore: upgrade deps. (#9289)
  • f12def6 Update: indent flatTernary option to handle return (fixes #9285) (#9296)
  • e220687 Fix: remove autofix for var undef inits (fixes #9231) (#9288)
  • 002e199 Docs: fix no-restricted-globals wrong config. (#9305)
  • fcfe91a Docs: fix wrong config in id-length example. (#9303)

There are 55 commits in total.

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

An in-range update of atom-package-deps is breaking the build 🚨

☝️ Greenkeeper’s updated Terms of Service will come into effect on April 6th, 2018.

Version 4.6.2 of atom-package-deps was just published.

Branch Build failing 🚨
Dependency atom-package-deps
Current Version 4.6.1
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

atom-package-deps is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details

Commits

The new version differs by 6 commits.

  • 9f8d445 :arrow_up: Bump version to 4.6.2
  • dd4ea67 :bug: Add support for newer selector for content
  • 73bc9f6 Update flow-bin to version 0.68.0 🚀 (#118)
  • 73f2da4 chore(package): update flow-bin to version 0.68.0
  • 1fe0dcb Update flow-bin to version 0.67.1 🚀 (#117)
  • 862c6d1 chore(package): update flow-bin to version 0.66.0 (#116)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

parser warning breaks linter-haml

For some reason linter-haml is not working when this warning is there. It is a warning not an error.
haml-lint its working in iTerm (same warning there).

screen shot 2016-10-26 at 6 20 18 pm

Error: warning: parser/current is loading parser/ruby22, which recognizes warning: 2.2.5-compliant syntax, but you are running 2.2.2. warning: please see https://github.com/whitequark/parser#compatibility-with-ruby-mri.

Error: warning: parser/current is loading parser/ruby22, which recognizes
warning: 2.2.5-compliant syntax, but you are running 2.2.2.
warning: please see https://github.com/whitequark/parser#compatibility-with-ruby-mri.
    at ChildProcess.<anonymous> (/Users/samuilgoranov/.atom/packages/linter-haml/node_modules/sb-exec/lib/index.js:56:20)
    at emitTwo (events.js:100:13)
    at ChildProcess.emit (events.js:185:7)
    at maybeClose (internal/child_process.js:850:16)
    at Socket.<anonymous> (internal/child_process.js:323:11)
    at emitOne (events.js:90:13)
    at Socket.emit (events.js:182:7)
    at Pipe._onclose (net.js:477:12)

Set custom rubocop config location

I'm trying to enforce two different configurations for a single cop (one for haml, the other for ruby).

It seems like the only way to do this is to specify a separate rubocop.yml for haml-lint, which works via the HAML_LINT_RUBOCOP_CONF environment variable.

How can I pass this env var from linter-haml?

Object.activate is deprecated.

AtomLinter v0.X.Y API has been deprecated. Please refer to the Linter docs to update and the latest API: https://github.com/AtomLinter/Linter/wiki/Migrating-to-the-new-API

Object.activate (/Users/ksarantakos/.atom/packages/linter/lib/main.coffee:57:8)
Package.activateNow (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:240:19)
<unknown> (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:221:30)
Package.measure (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:165:15)
Package.activate (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:213:14)
PackageManager.activatePackage (/Applications/Atom.app/Contents/Resources/app.asar/src/package-manager.js:452:21)

lint error with rbenv and many ruby version installed

The temporary bypass solution was to run atom with this command:
RBENV_VERSION=2.3.3 atom .

I have 3 versions of ruby and i set 2.3.3 has global version, i have a system version installed in /usr/bin/ruby. I installed haml-lint gem with ruby global version (2.3.3).

When i run atom on a project i have a lint error from rbenv saying me that the haml-lint gem is installed only for ruby version 2.3.3. So i think that the linter-haml plugin don't use my rbenv settings from ~/.rbenv ?

linter-haml does not work.

I have PURPOSELY made BIG "errors" in my haml file to check 'linter-haml' plug in. I had no error reported, no warning and no indication that 'linter-haml' has failed.

In my Terminal.app window, I have run the haml-lint (the software installed with gem) and got this:

yjc:rails_5 ycrepeau$ haml-lint app/views/
warning: parser/current is loading parser/ruby23, which recognizes
warning: 2.3.1-compliant syntax, but you are running 2.3.0.
warning: please see https://github.com/whitequark/parser#compatibility-with-ruby-mri.
app/views/home/index.html.haml:5 [W] LineLength: Line is too long. [454/80]
app/views/home/index.html.haml:6 [W] RuboCop: unexpected token tCOLON
(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)
app/views/home/index.html.haml:10 [W] LineLength: Line is too long. [119/80]
[... tons of errors, warning etc. with my haml files ...]

In the plugin preference (linter-haml), I have set the exact PATH of my haml-lint executable.

Nothing seems to work.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.