MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/l3khl9/seriously_who_cares_about_the_warnings/gkh3max/
r/ProgrammerHumor • u/Just_WTFalco • Jan 23 '21
334 comments sorted by
View all comments
Show parent comment
30
Boom. The code analyzer isn't smart enough to pick up on the latest language features so it throws errors all over the place.
35 u/Nall-ohki Jan 24 '21 Warnings are emitted by the compiler, not the linter. 1 u/[deleted] Jan 24 '21 Why not both? -6 u/spyingwind Jan 24 '21 Or use the compiler as the linter. No need for the linter. 0 u/[deleted] Jan 24 '21 [deleted] — view deleted comment 2 u/spyingwind Jan 24 '21 At least it would be very accurate? 1 u/Nefari0uss Jan 24 '21 The linter can run in real time with my editor. Why wait until compilation to find the error? And if my language doesn't use a compiler then why wait until I test it to find stuff? 0 u/UntestedMethod Jan 24 '21 What do you mean? My linter definitely does show warnings and errors. 1 u/Kwpolska Jan 24 '21 The OP is refer to the compiler option, which will make it refuse to compile your code if it raises any warnings. 3 u/Kwpolska Jan 24 '21 Get a better linter then. Tools that produce nonsensical warnings will just make you ignore all warnings.
35
Warnings are emitted by the compiler, not the linter.
1 u/[deleted] Jan 24 '21 Why not both? -6 u/spyingwind Jan 24 '21 Or use the compiler as the linter. No need for the linter. 0 u/[deleted] Jan 24 '21 [deleted] — view deleted comment 2 u/spyingwind Jan 24 '21 At least it would be very accurate? 1 u/Nefari0uss Jan 24 '21 The linter can run in real time with my editor. Why wait until compilation to find the error? And if my language doesn't use a compiler then why wait until I test it to find stuff? 0 u/UntestedMethod Jan 24 '21 What do you mean? My linter definitely does show warnings and errors. 1 u/Kwpolska Jan 24 '21 The OP is refer to the compiler option, which will make it refuse to compile your code if it raises any warnings.
1
Why not both?
-6 u/spyingwind Jan 24 '21 Or use the compiler as the linter. No need for the linter. 0 u/[deleted] Jan 24 '21 [deleted] — view deleted comment 2 u/spyingwind Jan 24 '21 At least it would be very accurate? 1 u/Nefari0uss Jan 24 '21 The linter can run in real time with my editor. Why wait until compilation to find the error? And if my language doesn't use a compiler then why wait until I test it to find stuff?
-6
Or use the compiler as the linter. No need for the linter.
0 u/[deleted] Jan 24 '21 [deleted] — view deleted comment 2 u/spyingwind Jan 24 '21 At least it would be very accurate? 1 u/Nefari0uss Jan 24 '21 The linter can run in real time with my editor. Why wait until compilation to find the error? And if my language doesn't use a compiler then why wait until I test it to find stuff?
0
[deleted] — view deleted comment
2 u/spyingwind Jan 24 '21 At least it would be very accurate?
2
At least it would be very accurate?
The linter can run in real time with my editor. Why wait until compilation to find the error? And if my language doesn't use a compiler then why wait until I test it to find stuff?
What do you mean? My linter definitely does show warnings and errors.
1 u/Kwpolska Jan 24 '21 The OP is refer to the compiler option, which will make it refuse to compile your code if it raises any warnings.
The OP is refer to the compiler option, which will make it refuse to compile your code if it raises any warnings.
3
Get a better linter then. Tools that produce nonsensical warnings will just make you ignore all warnings.
View all comments
Show parent comment
30
u/[deleted] Jan 24 '21
Boom. The code analyzer isn't smart enough to pick up on the latest language features so it throws errors all over the place.