rubycritic
                                
                                 rubycritic copied to clipboard
                                
                                    rubycritic copied to clipboard
                            
                            
                            
                        When specify more directories = mess in git repository
We have multiple libraries in our project (rails engines), if we specified them for rubycritic
rubycritic components/ui/app components/ui/lib components/core/app
it works well, but it creates for each file in components/**/.rbdirectory html report file with same name + html and it is a big problem. We are able to gitignore tmp directory, but we can't ignore all html files...
I try to set manually rubycritic .... -p tmp/rubycritic, but it does not help. Maybe i've missed something in configuration?
Hmm, this deserves some investigation indeed. Thanks for the info.
We have appx 10 components in components/*/... because we don't want to check specs + dummy applications the result is sth like:
rubycritic components/ui/app components/ui/lib components/ui/lib components/core/app components/ext_services/app components/ext_services/lib -p tmp/rubycritic
If you want more info, please tell me what exactly do you need ... ;-)
I figure it out. Unfortunattely my informations were incorrect, I am calling rubycritich with absolute paths:
rubycritic /Users/strnadj/Projects/test/components/ui/app /Users/strnadj/Projects/test/components/ui/lib /Users/strnadj/Projects/test/components/ui/lib /Users/strnadj/Projects/test/components/core/app /Users/strnadj/Projects/test/components/ext_services/app components/ext_services/lib -p tmp/rubycritic
And that was the problem, because path to render for html file is defined via:
root_directory + @pathname.dirname and it did not care about directory position, maybe specify  root project directory will be helpful? @Onumis  you can close it if you can...
@Strnadj thanks for the info! I'll have a better look at this in the following days but my initial though is that RubyCritic should "behave well" even if it is fed an absolute path. I'll keep this open.
Fully agree, RC should always behave well or at least warn the user.