Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write results to file #48

Closed
davegreenwp opened this issue Aug 30, 2015 · 3 comments
Closed

Write results to file #48

davegreenwp opened this issue Aug 30, 2015 · 3 comments

Comments

@davegreenwp
Copy link

One of the features of SCSS Lint that I found useful was the ability to have the results written to a file, with the ability to specify the file path. This would be a really useful addition.

I think it would be useful to silence the console output if writing to a file is chosen.

@Snugug
Copy link
Member

Snugug commented Aug 30, 2015

The way Sass Lint is set up, there is no logging of output. Results are passed to the format function to format them for logging, but each implementation chooses their own way of handling output.

The actual output of linting is simply an array of detects. The formatter function is what creates turns the array in to usable output. Currently, it uses ESLint's Stylish formatter, but any of those formatters could be used in theory.

The question that needs to be discussed is how to best describe what the output file should be and what formatter to use, especially in config.

Snugug added a commit that referenced this issue Aug 30, 2015
Currently just console logs out results. Will allow Sass Lint to handle #48
@joshuacc
Copy link
Contributor

I would love to have this as well, particularly with junit or checkstyle XML output so I can easily integrate sass-lint into my continuous integration server.

@Snugug Snugug added this to the 1.2.0 milestone Aug 31, 2015
@Snugug
Copy link
Member

Snugug commented Aug 31, 2015

  • Write output to file
  • Config formatter options

@Snugug Snugug self-assigned this Sep 4, 2015
donabrams pushed a commit to donabrams/sass-lint that referenced this issue Nov 19, 2015
Currently just console logs out results. Will allow Sass Lint to handle sasstools#48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants