ManageIQ / floe

Floe is a runner for Amazon States Language workflows
Apache License 2.0
0 stars 5 forks source link

tweaking code climate test limits #219

Closed kbrock closed 2 months ago

kbrock commented 2 months ago

Possible Values can be found: https://docs.codeclimate.com/docs/default-analysis-configuration

A few limits I feel are off. But this is here to start a conversation about what we want to modify.

For this repo, we have the following issues:

Striked out entries would go away.

Fryguy commented 2 months ago

I would think any changes here should really live in manageiq-style, unless you think they are floe-specific?

Fryguy commented 2 months ago

@kbrock This morning in triage when looking at this we noticed that the manageiq-style .codeclimate.yml was never even installed. @agrare opened a PR for that in https://github.com/ManageIQ/floe/pull/224. I agree with tweaking the numbers, but think a) we should see if the manageiq-style .codeclimate.yml is sufficient and if not then I think it should be done over in manageiq-style if that makes sense globally.

kbrock commented 2 months ago

Thanks. Yes, lets use the default.

kbrock commented 2 months ago

@Fryguy so I'm not seeing any parameters that are code climate related.

Can we add another download section that holds/download codeclimate specific values?

I updated the codeclimate to show what was not applied. please advise where we want to add to styles and I can put a pr over there

miq-bot commented 2 months ago

Checked commit https://github.com/kbrock/floe/commit/63cd1c71fa10fcf1a1ba4a89affca0c59e9f8d07 with ruby 2.7.8, rubocop 1.56.3, haml-lint 0.51.0, and yamllint 0 files checked, 0 offenses detected Everything looks fine. :cookie:

Fryguy commented 2 months ago

@Fryguy so I'm not seeing any parameters that are code climate related.

The parameters come from the rubocop definitions instead, I believe. So, for example, cyclomatic complexity is 11 here: https://github.com/ManageIQ/manageiq-style/blob/master/styles/cc_base.yml#L38. I thought those values "overrode" the ones that are defaulted on code climate, but I could be wrong.

Can we add another download section that holds/download codeclimate specific values?

Absolutely, if the values from rubocop aren't working as expected.

kbrock commented 2 months ago

Yes, I see that cyclomatic complexity has been introduced. Think it was not running at all before.

The file limits (code climate) are still being enforced (you can see that this PR resolves a number of code climate issues - suggesting that those values are just for the https://ruby.sadi.st/Heckle.html tools, and max code length are for other code tools.

kbrock commented 2 months ago

good enough for now