Surface a warning or error if src/
does not contain any .qs
files as direct children
#1516
Labels
src/
does not contain any .qs
files as direct children
#1516
As of #1416, if you are using implicit namespaces and nesting all of your source files deeply in the project, in the same nested directory, e.g.
project/src/Microsoft/Quantum/Canon.qs
andproject/src/Microsoft/Quantum/Diagnostics.qs
, you will experience non-intuitive behavior where the namespace detected will only be the final segment of the path (Canon
andDiagnostics
), not the full pathMicrosoft.Quantum.___
. We should detect this and throw an error or warning.Adding this to the linter may be difficult as the linter currently only has access to the AST, HIR, and FIR. So, this will likely have to be an error originating from the parser itself.
The text was updated successfully, but these errors were encountered: