Linked Questions
19 questions linked to/from What is "Linting"?
-3
votes
2
answers
2k
views
What's the benefits of linting Javascript and Typescript applications [duplicate]
I've searched SO for a comprehensive answer for this question, but I can't seem to find any, so I would appreciate a comprehensive answer on the benefits of linting applications in Typescript and ...
74
votes
14
answers
52k
views
Error deploying with firebase on npm --prefix $RESOURCE_DIR run lint
I have a fresh install of firebase tools (following this tutorial) and I'm trying to upload my first firebase function. I get this issue with the hello-world example that they initialise when you run ...
85
votes
7
answers
134k
views
What if I don't write default in switch case?
int a = 10;
switch(a){
case 0:
printf("case 0");
break;
case 1:
printf("case 1");
break;
}
Is the above code valid?
If I am sure that int a will not have any other value than 1 and 0,...
25
votes
3
answers
10k
views
Why does using multiplication operator on list create list of pointers? [duplicate]
>>> rows = [['']*5]*5
>>> rows
[['', '', '', '', ''], ['', '', '', '', ''], ['', '', '', '', ''], ['', '', '', '', ''], ['', '', '', '', '']]
>>> rows[0][0] = 'x'
Naturally,...
5
votes
2
answers
6k
views
Is it necessary to build/compile SSRS reports?
We have a 2008 R2 native installation of SSRS. I usually develop reports in one big visual studio report server project and manually upload the .rdl files via the front-end of the SSRS web site. ...
20
votes
1
answer
2k
views
pylint protection against self-assignment
I have this test file:
"""module docstring"""
class Aclass:
"""class docstring"""
def __init__(self, attr=None, attr2=None):
self.attr = attr
self.attr2 = attr2
def ...
0
votes
2
answers
5k
views
Why not Set<String> set = new HashSet() instead of Set<String> set = new HashSet<String>()?
Everywhere I look, I see the typing of Collections done like this:
Set<String> set = new HashSet<String>();
However, I define my Collections like this
Set<String> set = new ...
2
votes
2
answers
1k
views
Why are single quotes more commonly used in JS files in the last couple of years? [closed]
Why is there a trend for people to use single quotes ' around string instead of double quotes " when writing javascript? Are there any minifcation or linting tools that follow the java / c / c++ ...
0
votes
2
answers
4k
views
Why no "unreachable" statement error/warning shown in Javascript?
I am coming from a Java background. In java if I have a method like below:
public static String foo()
{
return "foo";
System.out.println("x");
}
I will get Compilation error :
error: ...
1
vote
1
answer
2k
views
Can you add a comment beside a field in YAML?
I have the following YAML object:
# profile fields
firstName: string
lastName: string
phoneNum: string # optional
active: boolean
notes: string # optional
role: string # admin | market | client
by: ...
6
votes
4
answers
771
views
Warn for every (nested) function with free variables (recursively)
I'd like to do the following:
for every nested function f anywhere in this_py_file:
if has_free_variables(f):
print warning
Why? Primarily as insurance against the late-binding closure ...
-1
votes
3
answers
3k
views
Error: No tests found. You may need to escape symbols like "$" or "*" and quote the arguments [closed]
Error: No tests found.
Make sure that arguments are regular expressions matching test files.
You may need to escape symbols like "$" or "*" and quote the arguments.
I am Getting ...
1
vote
1
answer
504
views
Firebase function fails to deploy from visual studio due to mysterious syntax errors (see screenshot or screen recording)
When I deploy my firebase function, the deployment fails because of what appear to be syntax issues. See the terminal window in the screenshot. The errors include mostly “Strings must be doublequote” ...
1
vote
1
answer
963
views
How to force Webpack 3 to throw TypeScript errors?
// index.ts
let a = 1;
a.map();
Webpack doesn't throw this TS error about method "map" on type "number.
Do you know how check these errors automatically during webpack build?
Can't find anything on ...
1
vote
1
answer
208
views
Parsing JSON with PHP array/object confusion
I am trying to parse this JSON data to print on a fanpage I am working on.
If you look at that JSON link, you will see that the structure is [{key:value,key:value,key:value}]. I recently learned how ...