Questions tagged [software-quality]

Software quality reflects how well a software conforms to given requirements (functional and non-functional), how much it shows characteristics like reliability, efficiency, security, maintainability.

233 questions
2
votes
4 answers

Reason for using custom true false values in frameworks

I was reading the GLFW library and I noticed they use GLFW_TRUE(1) and GLFW_FALSE(0). Now I've already seen that in other frameworks as well,making their own custom true/false identifiers. Is there any reason in creating your own custom true/false…
laegirl
  • 144
  • 13
2
votes
1 answer

How to supress checkstyle HideUtilityClassConstructor rule for classes with main method?

I want to suppress 'HideUtilityClassConstructor' rule the for classes that have main method. That look like this: import org.springframework.boot.SpringApplication; import…
Yurii Bondarenko
  • 3,460
  • 6
  • 28
  • 47
2
votes
2 answers

How to avoid of huge if condition using BigDecimals?

I've working on bank institution and I need to perform transactions like deposit, withdraw, transfer etc. And when we are considering fields with big values, I saw that it is common use BigDecimal with Java 8 in a Spring Boot application. When I…
2
votes
0 answers

SonarQube scan runs but doesn’t generate any results

I’m running a SonarQube scan for the first time. It’s the CE version, 8.3.1. I have SQ running on a server at 192.168.56.111. My development workstation is on 192.168.0.11. There are no network problems. Since I’m new to SQ, I’m trying to keep it as…
MGoBlue93
  • 644
  • 2
  • 14
  • 31
2
votes
2 answers

Best Design Pattern to execute a Series of Steps

I have an application with which a user can initiate (fill out a form and click Run) a series of steps. First step 1 must be executed and afterwards step 2. If step 2 was successful, execute step 3 otherwise execute step 4. Finally step 5 must be…
Hank Tuff
  • 185
  • 5
  • 12
2
votes
5 answers

How should one measure Defect Density?

Is there a standard way of measuring Defect Density? Most sites online state that it should be measured as: number of defects discovered / the code size My questions are: Should defects "fixed" during the period be subtracted from the defects…
Nishith
  • 593
  • 3
  • 6
  • 16
2
votes
1 answer

Law of Demeter can easily be bypassed?

Is it always possible to work around the Law of Demeter simply by creating more methods? Some people mention that this is not valid (http://wiki.c2.com/?LawOfDemeterIsHardToUnderstand), but it seems like it should be valid, since the Law of Demeter…
Victor
  • 743
  • 1
  • 5
  • 16
2
votes
1 answer

Automation Testing - Selenium WebDriver - Running Multiple Test Cases

I have got some problems with my automation testing. I have nearly around 50 test cases in my Eclipse IDE. All test cases are in different classes. Also, I have got one BaseClass that contains @beforeclass and @afterclass. In @beforeclass, the…
2
votes
0 answers

Unable to view code coverage report on Azure DevOps

I convert my .coverage file to xml (using codecoverage.exe analyze ...) and then run ReportGenerator to convert this file to a Cobertura.xml file. ... Creating summary Writing report file 'D:\a\1\s\TestResults\badge_linecoverage.svg' Writing…
grmbl
  • 2,514
  • 4
  • 29
  • 54
2
votes
2 answers

Exception handling in separate method for readability

Is it an anti-pattern to handle exception in a separate method? Say i have a method that does some low-level IO and may throw an IOException, and i have a method foo() that calls the low-level IO method several times. Does it make sense to do the…
Ivana
  • 643
  • 10
  • 27
2
votes
1 answer

Mean Response Time vs Mean Turnaround Time (DIN_IEC_25023) Difference?

What is the Difference between Mean response time and Mean turnaround time in a Microservices environment? ISO Description: Mean Response Time: How long is the mean time taken by the system to respond to a user task or system task? Mean Turnaround…
Barney Stinson
  • 962
  • 12
  • 29
2
votes
9 answers

How do you argue for the "high notes", the true production class code?

This question has been addressed in a similar post on a more specific level regarding UI. I would like to address the subject on a more general design level. I make descisions on design every day to ensure high quality. But every now and then I get…
sharkin
  • 12,162
  • 24
  • 86
  • 122
2
votes
3 answers

How can I count number of lines of actual comments?

I have a bunch of MATLAB script/function files that I and the rest of my team need to work on. We have little to no idea what most of the files do, and little to no idea which ones belong together and which ones are separate. We do know we have a…
gibson
  • 543
  • 1
  • 5
  • 15
2
votes
1 answer

How does SonarQube duplication ratio assessment/grading matrix decided?

I generally use SonarQube for performing static code analysis of on going projects to detect best pratice violations and possible anomalies.(Also using SonarLint plugin but it's out of scope.) I know that keeping duplication ratio as low as possible…
s.deniz
  • 21
  • 4
2
votes
0 answers

Overly broad catch and suspicious leaking of info - How to resolve it

I've a method which takes two arguments, and populates arg1 from arg2. The population logic calls upon a method which may throw an extended Exception and probably a NumberFormatException too if the object has unexpected values. The method logic…
xploreraj
  • 3,792
  • 12
  • 33
  • 51