Skip to content

Commit

Permalink
typechecking: remove pride as not compatible with rest of strategy (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
samouri authored Jun 9, 2021
1 parent 7cfaae5 commit e82f135
Showing 1 changed file with 0 additions and 37 deletions.
37 changes: 0 additions & 37 deletions build-system/tasks/check-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,33 +41,6 @@ const CORE_SRCS_GLOBS = [
'third_party/css-escape/css-escape.js',
];

/**
* Files that pass type-checking but don't belong to a passing directory target.
* Note: This is a TEMPORARY holding point during the transition to type-safety.
* @type {!Array<string>}
*/
const PRIDE_FILES_GLOBS = [
...CORE_SRCS_GLOBS,

// Runtime
'build/amp-loader-0.1.css.js',
'build/ampdoc.css.js',
'build/ampshared.css.js',
'src/config.js',
'src/dom.js',
'src/format.js',
'src/internal-version.js',
'src/json.js',
'src/log.js',
'src/mode.js',
'src/types.js',

// Third Party
'third_party/webcomponentsjs/ShadowCSS.js',
'node_modules/promise-pjs/package.json',
'node_modules/promise-pjs/promise.mjs',
];

/**
* Generates a list of source file paths for extensions to type-check
* Must be run after `maybeInitializeExtensions`
Expand Down Expand Up @@ -143,16 +116,6 @@ const TYPE_CHECK_TARGETS = {
warningLevel: 'QUIET',
},

// Opposite of `shame.extern.js`. This target is a catch-all for files that
// are currently passing, but whose parent directories are not fully passing.
// Adding a file or glob here will cause CI to fail if type errors are
// introduced. It is okay to remove a file from this list only when fixing a
// bug for cherry-pick.
'pride': {
srcGlobs: PRIDE_FILES_GLOBS,
externGlobs: ['build-system/externs/*.extern.js'],
},

// Ensures that all files in src and extensions pass the specified set of
// errors.
'low-bar': {
Expand Down

0 comments on commit e82f135

Please sign in to comment.