6 Commits

Author SHA1 Message Date
Will Larche
104052d371 Swift first in readmes and its script (#982)
* [Scripts] Checklist check for Swift first in readme.

* [Checklist] Swift before Objc.
2016-12-08 13:38:01 -05:00
Will Larche
95d4300e8c [Scripts] Checklist example_languages less greedy (#964) 2016-12-07 13:16:34 -05:00
Adrian Secord
6733f7c44b Build out our scripted component checks (#940)
* Add README.md to scripts/check.

* Generalized the check_components script.

* Renamed `missing_readme` to `readme`.
* Added documentation to the `scripts/check` directory.
* Disabled the `scripts/check/missing_example_language` script.

* Cleanup verbose echoing in check_components script.

* Added more verbosity options.

* Added check for accessible URLs.

* Added option parsing.

* Added left-nav checks.

* Added license stanza check.

* Added reporting of failed components to check_components script.

* Added a script to convert between naming conventions.

* Added script to check for videos.

* Added check for video still.

* Added script to check for site icon.

* Added DO NOT SUBMIT check.

* Properly quoted output file paths.

* Added check for examples.

* Updated checklist docs for new script setup.

* Added check for example languages in README.md files.

Deleted old PHP code.

* Added missing exit(-1) from example_languages.

* Added uniform error output to example_languages.
2016-12-05 11:26:17 -05:00
Adrian Secord
8c3af252be Adding AUTHORS and removing CONTRIBUTORS.txt.
We can credit any contributor who would like to be credited this way, by adding them on request to the AUTHORS file. The copyright statement changes are required for this to work. Note that this has...

Summary:

We can credit any contributor who would like to be credited this way, by adding them on request to the AUTHORS file. The copyright statement changes are required for this to work. Note that this has no legal change, since the contributors always retained their copyright despite the copyright notice, but it's a nice acknowledgement.

Changed copyright statement to include non-Google authors.

Command run:

find * \( -name '*\.m' -or -name '*\.h' -or -name '*\.swift' \) -and -not \( -path 'scripts/external*' -name Pods  \) -print0 | xargs -0 sed -i '' 's/Copyright \(.*\) Google Inc/Copyright \1 the Material Components for iOS authors/'

Added non-source files.

Command run:

grep -Rl 'Copyright .* Google Inc' * --exclude-dir scripts/external --null | xargs -0 sed -i '' 's/Copyright \(.*\) Google Inc/Copyright \1 the Material Components for iOS authors/'

Reviewers: featherless, O1 Material components iOS, randallli

Reviewed By: O1 Material components iOS, randallli

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1415
2016-08-08 08:16:37 -07:00
Jeff Verkoeyen
2cb18a209b Add missing example language check.
Summary:
Example output:

```
Each of the following components is missing example language:
components/FlexibleHeader/README.md:131
components/FlexibleHeader/README.md:159
components/FlexibleHeader/README.md:231
components/FlexibleHeader/README.md:322
components/FlexibleHeader/README.md:352
components/HeaderStackView/README.md:88
components/Ink/README.md:90
components/Ink/README.md:109
components/Ink/README.md:142
components/PageControl/README.md:121
components/PageControl/README.md:170
components/ShadowElevations/README.md:71
components/ShadowLayer/README.md:104
components/ShadowLayer/README.md:125
components/ShadowLayer/README.md:140
components/ShadowLayer/README.md:166
components/Slider/README.md:76
components/Switch/README.md:80
```

Reviewers: #mdc_ios_owners, ajsecord

Reviewed By: #mdc_ios_owners, ajsecord

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D572
2016-04-12 14:37:52 -04:00
Jeff Verkoeyen
d82f59976d [checks] Add missing_readme check and check_all runner.
Summary:
Part of https://github.com/google/material-components-ios/issues/257.

Output:

```
Each of the following components is missing readme:
FontDiskLoader
private/Color
private/Icons/icons/ic_arrow_back
private/ThumbTrack
RobotoFontLoader
```

Reviewers: ajsecord, #mdc_ios_owners

Reviewed By: ajsecord, #mdc_ios_owners

Subscribers: ajsecord

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D417
2016-03-30 10:58:29 -04:00