Both are mathematical values, however the float does have more precision. Is that the only reason for the error - the difference in precision? Or is there another potential (and more serious) problem?
...
I had a nasty typo that wasted my time and my colleague's time, it was something like this:
for (i = 0; i < blah; i++); // <- I had a semi-colon here, that's the bug!
{
// Some awesome logic here
}
First of all, it's very embarrassing, second thing, I should never repeat this. I'm relatively new to C. In Java, I guess I can use Find...
Is there a static code analyzer for PHP files? The binary itself can check for syntax errors, but I'm looking for something that does more, like unused variable assignments, arrays that are assigned into without being initialized first, and possibly code style warnings. Open-source programs would be preferred, but we might convince the...
Are there any lint tools available for actionscript? One source would be ideal, but anything is welcome.
My team is starting to adopt more a more rigorous style guide (where "more rigorous" means "existant"), and I think a linter would help us all adhere more easily to the style rules we've agreed on. I'm not above writing my own, but...
I spend my days in vim, currently writing a lot of JavaScript. I've been trying to find a way to integrate JSLint or something similar into vim to improve my coding. Has anyone managed to do something like this?
Edit:
tried this: Javascript Syntax Checking From Vim, unfortunately the output is very crude.
...
Is there anything like lint for crontab? I'd like to know that i've got all my spaces and stars sorted out without waiting for something to not work.
...
Are there any existing tools for applying an arbitrary lint to PHP code? I know about the command line flag (-l) and pecl extension that will check an input file for valid syntax. What I want is a tool that will let me reject something if it has a certain valid but undesirable syntax.
For example, the lint might reject this
if ($foo) ...
I am mulling over the idea of writing a program to check for
"leaky abstractions" in Java. The one area that popped into mind right away is with exceptions:
public class X
{
// this one is fine, Readers throw IOExceptions so it is
// reasonable for the caller to handle it
public void parse(final Reader r)
throws I...
I'm running JSLint's Rhino version from the Ubuntu command line like so:
$ rhino jslint.js myScript.js
While the web interface offers various options, I couldn't figure out how to invoke those via the command line.
Am I overlooking anything in the documentation?
...
Does JSLint have anything like JavaScript Lint's control comments (e.g. /*jsl:fallthru*/) to make it ignore certain passages?
...
I'm interested in a free tool that can statically check my C++ code like Lint does.
Any hints?
...
I'm looking for an XSL lint tool which is actively maintained. The only one I can find is this one, but the last update was in 2000 (9 years old!). Any help would be great!
...
I'm looking for a tool that can scan over a set of HTML pages, and check for bad or out of sync CSS usage. In particular, I want to check the following:
Each CSS rule in the CSS files is used at least once by some HTML page.
Each CSS class referenced on the HTML pages is actually defined in a CSS file.
(Nice to have) that inline style...
Hi
Do you know how can I make splint ignore where I declare my variables?
I know that the old school c tells you to declare variables right at the
beginning in every function,
but since I am a bad person I like to declare things close to where I use them.
A good example is to put int i; right before the for(i=0;...).
Let's take a v...
So I've read a few magazine articles and the website for Gimpel's PC-lint and Flexelint C/C++ compiler.
It's really expensive (at least for me), but it seems like it might have some merit to warrant the cost.
So I'm wondering if anyone else has used/bought them and can provide their opinions?
...
Is there a lint-like tool for C#? I've got the compiler to flag warnings-as-errors, and I've got Stylecop, but these only catch the most egregious errors. Are there any other must-have tools (especially for newbie C#ers like me) that point out probably-dumb things I'm doing?
...
These questions are for TeamCity users only
1) Is it possible to configure TeamCity to extract build artifact information based on your own your regular expressions? This is exactly what Pulse does here
2) Does TeamCity integrate with any task/bug tracking tool? like JIRA?
3) This question is for people who run static code analyzer on...
I'd like to use JSLint but am wary of tools that have access to my unfiltered source-code. Is there an offline version or is there another similar tool that does "lint error checking" for JavaScript offline?
Edit: One with a GUI / shows you a styled list of errors, instead of command line?
...
Is there an equivalent of jslint for ColdFusion?
...
I have seen other text editors use extensions to allow syntax checkers such as JSLint, is this possible with Notepad++?
...