Skip to content
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

code clean up #1917

Merged
merged 6 commits into from
Dec 11, 2017
Merged

Conversation

colombod
Copy link
Member

missing semicolon
local functions moved at the end of test suite
tslint exception for chai assertions

moved local functions to top for readability and fixed missing semicolon
local function at the  end


tslint exception for chai
@dnfclas
Copy link

dnfclas commented Dec 11, 2017

CLA assistant check
All CLA requirements met.

@@ -72,24 +72,28 @@ suite("Common", () => {
test("same paths", () => {
let subfolder: string = ["C:", "temp", "VS", "dotnetProject"].join(path.sep);
let folder: string= ["C:", "temp", "VS", "dotnetProject"].join(path.sep);
// tslint:disable-next-line:no-unused-expression

Choose a reason for hiding this comment

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

Can this be done more generally? https://www.npmjs.com/package/tslint-no-unused-expression-chai perhaps?

Copy link

@TheRealPiotrP TheRealPiotrP left a comment

Choose a reason for hiding this comment

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

LGTM overall. Do consider adding the package I referenced so we don't have tslint exclusion comments peppered throughout the codebase.

@rchande?

@colombod
Copy link
Member Author

@TheRealPiotrP was looking into the package and missed the gulp file. now is using the module you point out.

@colombod colombod closed this Dec 11, 2017
@colombod colombod reopened this Dec 11, 2017
@TheRealPiotrP TheRealPiotrP merged commit 8c24f9d into dotnet:master Dec 11, 2017
@colombod colombod deleted the feature/code_refactoring branch December 14, 2017 09:04
akshita31 pushed a commit to akshita31/omnisharp-vscode that referenced this pull request Dec 15, 2017
* moved local functions

moved local functions to top for readability and fixed missing semicolon
local function at the  end


tslint exception for chai

* use genral tslint chai rules

* fix path to custom chai rules

* revert type package versions

* simplify gulp file

* force chai types to 4.0.8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants