You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some type of collection of read and write functions similar to the dependencies query
-> we could also edit the dependencies query to not be specific to entire files to allow using that one directly in our rule through fromQuery? Then we'd need a Info.LastCall resolver to link these dependencies to the last call of an associated write/read in case the script creates files it later expects itself!
-> load these infos from a static file (like a csv/json) in the flowr sources rather than having them hard-coded in code?
We then check the file path's validity as part of the linting rule itself, rather than as part of the query API. ie we only use the query api to gather all of the paths we may need to inspect.
// using a modified dependencies query:Q.fromQuery({type: 'dependencies',filter: 'read'}).with(Info.LastCall,{callName: 'setwd',cascadeIf: CascadeAction.Continue}).with(Info.Arguments)// then run the query and select the nth argument based on our list of functions
Things to consider:
Configurability? file read/write queries can be quite slow so maybe we allow users to make the linting rule "less specific
The text was updated successfully, but these errors were encountered:
Requirements:
Info.Parameters
) and function call (Info.Arguments
)fromQuery
? Then we'd need aInfo.LastCall
resolver to link these dependencies to the last call of an associated write/read in case the script creates files it later expects itself!We then check the file path's validity as part of the linting rule itself, rather than as part of the query API. ie we only use the query api to gather all of the paths we may need to inspect.
Things to consider:
The text was updated successfully, but these errors were encountered: