Questions tagged [code-quality]

Code quality is an approximation of how long-term useful and long-term maintainable the code is.

Filter by
Sorted by
Tagged with
33
votes
5answers
6k views

Is there a tool to measure the “maturity” (age) of a code in Git?

The vc-annotate in Emacs is a nice tool to see the "maturity" (age) of each line of code in colors. More blue dark, more mature, more red, less mature. This functionality has already been considered ...
1
vote
2answers
48 views

Creating a common import statement for commonly used imports

import java.util.Properties; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; I have a page object model and each page object requires these ...
1
vote
1answer
52 views

No Encapsulation in my project

It's been a long time that I am writing Test Automation scripts in Java, but I never had encapsulation in my code (code hiding). Creating Interface, Abstract Classes or Java beans were never part of ...
0
votes
0answers
34 views

Overview per team on same project in SonarQube

We have 3 teams working on the same project. Is there a way see last 7 days measure or overview of rough code quality of just a subset of authors? On the "Issue" tab I can add a filter for authors ...
0
votes
1answer
61 views

Code quality metrics

Looking for some metrics which can be used to determine cost of given code (maybe versus cost of "fixed" code). I've already found some generic ideas like (bugs/cost per line of code), but I'd like ...
10
votes
5answers
137 views

How to handle “fake” unit tests that don’t really test anything?

I’m a part of a large software project which is supposed to use TDD. There are maybe 90 devs across the world. Upon review of tests for software components, I determined that a significant number of ...
3
votes
2answers
69 views

How to make the case for code quality in a SAFe environment

SAFe - Scaled Agile Framework for Enterprise. Basically take the agile approach and also have 2 week sprints making up 12 week iterations with planning events once a quarter. Context is a company ...
2
votes
2answers
131 views

How to improve the code quality mindset?

Having Code Review and Pull Requests (for both application and automation code) is great... but in some cases I am seeing a lot of rubber-stamping approvals leading to low quality code. These share ...
5
votes
3answers
201 views

Is it a good idea for a Developer to review a tester's code

Background : Currently working in a firm which follows a practice where the QA's e2e and API automation suites are mandated to be reviewed before being pushed in a CI pipeline. It's a practice that is ...
2
votes
0answers
87 views

End to End Test cases for code merge approval

We have lots of end to end test cases to reduce the manual automation work, and the list keeps growing as we add new features. Now we added this test cases in our development workflow, to ...
-1
votes
1answer
124 views

What to set as measurable goals and performance criteria for a brand new website build/development?

We have given a task to a third party company to develop a website from scratch for us. What kind of measurable goals can be put in place in order to get quality assurance from the development. ...
1
vote
0answers
369 views

Jenkins Warnings plugin: excluding messages [closed]

We have installed and enabled Jenkins' Warnings Plugin and, we are using it's Maven parser to detect warnings in the task execution log. This plugin has a set of advanced options that are supposed to ...
1
vote
1answer
1k views

SonarQube: Close this “PreparedStatement” in a “finally” clause (dealing with false positives)

Every now and then we come across with some Sonarqube reported issues that seem (at least to us) as false positives. For example when using a Spring JdbcTemplate to execute an update: @Autowired ...
1
vote
1answer
623 views

Correlating assignees with authors in SonarQube

I'm aware that assignees are the effective SonarQube uses that I've created on the platform, but authors come from SCM commit data. The question I need to solve comes from the fact that I'm seeing ...
1
vote
0answers
35 views

Tracking SonarQube users (asignees) issues evolution

Is it possible to get some kind of report of the evolution in time of issues (gross number) assigned to each user of the system? I'd like to track my team members and evaluate them based on wherever ...
4
votes
3answers
1k views

Code Review and part-time team members

We have several part time testers who do both manual testing and test automation. When I receive a pull request from them, I noticed that I am reviewing their code less strictly and allow a minor ...
5
votes
1answer
80 views

What is quality javascript in the new world of es6+

Javascript has changed hugely in the last five years with es6 Now we have choices about whether to use let, const or var We can choose whether to use arrow functions to reduce code verbiage Is ...
1
vote
1answer
134 views

What are the criteria to convert code smell to a bug

Inspired by this question, which was closed because (and I agree) was not asked correctly and is not answerable. What are the criteria to convert code smell to a bug? Code smell is a hint that ...
9
votes
3answers
714 views

How do you know if you are writing high quality tests?

Inspired by Exercises on software testing We can learn to write automated tests and we can learn to do tdd and bdd but what tools / resources / guides are available to tell us if the actual tests we ...
13
votes
5answers
2k views

Will implementing Agile generally improve code quality?

I am writing up a white paper to introduce Agile. As my role is a QA engineer working for a consultancy company. We want customers to hire us to train them in implementing Agile and we DO want our ...