Quellcode durchsuchen

Removes unneeded tslint disables

main
Eric Amodio vor 6 Jahren
Ursprung
Commit
1aad930203
5 geänderte Dateien mit 0 neuen und 5 gelöschten Zeilen
  1. +0
    -1
      src/git/git.ts
  2. +0
    -1
      src/git/parsers/diffParser.ts
  3. +0
    -1
      src/git/parsers/remoteParser.ts
  4. +0
    -1
      src/system/string.ts
  5. +0
    -1
      src/ui/shared/colors.ts

+ 0
- 1
src/git/git.ts Datei anzeigen

@ -62,7 +62,6 @@ const GitWarnings = {
foundButNotInRevision: /Path \'.*?\' exists on disk, but not in/i,
headNotABranch: /HEAD does not point to a branch/i,
noUpstream: /no upstream configured for branch \'(.*?)\'/i,
// tslint:disable-next-line:max-line-length
unknownRevision: /ambiguous argument \'.*?\': unknown revision or path not in the working tree|not stored as a remote-tracking branch/i
};

+ 0
- 1
src/git/parsers/diffParser.ts Datei anzeigen

@ -11,7 +11,6 @@ import {
} from './../git';
const nameStatusDiffRegex = /^(.*?)\t(.*?)(?:\t(.*?))?$/gm;
// tslint:disable-next-line:max-line-length
const shortStatDiffRegex = /^\s*(\d+)\sfiles? changed(?:,\s+(\d+)\s+insertions?\(\+\))?(?:,\s+(\d+)\s+deletions?\(-\))?/;
const unifiedDiffRegex = /^@@ -([\d]+),([\d]+) [+]([\d]+),([\d]+) @@([\s\S]*?)(?=^@@)/gm;

+ 0
- 1
src/git/parsers/remoteParser.ts Datei anzeigen

@ -4,7 +4,6 @@ import { GitRemoteType } from '../models/remote';
import { RemoteProvider } from '../remotes/factory';
const remoteRegex = /^(.*)\t(.*)\s\((.*)\)$/gm;
// tslint:disable-next-line:max-line-length
const urlRegex = /^(?:(git:\/\/)(.*?)\/|(https?:\/\/)(?:.*?@)?(.*?)\/|git@(.*):|(ssh:\/\/)(?:.*@)?(.*?)(?::.*?)?\/|(?:.*?@)(.*?):)(.*)$/;
// Test git urls

+ 0
- 1
src/system/string.ts Datei anzeigen

@ -143,7 +143,6 @@ export namespace Strings {
return `${s.substring(0, chars)}${ellipsis}`;
}
// tslint:disable-next-line:max-line-length
const ansiRegex = /[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)|(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))/g;
export function width(s: string): number {

+ 0
- 1
src/ui/shared/colors.ts Datei anzeigen

@ -1,4 +1,3 @@
// tslint:disable-next-line:max-line-length
const cssColorRegEx = /^(?:(#?)([0-9a-f]{3}|[0-9a-f]{6})|((?:rgb|hsl)a?)\((-?\d+%?)[,\s]+(-?\d+%?)[,\s]+(-?\d+%?)[,\s]*(-?[\d\.]+%?)?\))$/i;
function adjustLight(color: number, amount: number) {

Laden…
Abbrechen
Speichern