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

SonarCloud findings #156

Merged
merged 6 commits into from
Feb 22, 2022
Merged

SonarCloud findings #156

merged 6 commits into from
Feb 22, 2022

Conversation

emmanvg
Copy link
Contributor

@emmanvg emmanvg commented Feb 21, 2022

What Changed?

General findings from SonarCloud

  • They relate to unused variables, best practices, and code quality.
  • Update README, you can't use tram runserver without setting the DEBUG flag.

@emmanvg emmanvg added this to the v1.1.3 milestone Feb 21, 2022
@emmanvg emmanvg requested a review from mehaase February 21, 2022 21:01
@codecov
Copy link

codecov bot commented Feb 21, 2022

Codecov Report

Merging #156 (976aae5) into master (575ff7a) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #156      +/-   ##
==========================================
- Coverage   95.63%   95.63%   -0.01%     
==========================================
  Files           9        9              
  Lines         848      847       -1     
==========================================
- Hits          811      810       -1     
  Misses         37       37              
Impacted Files Coverage Δ
src/tram/management/commands/attackdata.py 97.01% <100.00%> (ø)
src/tram/ml/base.py 92.00% <100.00%> (-0.04%) ⬇️
src/tram/views.py 93.02% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 575ff7a...976aae5. Read the comment docs.

@emmanvg emmanvg changed the title Sonarcloud findings SonarCloud findings Feb 21, 2022
@sonarcloud
Copy link

sonarcloud bot commented Feb 21, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@@ -75,7 +75,7 @@ function loadSentences(active_sentence_id) {
function storeSentences(sentences) {
stored_sentences = {};
for (var i = 0; i < sentences.length; i++) {
sentence = sentences[i];
var sentence = sentences[i];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not that it matters here, but in general you almost always want let in JavaScript rather than var.

@emmanvg emmanvg merged commit 5a1a4cb into master Feb 22, 2022
@emmanvg emmanvg deleted the sonarcloud-findings branch February 22, 2022 14:23
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

2 participants