Comments (4)
@matiasgarcia What did you have in mind? You can do that already if you do this:
skunk app > report.txt
Would that satisfy your use case?
Let me know!
from skunk.
Hey @etagwerker!
In fact, I did that, but the problem was that my file had the loading text in it. For example:
running flay smells
........................................
running flog smells
.................................................................................................................................................................................................................................................................................................................................................................
running reek smells
.................................................................................................................................................................................................................................................................................................................................................................
running complexity
.................................................................................................................................................................................................................................................................................................................................................................
Our app is huge and cleaning that up was a hassle that's why it would be nice to just get in a file the table :)
from skunk.
@matiasgarcia Good point! I think this would be an interesting feature. 👍
from skunk.
Just to clarify. The idea here is to have an --out [FILE]
flag that outputs the result to a file but not the logging text, i.e
skunk app --out my_file
#my_file
New critique at file:////Users/etagwerker/Projects/fastruby/skunk/tmp/rubycritic/overview.html
+-----------------------------------------------------+----------------------------+----------------------------+----------------------------+----------------------------+----------------------------+
| file | skunk_score | churn_times_cost | churn | cost | coverage |
+-----------------------------------------------------+----------------------------+----------------------------+----------------------------+----------------------------+----------------------------+
| lib/skunk/cli/commands/default.rb | 166.44 | 1.6643999999999999 | 3 | 0.5548 | 0 |
| lib/skunk/cli/application.rb | 139.2 | 1.392 | 3 | 0.46399999999999997 | 0 |
| lib/skunk/cli/command_factory.rb | 97.6 | 0.976 | 2 | 0.488 | 0 |
| test/test_helper.rb | 75.2 | 0.752 | 2 | 0.376 | 0 |
| lib/skunk/rubycritic/analysed_module.rb | 48.12 | 1.7184 | 2 | 0.8592 | 72.72727272727273 |
| test/lib/skunk/cli/commands/status_reporter_test.rb | 45.6 | 0.456 | 1 | 0.456 | 0 |
| lib/skunk/cli/commands/base.rb | 29.52 | 0.2952 | 3 | 0.0984 | 0 |
| lib/skunk/cli/commands/status_reporter.rb | 8.0 | 7.9956 | 3 | 2.6652 | 100.0 |
| test/lib/skunk/rubycritic/analysed_module_test.rb | 2.63 | 2.6312 | 2 | 1.3156 | 100.0 |
| lib/skunk.rb | 0.0 | 0.0 | 2 | 0.0 | 0 |
| lib/skunk/cli/options.rb | 0.0 | 0.0 | 2 | 0.0 | 0 |
| lib/skunk/version.rb | 0.0 | 0.0 | 2 | 0.0 | 0 |
| lib/skunk/cli/commands/help.rb | 0.0 | 0.0 | 2 | 0.0 | 0 |
+-----------------------------------------------------+----------------------------+----------------------------+----------------------------+----------------------------+----------------------------+
SkunkScore Total: 612.31
Modules Analysed: 13
SkunkScore Average: 0.47100769230769230769230769231e2
Worst SkunkScore: 166.44 (lib/skunk/cli/commands/default.rb)
from skunk.
Related Issues (20)
- Create GitHub page for the project HOT 5
- Allow Skunk to HTML output the results it generates HOT 1
- Add a simple way to share a skunk report by setting an environment variable (SHARE=true) HOT 2
- [REQUEST] Add support for branch comparison when code coverage has changed between branches
- [REQUEST] Improve comparison interface to output improvement (or not) related to the changes in the branch HOT 1
- [BUG] Nested /test or /spec folders are not ignored HOT 1
- Skunk is running duplicated jobs for both `skunk` and `rake test`
- [REQUEST] Ruby versions compatibility HOT 5
- [BUG] Compare command is now raising an error on v0.5.0 (related to the share feature) HOT 1
- Wrong sponsorship url in the README
- [BUG] Sponsors badge looks wrong with dark theme HOT 1
- [BUG] Error when running churn check HOT 2
- execute ': undefined method `share'
- Skunk breaks when is using simplecov 0.21.2
- [BUG] Ruby 3.1.0 support HOT 1
- [BUG] Skunk has Ruby requirement < 3.1.0 which won't work when using Ruby 3.1.2 HOT 1
- [REQUEST] Skunk Score should be a "GPA score"-like letter based on a 0-100 scale
- [BUG] When comparing with other branches, output file is blank HOT 1
- [BUG] skunk_score method documentation is inaccurate
- Add ability to sort output results HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from skunk.