Skip to content

Fix CodeClimate and MetricFu issues#418

Open
vitorbaraujo wants to merge 19 commits into
mezuro:masterfrom
MES2017:clean_code
Open

Fix CodeClimate and MetricFu issues#418
vitorbaraujo wants to merge 19 commits into
mezuro:masterfrom
MES2017:clean_code

Conversation

@vitorbaraujo

Copy link
Copy Markdown
Contributor
  • Remove code duplication in metric_configurations#new and metric_configurations#edit forms
  • Remove code duplication in projects, repositories and reading_groups lists
  • Improve legibility in reading_groups_controller#create_and_redir

marceloabk and others added 19 commits April 6, 2017 17:29
Signed-off-by: Marcelo Cristiano <marceloabk@hotmail.com>
Signed-off-by: Pedro Ivo <andradepedroivo@gmail.com>
The old create_and_redir function was not clear in its name about what it performed.
The body of the method was also improved with smaller functions with better names.

Signed-off-by: Pedro Ivo Andrade <andradepedroivo@gmail.com>
When creating or editing a metric configuration, HTML pages had same codes.
To improve that, I've created partials, to improve code reusage.

Signed-off-by: Pedro Ivo Andrade <andradepedroivo@gmail.com>
Signed-off-by: Marcelo Cristiano <marceloabk@hotmail.com>
Improve legibility and code duplication
This way there is only one partial to be rendered with given
parameters for projects, repositories and reading groups
Remove duplication in Mezuro views
Signed-off-by: Kássia Catarine <kassia_catarine.15@hotmail.com>
…ignificant names

Signed-off-by: Kássia Catarine <kassia_catarine.15@hotmail.com>
Signed-off-by: Kássia Catarine <kassia_catarine.15@hotmail.com>
Signed-off-by: Marcelo Cristiano <marceloabk@hotmail.com>
Creating partial to eliminate duplicated code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants