Skip to content

build: enable noUnusedParameters check #5091

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 13, 2017

Conversation

devversion
Copy link
Member

  • This enables the "noUnusedParameters" TypeScript option in all tsconfig files. This ensures that every package that will be published can be used together with "noUnusedParameters".
  • Added the "noUnusedParameters" option in unrelated tsconfig files as well (gulp tsconfig). This also helps avoiding unused / unnecessary code.
  • Skipped setting "noUnusedParameters" for the e2e spec files because those are served in AOT mode and the current Angular version of the project does not support "noUnusedParameters" yet.

@jelbourn I initially was against adding it to the tsconfig files because I expected issues with the livereloading (when serving the app) but I tested it and it works fine like that.

Note: I thought about having a global tsconfig that will be extended by all other child tsconfig files. But this would mean that we need another tsconfig (again). Maybe a longer discussion for the future.

@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Jun 12, 2017
@devversion devversion force-pushed the build/enable-no-unused-params-check branch from 6e65bbb to 976aa40 Compare June 12, 2017 19:17
* This enables the "noUnusedParameters" TypeScript option in all tsconfig files. This ensures that every package that will be published can be used together with "noUnusedParameters".
* Added the "noUnusedParameters" option in unrelated tsconfig files as well (gulp tsconfig). This also helps avoiding unused / unnecessary code.
* Skipped setting "noUnusedParameters" for the e2e and prerender project because those are served in AOT mode and the current Angular version of the project does not support "noUnusedParameters" yet.
@devversion devversion force-pushed the build/enable-no-unused-params-check branch from 976aa40 to cc32405 Compare June 12, 2017 19:39
@devversion devversion requested a review from jelbourn June 12, 2017 20:53
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker and removed pr: needs review labels Jun 13, 2017
@kara kara merged commit de68202 into angular:master Jun 13, 2017
@devversion devversion deleted the build/enable-no-unused-params-check branch November 11, 2017 10:23
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants