Automated docstring and comments spell check

Pylint includes a spell-checker since 1.4.0. Note that, to make the checker work, you need to install pyenchant python module and have an enchant library installed system-wide. On mac, it can be installed via brew: $ brew install enchant By default, the spelling pylint checker is turned off. You can enable it either in the … Read more

How to analyze binary file?

Try these: Deserialize data: analyze how it’s compiled your exe (try File Analyzer). Try to deserialize the binary data with the language discovered. Then serialize it in a xml format (language-indipendent) that every programming language can understand Analyze the binary data: try to save various versions of the file with little variation and use a … Read more

Code Analysis CA1063 fires when deriving from IDisposable and providing implementation in base class

This is a false positive due to a minor bug in the rule itself. When trying to figure out if a class re-implements IDisposable (after figuring out that there’s a base class implementation that could be overridden), it only looks at whether the class’ interfaces include IDisposable. Unfortunately, the interface list that shows up in … Read more

Where can I find an actively developed lint tool for Ruby?

ruby -c myfile.rb will check for correct Ruby syntax. Reek checks Ruby code for common code smells. Roodi checks Ruby code for common object-oriented design issues. Flog can warn you about unusually complex code. [Plug] If your project is in a public Github repository, Caliper can run the latter three tools and others on your … Read more

C# – StyleCop – SA1121: UseBuiltInTypeAlias – Readability Rules

Just to clarify: not everyone agrees with the authors of StyleCop. Win32 and .NET guru Jeffrey Richter writes in his excellent book CLR via C#: The C# language specification states, “As a matter of style, use of the keyword is favored over use of the complete system type name.” I disagree with the language specification; … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)