Ericsson / CodeCheckerEclipsePlugin

This is an Eclipse plugin that shows C/C++ static analysis results found by Clang Static Analyzer and Clang Tidy
Eclipse Public License 1.0
32 stars 13 forks source link

Complete refactor of configuration. #139

Closed vodorok closed 5 years ago

vodorok commented 5 years ago

CcConfiguration has got a complete rewrite. Major modifications including:

Global configuration:

Project configuration:

Both type of configuration is validated when read from persistent storage. If it's contains invalid or missing keys, it restores them with default values from the default configuration.

The keys used in the preferences, are the actual enum keys stringified, instead of strings associated with keys.

The CodeCheckEnvironmentChecker is now an utility class used by CcConfiguration.

There is an enum poliformism introduced to help differentiate between project and global keys. And an utility method is introduced to them that returns if a config key is in that enum.

There is a minor Gui improvement regarding these changes:

package-info.java was introduced according to chexkstyle rules.