| 1 |
/* |
| 2 |
* Copyright 2009 The Closure Compiler Authors. |
| 3 |
* |
| 4 |
* Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 |
* you may not use this file except in compliance with the License. |
| 6 |
* You may obtain a copy of the License at |
| 7 |
* |
| 8 |
* http://www.apache.org/licenses/LICENSE-2.0 |
| 9 |
* |
| 10 |
* Unless required by applicable law or agreed to in writing, software |
| 11 |
* distributed under the License is distributed on an "AS IS" BASIS, |
| 12 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 |
* See the License for the specific language governing permissions and |
| 14 |
* limitations under the License. |
| 15 |
*/ |
| 16 |
|
| 17 |
/** |
| 18 |
* @fileoverview Configuration options for the Parser. |
| 19 |
* |
| 20 |
* Allows us to update the allowed JSDoc annotations independently of the |
| 21 |
* Compiler binary, so we can add new JSDoc annotations to old binaries. |
| 22 |
* |
| 23 |
* @author [email protected] (Nick Santos) |
| 24 |
*/ |
| 25 |
|
| 26 |
// The version of the compiler that we're currently building. |
| 27 |
// Should be formatted as: |
| 28 |
// Version# (Revision XXX) |
| 29 |
compiler.version = HEAD |
| 30 |
|
| 31 |
// The datestamp of the compiler that we're currently building. |
| 32 |
compiler.date = NOW |
| 33 |
|
| 34 |
// A comma-delimited list. |
| 35 |
// Some of these are not used by JSCompiler, but appear in third-party JS code. |
| 36 |
// http://usejsdoc.org/ |
| 37 |
// It's not strictly necessary for the natively-supported annotations to be |
| 38 |
// listed here, but it's nice to have them all in one place. |
| 39 |
jsdoc.annotations =\ |
| 40 |
addon,\ |
| 41 |
augments,\ |
| 42 |
author,\ |
| 43 |
base,\ |
| 44 |
borrows,\ |
| 45 |
bug,\ |
| 46 |
class,\ |
| 47 |
classdesc,\ |
| 48 |
classTemplate,\ |
| 49 |
config,\ |
| 50 |
consistentIdGenerator,\ |
| 51 |
constructs,\ |
| 52 |
constructor,\ |
| 53 |
copyright,\ |
| 54 |
default,\ |
| 55 |
deprecated,\ |
| 56 |
desc,\ |
| 57 |
description,\ |
| 58 |
dict,\ |
| 59 |
enum,\ |
| 60 |
event,\ |
| 61 |
example,\ |
| 62 |
exception,\ |
| 63 |
exec,\ |
| 64 |
export,\ |
| 65 |
expose,\ |
| 66 |
externs,\ |
| 67 |
field,\ |
| 68 |
file,\ |
| 69 |
fires,\ |
| 70 |
function,\ |
| 71 |
global,\ |
| 72 |
id,\ |
| 73 |
idGenerator,\ |
| 74 |
ignore,\ |
| 75 |
inner,\ |
| 76 |
instance,\ |
| 77 |
kind,\ |
| 78 |
lends,\ |
| 79 |
link,\ |
| 80 |
meaning,\ |
| 81 |
member,\ |
| 82 |
memberof,\ |
| 83 |
memberOf,\ |
| 84 |
method,\ |
| 85 |
mixes,\ |
| 86 |
mixin,\ |
| 87 |
model,\ |
| 88 |
modifies,\ |
| 89 |
modName,\ |
| 90 |
mods,\ |
| 91 |
module,\ |
| 92 |
name,\ |
| 93 |
namespace,\ |
| 94 |
ngInject,\ |
| 95 |
nocompile,\ |
| 96 |
param,\ |
| 97 |
private,\ |
| 98 |
property,\ |
| 99 |
protected,\ |
| 100 |
provideGoog,\ |
| 101 |
public,\ |
| 102 |
readonly,\ |
| 103 |
requires,\ |
| 104 |
returns,\ |
| 105 |
see,\ |
| 106 |
since,\ |
| 107 |
stableIdGenerator,\ |
| 108 |
static,\ |
| 109 |
struct,\ |
| 110 |
summary,\ |
| 111 |
supported,\ |
| 112 |
this,\ |
| 113 |
throws,\ |
| 114 |
todo,\ |
| 115 |
tutorial,\ |
| 116 |
type,\ |
| 117 |
typedef,\ |
| 118 |
version,\ |
| 119 |
visibility |
| 120 |
|
| 121 |
# Comma-delimited list of valid suppressions. |
| 122 |
# This should be a subset of the list of DiagnosticGroups. |
| 123 |
jsdoc.suppressions =\ |
| 124 |
accessControls,\ |
| 125 |
ambiguousFunctionDecl,\ |
| 126 |
checkDebuggerStatement,\ |
| 127 |
checkRegExp,\ |
| 128 |
checkTypes,\ |
| 129 |
checkVars,\ |
| 130 |
const,\ |
| 131 |
constantProperty,\ |
| 132 |
deprecated,\ |
| 133 |
duplicate,\ |
| 134 |
es5Strict,\ |
| 135 |
checkProvides,\ |
| 136 |
extraProvide,\ |
| 137 |
extraRequire,\ |
| 138 |
fileoverviewTags,\ |
| 139 |
globalThis,\ |
| 140 |
invalidCasts,\ |
| 141 |
misplacedTypeAnnotation,\ |
| 142 |
missingProperties,\ |
| 143 |
missingProvide,\ |
| 144 |
missingRequire,\ |
| 145 |
nonStandardJsDocs,\ |
| 146 |
strictModuleDepCheck,\ |
| 147 |
suspiciousCode,\ |
| 148 |
undefinedNames,\ |
| 149 |
undefinedVars,\ |
| 150 |
underscore,\ |
| 151 |
unknownDefines,\ |
| 152 |
uselessCode,\ |
| 153 |
visibility,\ |
| 154 |
with |
| 155 |
|
| 156 |
# A comma-delimited list of reserved words that we should not rename variables |
| 157 |
# to. Used when an extension is released that steps on globals. |
| 158 |
# This prevents the compiler from renaming variables to these names, but not |
| 159 |
# from allowing externs for these names. |
| 160 |
# |
| 161 |
# i,j - common loop variables often overwritten by browser extensions |
| 162 |
# $j - common jquery alias often overwritten by browser extensions |
| 163 |
# o - overwritten by Norton Identity Protection's Chrome extension. |
| 164 |
compiler.reserved.vars = i,j,$j,o |
| 165 |
|