When initialising a project with the '--no-comments' flag, cabal fields that would normally be commented out still had comments in front of them. Expected behaviour is that comments are not present in front of any fields, commented out or not. Solution is to always remove comments when the '--no-comments' flag is set.
[ { "endline": 78, "file": "./cabal-install/src/Distribution/Client/Init/Format.hs", "function": "fieldD ", "module": "Distribution.Client.Init.Format", "startline": 67 }, { "endline": 95, "file": "./cabal-install/src/Distribution/Client/Init/Format.hs", "function": "fieldD ", "module": "Distribution.Client.Init.Format", "startline": 95 }, { "endline": 107, "file": "./cabal-install/src/Distribution/Client/Init/Format.hs", "function": "withComments ", "module": "Distribution.Client.Init.Format", "startline": 107 } ]
[ { "endline": 69, "file": "./cabal-install/src/Distribution/Client/Init/Format.hs", "function": "fieldD ", "module": "Distribution.Client.Init.Format", "startline": 67 }, { "endline": 82, "file": "./cabal-install/src/Distribution/Client/Init/Format.hs", "function": "fieldD ", "module": "Distribution.Client.Init.Format", "startline": 78 }, { "endline": 91, "file": "./cabal-install/src/Distribution/Client/Init/Format.hs", "function": "fieldD ", "module": "Distribution.Client.Init.Format", "startline": 91 }, { "endline": 105, "file": "./cabal-install/src/Distribution/Client/Init/Format.hs", "function": "withComments ", "module": "Distribution.Client.Init.Format", "startline": 103 } ]