[api-extractor] add option to remove line numbers from api reports?
phryneas opened this issue · 4 comments
Summary
Currently it's very annoying to get a "different api report" if any file has a new line added anywhere.
Essentially, the diff is most of the time:
-// src/core/types.ts:178:3 - (ae-forgotten-export) The symbol "MutationQueryReducer" needs to be exported by the entry point index.d.ts
+// src/core/types.ts:179:3 - (ae-forgotten-export) The symbol "MutationQueryReducer" needs to be exported by the entry point index.d.ts
Would it be possible to add an option to remove/omit line numbers?
The error message here is pinning it down more than enough, pointing to the MutationQueryReducer
symbol.
Standard questions
Question | Answer |
---|---|
@microsoft/api-extractor version? |
7.38.0 |
Operating system? | irrelevant |
API Extractor scenario? | reporting |
Would you consider contributing a PR? | Yes |
TypeScript compiler version? | irrelevant |
Node.js version (node -v )? |
irrelevant |
Could you provide repro steps?
I don't see that problem in our own API reports, for example:
rushstack/common/reviews/api/api-documenter.api.md
Lines 36 to 38 in d861d22
That's very curious! I'll do some digging on monday!
Sorry, it took a while for me to get back to this.
The messages I am speaking about are triggered here:
It's the "Warnings were encountered during analysis:" section at the bottom of the file: