bmw-software-engineering/trlc

change default operation

Closed this issue · 2 comments

Make -I . the default mode of operation.

Add new parameter --no-default-include or similar to restore the current behaviour.

phiwuu commented

@florianschanda How exactly shall the default mode of operation behave?
If all files are treated as -I, then how does TRLC know which file to analyze for sure?
Is the idea to treat folders as -I, but files as "include for sure"?

Example 1:
trlc "file1.rsl" "file1.trlc" "folder"
will do the following:

  1. parse/validate file1.rsl
  2. parse/validate file1.trlc
  3. if references could not be resolved, then also parse/validate everything inside folder

Example 2:
trlc "file1.rsl" "file1.trlc" "folderA" -I "folderB" --no-default-include
will do the following:

  1. parse/validate file1.rsl and all RSL files inside folderA
  2. parse/validate file1.trlc and all RSL files inside folderA
  3. if references could not be resolved, then also parse/validate everything inside folderB

I ignored check files in these examples.

I am closing this ticket, as I don't see the benefit right now.