Commit Graph
537 Commits
Author SHA1 Message Date
Sidney San Martín e80daa0650 Add favicons to guides that lacked them 2024-07-08 17:05:56 -04:00
Mike Frysinger dc0c0923f1 docguide: pull in updates from internal docs 2024-07-08 15:16:10 -04:00
Lu.dev 36c0e3a531 README: link in JSON style guide 2024-07-08 15:05:12 -04:00
Mike Frysinger 54fe3035be README: point Kotlin users to external guide #470 2024-07-08 15:01:37 -04:00
David Barnett 9fae97deb1 [vimscript] Update name in credits 2024-07-08 14:19:58 -04:00
Marcoen Hirschberg f0846f605e Change cppguide.xml to proper XML serialized HTML 2024-07-08 14:14:14 -04:00
Kendall Pinto ff7605a255 move codeowners file to github directory 2024-07-08 13:24:27 -04:00
Katie Noake 7b9a1c1330 docguide: Fixed broken link syntax 2024-07-08 13:18:07 -04:00
Mike Frysinger 214f82da5f jsguide: update Egyptian brackets link
As pointed out by Aditya Chaudhari.
2024-07-03 07:44:38 -04:00
Mike Frysinger 1ae7350b45 mdstyle: pull in updates from internal styleguide 2024-07-02 01:07:19 -04:00
Mike Frysinger 6acd1e5afd jsguide: add deprecation notice
Make it clear that the JS guide is no longer updated as Google is
migrating to TypeScript everywhere.
2024-07-02 01:00:52 -04:00
Mike Frysinger 7b2d43a587 jsguide: rewrite HTML entities to UTF-8
The file uses UTF-8 encoding, so use UTF-8 directly instead of HTML
entities.  This is handled by the export/publish code, but seemed a
bit nicer to split this out into a separate commit for review.
2024-07-01 23:35:47 -04:00
Mike Frysinger 3e9c70e6c3 jsguide: import last internal version
Internally, we've turned down the JS styleguide in favor of a merged
TS/JS guide (with heavy emphasis on TS).  That variant doesn't exist
publicly yet, and even then, we probably want to keep around the JS
version as-is more or less indefinitely like we have with the older
ES5 guide.  Once we update the TS guide, we can add a deprecation
notice to this file like we do with the ES5 guide.

There is one change that has been left out: the heavy emphasis on
only using clang-format as the rules are heavily geared towards
google3, and there is no external guidance for formatting.  If we
could provide public guidance here, it'd be great to update, but
since the guide is no more internally, that seems unlikely, so it's
probably best to freeze the pre-clang-format guidance here.
2024-07-01 22:41:23 -04:00
Mike Frysinger 0153155e24 jsguide: update classes to match newer styles
The rendering should be unchanged as the names should align with the
underlying rules.
2024-07-01 22:03:21 -04:00
Mike Frysinger c6d62eacb3 javascriptguide: add missing < tag 2024-07-01 21:40:36 -04:00
Mike Frysinger d90f46493c javascript: make deprecation notice more prominent
This text is easy to miss as it's only at the top, and in the same size
and weight as other intro text.  If people follow links to sections (as
is the norm for style guides), this will be completely skipped.

Let's make the notice into a sticky butter bar at the top so it's always
shown regardless of where the person is on the page.
2024-07-01 18:02:20 -04:00
Mike Frysinger 128b0a1df6 README: link to public issue tracker from homepage 2024-07-01 15:39:58 -04:00
Mike Frysinger d5a50c1dac README: link existing markdown guide #772
Fixes: #772
2024-07-01 15:24:24 -04:00
Mike Frysinger cbc2e01826 java: update to latest
Pull in changes:
* improve Egyptian brackets link
* Add a note about JEP421 to #s6.4-finalizers
* Fix broken link in java-style
* Adding special camel case where word begins with number
* Found an unclosed <span> tag
* Change `<a name` anchors to `<a id` anchors
* Improve inclusive language usage
* Reword title sentence about documenting a warning to better reflect the advice that follows it
* Fix an unclosed <a> tag around sort_java_imports
* Clarify guidance on java vs javatests

PiperOrigin-RevId: 648433358
2024-07-01 15:07:32 -04:00
Google Shell Style team 729557a4a2 Project import generated by Copybara.
PiperOrigin-RevId: 623987710
2024-07-01 14:53:59 -04:00
Geoff Romer 8487c083e1 Merge pull request #804 from zetafunction/gh-pages
Update C++ style guide.
2024-02-27 09:30:08 -08:00
Google Python team 8ee3431f74 Project import generated by Copybara.
PiperOrigin-RevId: 606308053
2024-02-12 11:48:22 -08:00
Daniel Cheng 1932017345 Update C++ style guide.
- Give more explicit guidance about when angle bracket includes should
  be used.
- Expand the guidance for disallowing const reference parameters that
  outlive the call to *all* references, const or mutable; instead, these
  parameters should be pointers.
- Add a brief section about how concepts should be named

There are also additional minor formatting changes or updating
recommendations to prefer std over absl.
2024-02-12 11:42:31 -08:00
Kevin Chowski 1ec490aaef Merge pull request #801 from matttproud/gh-pages
go: Export the latest version of internal guide.
2024-01-30 10:49:03 -07:00
Matt T. Proud c10555a867 go: Export the latest version of internal guide.
The updates chiefly include copy editing, deduplication of material, and
additional considerations around documentation standards for APIs.
2024-01-30 17:19:28 +01:00
Google Python team 19f31499d7 Project import generated by Copybara.
PiperOrigin-RevId: 600882442
2024-01-23 13:09:46 -08:00
Google Python team 4d9a47834b Project import generated by Copybara.
PiperOrigin-RevId: 584359357
2023-11-21 10:17:15 -08:00
Tony Ruscoe 6ebcd8cee2 Improve javaguide.css compliance with style guide
See #796
2023-10-23 17:26:54 +01:00
Tony Ruscoe 69600d1b9b Improve styleguide.css compliance with style guide
See #796
2023-10-23 17:26:44 +01:00
dpapad 4153bf1f8c Update ts styleguide with latest google version 2023-10-20 15:57:59 -04:00
Titus Winters db9c2e51fd Merge pull request #795 from zetafunction/cxx20-updates
Update C++ style guide for C++20.
2023-10-16 13:46:50 -04:00
Daniel Cheng 901474aa08 Update C++ style guide for C++20.
- Encourage single line nested namespace declarations.
- Reference and allow `constinit` in the relevant sections
- Update operator overloading guidance for comparison operators: prefer
  only to overload `==` and optionally `<=>` when there is an obvious
  ordering, and allow the compiler to derive the other comparison
  operators.
- Discourage prefixing `uint32_t`, et cetera with `std::`.
- Document when and how to use concepts:
  - Use `requires` expressions rather than the alternatives, e.g. a
    template parameter.
  - Do not reimplement existing concepts/traits.
  - Do not expose concepts across API boundaries.
  - Do not use concepts unnecessarily.
  - Do not implement concepts that are not compile-time checkable.
2023-10-12 09:48:56 -07:00
Google Python team 105acb7bca Project import generated by Copybara.
PiperOrigin-RevId: 563811147
2023-10-04 12:35:48 -07:00
Gregory P. Smith cf722264e7 Merge pull request #792 from dseomn/gh-pages
Project import generated by Copybara.  (pushing edits we made internally to this outwards)
2023-09-27 13:34:31 -07:00
Google Python team 28d10d19df Project import generated by Copybara.
PiperOrigin-RevId: 568328430
2023-09-25 17:52:06 -04:00
Titus Winters 718ea5d9f8 Merge pull request #787 from zetafunction/update-styleguide-2
Update C++ style guide.
2023-08-23 09:21:34 -04:00
Daniel Cheng d8cee7085b Update C++ style guide.
- Update caveats for `thread_local` usage, particularly around the risk
  of destruction order issues.
- Provide explicit guidance for situations where `bit_cast` may be a
  better fit than `reinterpret_cast`.
- Emphasize that kConstant-style naming can still be used for `const`
  automatic variables that are initialized at runtime, but only if the
  resulting variable has the same value with each evaluation (i.e. it
  does not depend on runtime inputs).
- Clarify what sorts of details belong in file-level comments vs
  comments for individual abstractions.
- Update TODO examples to reflect the preferred styling, from most
  preferred to least preferred.
2023-08-22 14:03:40 -07:00
Google Python team 7751268440 Project import generated by Copybara.
PiperOrigin-RevId: 543420495
2023-06-26 14:36:03 -07:00
Tony Ruscoe 2173b8d68c Update the HTML Document Type guidance
This removes the guidance around not closing void elements since this is incompatible with the Prettier formatter.
2023-04-26 12:22:36 +01:00
Tony Ruscoe 453aca8c43 Update the HTML Line-Wrapping guidance
This relaxes the guidance around indenting by 4 additional spaces and provides the Prettier format as one of the examples to ensure the style guide is compatible with the Prettier formatter.
2023-04-24 14:42:52 +01:00
Google Python team d2cc2a7ec3 Project import generated by Copybara.
PiperOrigin-RevId: 522150370
2023-04-05 14:13:19 -07:00
Titus Winters 80422388e0 Merge pull request #766 from zetafunction/update-styleguide
Update C++ style guide.
2023-03-27 15:53:07 -04:00
Daniel Cheng f1dbcc3382 Update C++ style guide.
- Encourage use of the `internal` namespace to document parts of an API
  that are not public.
- Create a separate section for `switch` statements.
- Require a project-specific prefix for macros.
- Reorganize guidance for formatting conditional statements.
- Other miscellaneous wording and formatting fixes.
2023-03-22 14:39:28 -07:00
Google Python team e065b55718 Project import generated by Copybara.
PiperOrigin-RevId: 510217476
2023-02-16 13:03:04 -08:00
Gregory P. Smith f924e89a56 Add explicit module names to pylintrc to support pylint >= 3.0
contributed by @algonell.
2023-02-02 15:20:26 -08:00
algonell b34b3b30b4 fix: add explicit module names
pylint triggered:

pylint: Command line or configuration file:1: UserWarning: Specifying exception names in the overgeneral-exceptions option without module name is deprecated and support for it will be removed in pylint 3.0. Use fully qualified name (maybe 'builtins.StandardError' ?) instead.
pylint: Command line or configuration file:1: UserWarning: Specifying exception names in the overgeneral-exceptions option without module name is deprecated and support for it will be removed in pylint 3.0. Use fully qualified name (maybe 'builtins.Exception' ?) instead.
pylint: Command line or configuration file:1: UserWarning: Specifying exception names in the overgeneral-exceptions option without module name is deprecated and support for it will be removed in pylint 3.0. Use fully qualified name (maybe 'builtins.BaseException' ?) instead.

Suggestion works out.
2023-02-02 11:31:26 +02:00
Matt T. Proud 74605a6617 Merge pull request #747 from Carrotman42/export_tmp
Internal Change.
2023-01-03 12:45:08 +01:00
Gregory P. Smith b5c20ce8da Vimscript -> Vim script : Merge pull request #734 from ujihisa/patch-1
Trivial typofix
2022-12-28 16:29:51 -08:00
Kevin Chowski 9ae38d43e3 Internal Change.
PiperOrigin-RevId: 497970050
2022-12-27 18:56:41 +00:00
Google Python team ec302b363e Project import generated by Copybara.
PiperOrigin-RevId: 493761232
2022-12-07 18:18:44 -08:00