equinor / vscode-septic

Extension for Visual Studio Code to support the SEPTIC config file format.
MIT License
6 stars 1 forks source link

Duplicate warnings when having several templates switched by exclude/include where these contain the same Evrs #670

Open palkitt opened 4 weeks ago

palkitt commented 4 weeks ago

Using exclude/exclude to select which template to use for different wells. These templates contains many of the same Evrs, but only one of the (similar) templates is used for a single well. This makes a lot of duplicate warnings.

Best solution is to neglect duplicates from one of these templates to the other. Second best is to be able to turn off a warning for sections of a template.

Example yaml file:

 - name: 06_DmmyApplWell.cnfg
    source: main
    exclude: 
    - D06
    - D23
    - D36
  - name: 06_DmmyApplWell_SM.cnfg
    source: main
    include: 
    - D06
    - D23
    - D36
vetlek commented 3 weeks ago

Handling this properly in all cases seems like extensive amount of work. Suggest fixing this issue with #665 which adds support for setting certain codes that should be ignored in certain files following a pattern. It is a more fine grained version of the existing functionality to ignore diagnostics on file level.