Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Support for global configuration #100

Open

Description

@DGarry82

Currently all cppcheclipse settings (except binaryPath) are in 'disabled' state by default. So when user creates every new Workspace, he gets clean configuration in Window->Preferences->C++->cppcheclipse->Settings panel. There's no way to set them to some alternate default state for new Workspaces, because all changes that can be made here will be immediately saved in current workspace's preferences, and you have to reconfigure'em every time 'from scratch'. It would be nice to have possibility to save their default values to configuration/.settings/com.googlecode.cppcheclipse.core.prefs (just like binaryPath variable) with some buttons like e.g. 'save defaults' and 'load defaults', or (maybe even better) to add checkbox like 'load defaults for new workspaces' at main settings screen (Window->Preferences->C++->cppcheclipse)

Activity

  1. AntonKrug commented on Feb 26, 2020

    @AntonKrug
    Collaborator

    There's no way to set them to some alternate default state for new Workspaces

    What about the pluggin_customization.ini
    That's a way to global settings be populate as defaults for new workspaces

  2. DGarry82 commented on Mar 29, 2021

    @DGarry82
    Author

    What about the pluggin_customization.ini

    Could not get it working even providing global customization file via -pluginCustomization /tmp/cppcheclipse.ini:

    com.googlecode.cppcheclipse.core/languageStandardC=c99 #IGNORED
    com.googlecode.cppcheclipse.core/binaryPath=/bin/true #IGNORED

    Also any modifications made to global prefs file (<IDE_ROOT>/configuration/.settings/com.googlecode.cppcheclipse.core.prefs) have no effect (except binaryPath and automaticUpdateCheck values):

    automaticUpdateCheck=false #PROCESSED
    binaryPath=/bin/true #PROCESSED
    languageStandardC=c99 # IGNORED
    eclipse.preferences.version=1

  3. AntonKrug commented on May 2, 2021

    @AntonKrug
    Collaborator

    These are my customizations inside the plugin_customization.ini file:

    ## Cppcheck (cppcheclipse) settings
    com.googlecode.cppcheclipse.core/binaryPath=${eclipse_home}/../extras/cppcheck/cppcheck.exe
    com.googlecode.cppcheclipse.core/automaticUpdateCheck=false
    com.googlecode.cppcheclipse.core/automaticUpdateCheckInterval=monthly
    com.googlecode.cppcheclipse.core/languageStandardC=c11
    com.googlecode.cppcheclipse.core/languageStandardCpp=c++11
    com.googlecode.cppcheclipse.core/useInlineSuppressions=true
    com.googlecode.cppcheclipse.core/followSystemIncludes=true
    com.googlecode.cppcheclipse.core/followUserIncludes=true
    

    And I can setup more things here, I keep it in the same folder as the eclipse.ini file (in the root of the eclipse), and I changed the eclipse.ini with these lines:

    -pluginCustomization
    plugin_customization.ini
    

    It works very reliably for me. I do not have to add any arguments to the eclipse binary, just run the binary. Check if in your case the eclipse.ini is not overriding your arguments with its own.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions