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

typechecking: remove pride as not compatible with rest of strategy #34787

Merged
merged 1 commit into from
Jun 9, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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