Skip to content

New CLI for scanny#64

Closed
LTe wants to merge 8 commits intoopenSUSE:masterfrom
LTe:cli
Closed

New CLI for scanny#64
LTe wants to merge 8 commits intoopenSUSE:masterfrom
LTe:cli

Conversation

@LTe
Copy link
Copy Markdown
Member

@LTe LTe commented Jul 6, 2012

No description provided.

LTe added 8 commits July 6, 2012 14:26
Create Scanny::VERSION and use this constant in scanny.gemspec file
Dynamic formats for report
Require custom checks
Remove constants of disabled checks
Scan ./ directory by default
Require all files with .rb extension (require checks)
Move show_version to Scanny::Tools
In case of wrong output format exit with status 1
@dmajda
Copy link
Copy Markdown
Contributor

dmajda commented Jul 10, 2012

Given the number of issues and suggested changes I'd say it would be best to implement the CLI from the ground up in a step-wise fashion. The steps would help us untangle various issues, make a nice git history and help me review.

This is a list of steps I'd suggest (each basically means one commit, best in its own pull request so that we merge the code in gradually).

  1. Get rid of the --xml parameter and just support the simple format temporarily.
  2. Add the docopt dependency and rewrite the option processing using it. No changes to the CLI yet (no --disable option, etc.). Spec what's implemented at that point.
  3. Add support for specifying directories in addition to files and spec it.
  4. Implement and spec the --include option.
  5. Implement and spec the --disable option.
  6. Implement and spec the --format option and redesign the reporters at the same time (this will need a bit more discussion and probably take more commits).
  7. Implement the pedantic checks and once that's working, implement and spec the --pedantic option.

Specs should generally come in the same commit as the code they describe.

@LTe LTe closed this Jul 12, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants