Skip to content

Get linter integrated into build/test process#5048

Merged
weswigham merged 3 commits into
microsoft:masterfrom
weswigham:for-the-glory-of-the-linter
Oct 1, 2015
Merged

Get linter integrated into build/test process#5048
weswigham merged 3 commits into
microsoft:masterfrom
weswigham:for-the-glory-of-the-linter

Conversation

@weswigham
Copy link
Copy Markdown
Member

By fixing every lint issue in the compiler/services/harness, and disabling the no-unreachable and no-use-before-declare rules. Both of these had issues with various constructs used in the compiler and yielded false positives. (no-unreachable is triggered by local interface declarations and type aliases, when both behave as though hoisted. no-use-before-declare doesn't handle exported namespace members which are out-of-order.) Both can but re-enabled in the future when they get fixed. no-null is disabled in most of the harness as @DanielRosenwasser mentioned that it used null as part of its API.

Hopefully this should save @DanielRosenwasser some time on CRs. 😄

@RyanCavanaugh
Copy link
Copy Markdown
Member

👍

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Remove this just because it's not actually using null.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It uses null on line 76 as part of the runBaseline api.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Taken offline, 👍

@DanielRosenwasser
Copy link
Copy Markdown
Member

Other than that, 👍

weswigham added a commit that referenced this pull request Oct 1, 2015
Get linter integrated into build/test process
@weswigham weswigham merged commit 0903a95 into microsoft:master Oct 1, 2015
@jkillian
Copy link
Copy Markdown

jkillian commented Oct 1, 2015

@weswigham Can you file an issue on TSLint about the no-use-before-declare bug if you haven't in the past? We'll work on fixing the hoisting issue (unless you want to have a go at it, feel free!)

@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants