SamVerschueren / clinton

Project style linter
MIT License
122 stars 9 forks source link

Use relative paths in the output #35

Closed sindresorhus closed 8 years ago

sindresorhus commented 8 years ago

Before:

/Users/sindresorhus/dev/ava/test/fixture/.DS_Store
    ✖ Filename is not in kebab case. Rename it to `.ds-store`. (filename-case)

After:

test/fixture/.DS_Store
    ✖ Filename is not in kebab case. Rename it to `.ds-store`. (filename-case)
SamVerschueren commented 8 years ago

Not sure about the implementation though. I calculate the relative paths in cli.js but internally the file property is still absolute. Is this ok, or should I handle it internally and let don't bother cli.js with this?

Feedback, remarks or just radiosilence. Everything is welcome :).

sindresorhus commented 8 years ago

cli.js is the correct place