@@ -2,10 +2,11 @@ import { TextEditor } from "atom"
22
33/**
44 * Find if an editor's largeness based on the given threashold
5+ *
56 * @param editor
6- * @param largeLineCount lineCountIfLarge threashold
7- * @param longLineLength lineLengthIfLong threashold
8- * @returns the largness score if editor is large. Otherwise it returns 0 (a small file)
7+ * @param largeLineCount LineCountIfLarge threashold
8+ * @param longLineLength LineLengthIfLong threashold
9+ * @returns The largness score if editor is large. Otherwise it returns 0 (a small file)
910 */
1011export function largeness (
1112 editor : TextEditor ,
@@ -25,9 +26,10 @@ export function largeness(
2526
2627/**
2728 * Find if an editor has a line that is longer than the given threashold
29+ *
2830 * @param editor
29- * @param threashold largeLineCount threashold
30- * @returns the line count if it is larger than threashold. Otherwise it returns 0 (a small file)
31+ * @param threashold LargeLineCount threashold
32+ * @returns The line count if it is larger than threashold. Otherwise it returns 0 (a small file)
3133 */
3234export function lineCountIfLarge ( editor : TextEditor , threashold : number ) {
3335 // @ts -ignore
@@ -43,10 +45,11 @@ export function lineCountIfLarge(editor: TextEditor, threashold: number) {
4345
4446/**
4547 * Find if an editor has a line that is longer than the given threashold
48+ *
4649 * @param editor
47- * @param threashold lineLengthForRow threashold
48- * @param lineCount count up to this line. Default is {editor.getLineCount()}
49- * @returns the first line length that has a length larger than threashold. If no line is found, it returns 0
50+ * @param threashold LineLengthForRow threashold
51+ * @param lineCount Count up to this line. Default is {editor.getLineCount()}
52+ * @returns The first line length that has a length larger than threashold. If no line is found, it returns 0
5053 */
5154export function lineLengthIfLong ( editor : TextEditor , threashold : number , lineCount : number = editor . getLineCount ( ) ) {
5255 const buffer = editor . getBuffer ( )
0 commit comments