question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Lint check reports same error twice

See original GitHub issue

Lint error reports and even counts the same error twice(See screenshot below).

Steps to reproduce:

  • Change describe to fdescribe in any *Spec.js file
  • Run python scripts/pre_commit_linter.py
  • See error log.

image

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
DubeySandeepcommented, Aug 14, 2019

@anmolshkl, This issue occurs sometimes and I don’t know how we can reproduce. I’ll add the full log if I’ll see this again!

0reactions
U8NWXDcommented, Dec 15, 2022

This no longer occurs. I made the following changes from commit 812fd09d38268036f8072de3e5fa365ba72f70e3:

diff --git a/core/templates/domain/blog/blog-dashboard-backend-api.service.spec.ts b/core/templates/domain/blog/blog-dashboard-backend-api.service.spec.ts
index e723669e28..6675e30809 100644
--- a/core/templates/domain/blog/blog-dashboard-backend-api.service.spec.ts
+++ b/core/templates/domain/blog/blog-dashboard-backend-api.service.spec.ts
@@ -28,7 +28,7 @@ import {
 import { BlogDashboardPageConstants } from 'pages/blog-dashboard-page/blog-dashboard-page.constants';
 import { BlogPostSummary, BlogPostSummaryBackendDict } from 'domain/blog/blog-post-summary.model';
 
-describe('Blog Dashboard backend api service', () => {
+fdescribe('Blog Dashboard backend api service', () => {
   let bdbas: BlogDashboardBackendApiService;
   let httpTestingController: HttpTestingController;
   let successHandler: jasmine.Spy<jasmine.Func>;

Then I ran the linter:

$ python -m scripts.linters.pre_commit_linter
...
18:45:53 FINISHED Third Party Js Ts Lint Checks Manager: 3.5 secs
----------------------------------------
Please fix the errors below:
----------------------------------------

/Users/cs/Documents/School/Stanford/ExtraCurriculars/oppia/code/oppia/oppia/core/templates/domain/blog/blog-dashboard-backend-api.service.spec.ts
  31:1    Please use "describe" instead of "fdescribe"  oppia/no-test-blockers

✖ 1 problem (1 error, 0 warnings)



---------------------------
Linter Checks Failed.
---------------------------

The error only appeared once.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android Lint report <issue> duplication - xml - Stack Overflow
In Window > Preferences > Android > Lint Error Checking, uncheck "When saving files check for errors". Enjoy. Share.
Read more >
SSRS Quick Tip – An item with the same key has already ...
I was in the process of creating a new report in SQL Server Reporting Services ... error: "Could not create a list of...
Read more >
Lint runs twice as slow on AGP 4 Beta 1 + False Positive
I update AGP from 3.6 RC to 4.0 Beta 1 and now `:app:lintRelease` runs twice as slow. It also throws an error `Error:...
Read more >
Meet Android Studio | Android Developers
For example, selecting the Problems view of your project displays links to the source files containing any recognized coding and syntax errors, ...
Read more >
Linter rules - Dart
Details about the Dart linter and its style rules you can choose. ... for conditions that can be inferred at compile time or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found