Coder Social home page Coder Social logo

linter-yaml's People

Contributors

dependabot[bot] avatar ferhaty avatar jmooo avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

jmooo

linter-yaml's Issues

Find yamllint config at a given path

Great plugin, but I've no idea how to use it - Yet.
Also all my lint configs are at relative to the ${GITROOT}/.github/.yaml-lint-conf.yaml - I don't know how to express this.

Ignore .yamllint config

The line-length-max is by 160 but on Atom say me yamllint that the line to lang with 80 max line.
The .yamllint file placed in the project folder.

 ls -la .yaml*
lrwxrwxrwx 1 user users  14  6. Nov 18:13 .yamllint -> .yamllint.yaml
-rw-r--r-- 1 user users 118  6. Nov 18:12 .yamllint.yaml
lrwxrwxrwx 1 user users  14  6. Nov 18:13 .yamllint.yml -> .yamllint.yaml
$ cat .yamllint.yaml
---
rules:
  colons: false
  brackets: false
  indentation:
    spaces: 2
  truthy: false
  line-length:
    max: 160

Object.dirname is deprecated.

Argument to path.dirname must be a string

Object.dirname (/private/var/folders/0d/tk5llp4s5xb4yqnxmf3f4jx80000gn/T/AppTranslocation/B86EEB87-E450-4DA6-A9F8-0FAA07A69B3C/d/Atom.app/Contents/Resources/app.asar/src/electron-shims.js:9:10)
Object.lint (/Users/agabsi/.atom/packages/linter-yaml/lib/main.js:69:113)
factory (/Users/agabsi/.atom/packages/atom-ide-ui/modules/atom-ide-ui/pkg/atom-ide-diagnostics/lib/services/LinterAdapter.js:309:42)
a._callFactory (/Users/agabsi/.atom/packages/atom-ide-ui/node_modules/rxjs/bundles/Rx.min.js:107:23)
a.tryDefer (/Users/agabsi/.atom/packages/atom-ide-ui/node_modules/rxjs/bundles/Rx.min.js:106:442)
new a (/Users/agabsi/.atom/packages/atom-ide-ui/node_modules/rxjs/bundles/Rx.min.js:106:383)

Object.dirname is deprecated.

Argument to path.dirname must be a string

Object.dirname (/private/var/folders/6_/q6lm6j1d2mb4cvprhds0q6x40000gp/T/AppTranslocation/EF2DBB08-D08D-44ED-8CDE-093D005FEEB6/d/Atom.app/Contents/Resources/app.asar/src/electron-shims.js:9:10)
Object.lint (/Users/snwachukwu/.atom/packages/linter-yaml/lib/main.js:69:113)
a.factory (/Users/snwachukwu/.atom/packages/atom-ide-ui/modules/atom-ide-ui/pkg/atom-ide-diagnostics/lib/services/LinterAdapter.js:309:42)
a._callFactory (/Users/snwachukwu/.atom/packages/atom-ide-ui/node_modules/rxjs/bundles/Rx.min.js:107:23)
a.tryDefer (/Users/snwachukwu/.atom/packages/atom-ide-ui/node_modules/rxjs/bundles/Rx.min.js:106:442)
new a (/Users/snwachukwu/.atom/packages/atom-ide-ui/node_modules/rxjs/bundles/Rx.min.js:106:383)

Linter only works for saved files

The plugin doesn't lint any new errors until I save the file. Is this the intended behaviour?

Reproduce:

  1. Create an empty test.yaml file
  2. Open it
  3. Paste:
---
config:
  - ok
  - ok:
     warning:
config2:error
  1. Linting is not happening until the file is saved

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.