GithubHelp home page GithubHelp logo

Missing examples about ruby-saddler HOT 3 CLOSED

packsaddle avatar packsaddle commented on July 20, 2024
Missing examples

from ruby-saddler.

Comments (3)

sanemat avatar sanemat commented on July 20, 2024

Hi @dankohn,

  • Sharing the command line
  • Multiple reporters
  • Support Rails Best Practices
  • Support Brakeman

I understand your questions, right?

  • Sharing the command line

I think that sharing the command line is not a simple solution.

We can call saddler report multiple times.
If we want to run Saddler only once, we can create "merged checkstyle file" before calling saddler report.

merge-checkstyle (command-a ...) (command-b ...) \
| saddler report ...

This requires merge-checkstyle command, I don't know this command exists. I search "checkstyle" in rubygems, but I don't find such gem.

  • Multiple reporters

Saddler doesn't support multiple reporters yet. The alternative solution is here.

command-a > command-a-result.txt
cat command-a-result.txt | saddler report --reporter x
cat command-a-result.txt | saddler report --reporter y
  • Support Rails Best Practices

rails_best_practices has format option, so we can set a checkstyle formatter.
I find a checkstyle formatter for rails_best_practices.

https://github.com/maroekun/rails_best_practices-formatter

  • Support Brakeman

I don't find a checkstyle formatter for brakeman,
https://github.com/presidentbeef/brakeman/blob/master/OPTIONS.md#output-options

So we can use Saddler::Reporter::Github's PullRequestComment.

brakeman -f text \
| saddler report \
  --reporter Saddler::Reporter::Github::PullRequestComment

I'll add these to readme document. Thanks!

from ruby-saddler.

dankohn avatar dankohn commented on July 20, 2024

Thanks for the response. Since Saddler doesn't support two simultaneous formatters, could you document using the tee command in bash to send the output to two different Saddler instances? See http://unix.stackexchange.com/questions/28503/how-can-i-send-stdout-to-multiple-commands

from ruby-saddler.

sanemat avatar sanemat commented on July 20, 2024

@dankohn
I added FAQ section in readme. #35
And I split this issue to #32, #33.

Thanks for your question! Saddler needs more documents, more blog posts and more plugins. 🐱
I believe Saddler is very useful application 💪

from ruby-saddler.

Related Issues (20)

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.