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

Create separate target for linting generated files #821

Merged
merged 1 commit into from
Jun 25, 2013
Merged

Create separate target for linting generated files #821

merged 1 commit into from
Jun 25, 2013

Conversation

tschaub
Copy link
Member

@tschaub tschaub commented Jun 25, 2013

This allows us to ignore specific error codes (e.g. LINE_TOO_LONG) for externs, exports, types, etc. (any auto-generated files).

This allows us to ignore specific error codes (e.g. LINE_TOO_LONG) for externs, exports, types, etc. (any auto-generated files).
@tschaub
Copy link
Member Author

tschaub commented Jun 25, 2013

We've been getting lucky that our generated files pass the linter. The exports in #817 create @typedef annotations that are longer than 80 characters. E.g.

/**
 * @typedef {{opacity: (number|undefined),
 *            source: ol.source.Source,
 *            style: (ol.style.Style|undefined),
 *            transformFeatureInfo: (function(Array.<ol.Feature>):string|undefined),
 *            visible: (boolean|undefined)}}
 */
ol.layer.VectorLayerOptions;

In order for the build to stop failing, we need to have more relaxed linting rules for generated files.

@tschaub
Copy link
Member Author

tschaub commented Jun 25, 2013

Travis is happy, I'm happy, anybody else happy?

@twpayne
Copy link
Contributor

twpayne commented Jun 25, 2013

I'm happy. This is a good solution.

tschaub added a commit that referenced this pull request Jun 25, 2013
Create separate target for linting generated files
@tschaub tschaub merged commit 34acea5 into openlayers:master Jun 25, 2013
@tschaub tschaub deleted the generated-file-linting branch June 25, 2013 19:20
@ahocevar
Copy link
Member

I'm happy too 😄

afabiani pushed a commit to geosolutions-it/openlayers that referenced this pull request May 22, 2017
ability to switch between singleTile true and false on the fly (r=@ahocevar)
afabiani pushed a commit to geosolutions-it/openlayers that referenced this pull request May 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants