ferhaty / linter-yaml Goto Github PK
View Code? Open in Web Editor NEWYAML Linter for Atom
License: MIT License
YAML Linter for Atom
License: MIT License
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.
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
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)
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)
The plugin doesn't lint any new errors until I save the file. Is this the intended behaviour?
Reproduce:
---
config:
- ok
- ok:
warning:
config2:error
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.