Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CodeClimate and MetricFu issues #418

Open
wants to merge 19 commits into
base: master
Choose a base branch
from

Conversation

vitorbaraujo
Copy link
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.

None yet

6 participants