-
Notifications
You must be signed in to change notification settings - Fork 12
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
Cleanup API in README #127
Conversation
} | ||
export function exec(command: String, args: Array<string> = [], options: Object) | ||
export function execNode(filePath: String, args: Array<string> = [], options: Object) | ||
export function parse(data: String, regex: String, options: Object = {baseReduction: 1, flags: ""}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
baseReduction
isn't used in the code anywhere, where did this come from?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also shouldn't this show that by default (forced) the g
flag is used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was used to convert Line 5
to Line 4
to make it Atom's 0-based range. Done
fae6050
to
3784a6a
Compare
static tempFile<T>(fileName:String, fileContents:String, Callback:Function<T>):Promise<T> | ||
static tempFiles<T>(filesNames:Array<{name: String, contents: String}>, callback:Function<T>):Promise<T> | ||
} | ||
export function exec(command: String, args: Array<string> = [], options: Object) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the return type be specified on these functions that return something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added return types for exec
, execNode
and parse
3784a6a
to
297eef6
Compare
Note: CI build is failing because of babel/babel-eslint#267 |
export function execNode(filePath: String, args: Array<string> = [], options: Object): Promise | ||
export function parse(data: String, regex: String, options: Object = {flags: 'g'}): Array<Linter$Message> | ||
export function rangeFromLineNumber(textEditor: TextEditor, lineNumber: Number = 0, colStart: Number = <firstTextColumn>):Array | ||
export function find(directory:String, names: String | Array<string>): ?String |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
directory:String
-> directory: String
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should be a linter that does that, I had previously just copy/pasted, I'll tweak them all now
297eef6
to
0027cb5
Compare
I think that last batch of comments is the last thing I see. |
All comments taken care of |
375989e
to
0027cb5
Compare
Just like the title says