Open rdimartino opened 6 years ago
👍
Hi @kevinleturc and @rdimartino - thanks for the suggestion. Although I don't have an ETA, this is something that we're looking at adding.
Can you tell me a little bit more about your use case?
@efueger We're using a Rails backend with a React frontend. We were getting some false positives when using some of our more template-like React components that have a little bit more boilerplate but can't really be abstracted further.
As a work around for this we currently doing something like:
checks:
identical-code:
config:
threshold: 35
...
plugins:
duplication:
enabled: true
config:
languages:
javascript:
mass_threshold: 75
but this is obviously not ideal.
We're in the same boat, Rails backend + React frontend. In particular React has a lot of structure repetition (considered best practice afaik) like PropTypes
(see #89).
Same for us. Really want to decrease identical-code threshold only for the Javascript, as we use Ember. Works fine for the backend part on Rails.
+1 for this. Our use-case is an android project that is partially java and partially kotlin. Thanks!
+1, we have a similar situation where frontend technologies should have a different threshold than backend. Is this still being considered?
+1 it'd be very useful. We need to separate frontend from backend as well.
I wonder if there's a way to do so, maybe create separate .codeclimate.yml
config files in separate folders?
I can set separate check mass thresholds with
but those aren't language specific.
I can set a language-specific mass threshold with
but that sets the threshold for both identical and similar code.
I want to be able to do something like