Comments (9)
It would be nice if the rubycritic config was basically just an extended version of the Reek config β so we could copy our current Reek configuration into it, and add other configuration options for the other tools (flog, flay, etc.) and for rubycritic itself.
Or maybe provide a rubycritic config directory that can contain config files specific to each tool (e.g., .rubycritic/.reek
).
In particular, I want to be able to configure skipping some of the checks from Flog and Flay (e.g., HighComplexity
, DuplicateCode
) for specific directories (e.g., spec
), without having to ignore those directories for everything else.
Right now, my rubycritic my report gets filled up with lots of complexity and duplicate code smells from my spec directory, unless I donβt include the spec directory (and miss out on reporting the code smells I do want to see for specs).
Thanks!
from rubycritic.
I agree, I think a rubycritic.yml
file would be a good candidate for how we handle settings.
from rubycritic.
In debt_ceiling I use the Confirguations gem, and read in a ruby file with rails like configuration block... I think I prefer that to yml, but agree having settings/config is a good idea.
from rubycritic.
+1. It would be great to specify in a config file which folders ruby critic should critique.
from rubycritic.
Agree, would be useful. Would somebody like to take a stab at this? ;)
from rubycritic.
The same comment I wrote for #11 applies here:
Due to RC's nature this is not really trivial since we aggregate multiple tools and those tools have a different understanding of how you can exclude and include paths. And some might not even offer an "exclude" functionality.
Nevertheless I can see that this feature would be highly valuable.
;)
from rubycritic.
I am working on this, using yml (rubycritic.yml
) file.
from rubycritic.
@nav16 Any updates on this? I have a project right now where we patch a gem and it is very picky about how we patch it. This file is the only thing that's not an 'A' and is keeping me from doing a -s 100
on our ci build
from rubycritic.
I guess this can be closed, since we can use .reek.yml
as a configuration file.
from rubycritic.
Related Issues (20)
- Assets (images, fonts, etc) from CDN HOT 1
- Coverage index page of "Build" shows 0 coverage if compare view
- Smell cost explanation?
- Fix CI is failing in the main branch
- Add support for Ruby 3.2 HOT 2
- Drop support for Ruby 2.6.x
- Update mdl dependency HOT 2
- Update test dependencies HOT 2
- Update runtime dependencies HOT 2
- Update rubocop dependency HOT 2
- Clean up CHANGELOG.md's contributor references HOT 3
- rake test modifies simple_cov_index.html source HOT 1
- Running in subdirectory returns `churn` of `0` HOT 1
- Rubycritic support for Ruby 3.2.2 HOT 4
- Clean test warnings HOT 3
- Links pointing to pages that do not exist when using the Compare branch option. HOT 1
- Rubycritic Not Displaying Coverage Information in Rails Project HOT 5
- Rubycritic Gem installation Failed HOT 2
- Error during analysis - Unknown revision or path not in the working tree
- Define Ruby Compatibility Policy HOT 4
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 rubycritic.