[BUG] Double documenting overriden methods.
Overview of the issue
I inherit from a class A which has methodX that I override in my subclass B, when I generate documentation for the subclass, the parent class documentation for methodX and the subclass documentation for methodX is shown.
Is this expected behaviour? I would expect that only the documentation for the overriden methodX in class B is shown.
Operating System, Node.js, npm, compodoc version(s)
OS: Ubuntu 18.04 Node: 10.4.1 Npm: 6.1.0 Compodoc: 1.1.11
Angular configuration, a package.json file in the root folder
"name": "PRIVATE",
"version": "PRIVATE",
"private": true,
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"test_cc": "ng test --code-coverage --source-map",
"lint": "ng lint",
"docs": "compodoc",
"doc-coverage": "compodoc --coverageTest 100 --coverageMinimumPerFile 100 --coverageTestShowOnlyFailed"
},
"dependencies": {
"@angular/animations": "~9.0.0",
"@angular/cdk": "~9.0.0",
"@angular/common": "~9.0.0",
"@angular/compiler": "~9.0.0",
"@angular/core": "~9.0.0",
"@angular/elements": "~9.0.0",
"@angular/forms": "~9.0.0",
"@angular/platform-browser": "~9.0.0",
"@angular/platform-browser-dynamic": "~9.0.0",
"@angular/router": "~9.0.0",
"common-tags": "~1.8.0",
"element-resize-detector": "~1.2.1",
"fuzzy": "~0.1.3",
"rxjs": "~6.5.4",
"tslib": "~1.10.0",
"zone.js": "~0.10.2"
},
"devDependencies": {
"@angular-devkit/architect": "~0.900.1",
"@angular-devkit/build-angular": "~0.900.1",
"@angular-devkit/build-ng-packagr": "~0.900.1",
"@angular-devkit/core": "~9.0.1",
"@angular-devkit/schematics": "~9.0.1",
"@angular/cli": "~9.0.1",
"@angular/compiler-cli": "~9.0.0",
"@angular/language-service": "~9.0.0",
"@compodoc/compodoc": "~1.1.11",
"@cypress/webpack-preprocessor": "~4.1.1",
"@istanbuljs/nyc-config-typescript": "~1.0.1",
"@neutrino/icons-builder": "file:dist/prod/libs/icons-builder",
"@types/color": "~3.0.1",
"@types/common-tags": "~1.8.0",
"@types/css": "~0.0.31",
"@types/element-resize-detector": "~1.1.2",
"@types/fs-extra": "~8.0.1",
"@types/highlight.js": "~9.12.3",
"@types/jasmine": "~3.5.3",
"@types/jasminewd2": "~2.0.8",
"@types/js-yaml": "~3.12.2",
"@types/marked": "~0.7.2",
"@types/mock-fs": "~4.10.0",
"@types/node": "~13.7.1",
"@types/seedrandom": "~2.4.28",
"@types/semver": "~7.1.0",
"@types/svgo": "~1.3.0",
"chalk": "~3.0.0",
"codelyzer": "~5.2.1",
"color": "~3.1.2",
"concurrently": "~5.1.0",
"cpx": "~1.5.0",
"css": "~2.2.4",
"cypress": "~4.0.1",
"fs-extra": "~8.1.0",
"google-closure-compiler-java": "~20200204.0.0",
"google-closure-library": "~20200204.0.0",
"highlight.js": "~9.18.1",
"jasmine": "~3.5.0",
"jasmine-core": "~3.5.0",
"jasmine-diff": "~0.1.3",
"jasmine-spec-reporter": "~4.2.1",
"js-yaml": "~3.13.1",
"karma": "~4.4.1",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage-istanbul-reporter": "~2.1.1",
"karma-jasmine": "~3.1.1",
"karma-jasmine-html-reporter": "~1.5.2",
"marked": "~0.8.0",
"mock-fs": "~4.10.4",
"ng-packagr": "~9.0.0",
"nyc": "~15.0.0",
"prettier": "~1.19.1",
"sass": "~1.25.0",
"seedrandom": "~3.0.5",
"start-server-and-test": "~1.10.8",
"styleguide": "file:schematics/styleguide",
"svgo": "~1.3.2",
"ts-loader": "~6.2.1",
"ts-node": "~8.6.2",
"tsickle": "~0.38.0",
"tslint": "~6.0.0",
"typescript": "~3.7.5",
"unique-names-generator": "~4.2.0"
},
"license": "SEE LICENSE IN LICENSE"
}
Compodoc installed globally or locally ?
locally
If possible sourcecode of the file where it breaks
/**
* Class A.
*/
export class A {
/**
* My method.
*/
methodX() {}
}
/**
* Class B.
*/
export class B extends A {
/**
* My overriden method.
*/
methodX() {}
}
Motivation for or Use Case
Class inheritance.
Reproduce the error
Run compodoc on the above code.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had recent activity. Please file a new issue if you are encountering a similar or related problem. Thank you for your contributions.