coding-standard

Nextcloud coding standards for php cs fixer

MIT License

Downloads
2.2M
Stars
12
Committers
5

Bot releases are hidden (Show)

coding-standard -

Published by provokateurin about 1 month ago

Fixed

  • Removed misbehaving ErickSkrauch/blank_line_before_return and ErickSkrauch/line_break_after_statements rules
coding-standard - v1.3.0

Published by provokateurin about 1 month ago

Changed

  • trailing_comma_in_multiline: Add a trailing comma to multline function parameters
  • MultilinePromotedPropertiesFixer: Break promoted properties on multiple lines
  • ErickSkrauch/blank_line_before_return: Add a blank line before each return
  • ErickSkrauch/line_break_after_statements: Add a blank line after all control statements
  • concat_space: Concatenation should be spaced
  • nullable_type_declaration: Changes DateTimeInterface|null to ?DateTimeInterface
coding-standard - v1.2.3 Latest Release

Published by nickvergessen about 2 months ago

Changed

  • cast_spaces: No space between cast and variable
coding-standard - v1.2.2

Published by nickvergessen about 2 months ago

Added

  • cast_spaces: A single space between cast and variable
  • lowercase_cast: Cast should be written in lower case
  • method_chaining_indentation: Use the same indentation when changing methods
  • no_short_bool_cast: Short cast bool using double exclamation mark should not be used
  • phpdoc_align: All items of the given PHPDoc tags must be left-aligned
  • phpdoc_single_line_var_spacing: Single line @var PHPDoc should have proper spacing
  • phpdoc_var_annotation_correct_order: Enforce the correct order for phpdoc annotations
  • short_scalar_cast: (boolean) => (bool), (integer) => (int), ...
  • single_quote: Use single quotes for simple strings
  • types_spaces: No spaces around union and intersection type operators
coding-standard - v1.2.1

Published by nickvergessen 9 months ago

1.2.1 - 2024-02-01

Fix

Full Changelog: https://github.com/nextcloud/coding-standard/compare/v1.2.0...v1.2.1

coding-standard - v1.2.0

Published by nickvergessen 9 months ago

1.2.0 - 2024-02-01

Added

  • array_syntax: Force short syntax for array
  • list_syntax: Same for list
  • fully_qualified_strict_types: Remove namespace from classname when there is a use statement, and add missing backslash for global namespace
  • no_leading_import_slash: Remove leading slash from use statement
  • nullable_type_declaration_for_default_null_value: Add missing ? on type declaration for parameters defaulting to null. This will most likely be needed to avoid warnings in PHP 8.4.
  • yoda_style: forbid yoda style comparision. This replaces null === $a by $a === null.

What's Changed

Full Changelog: https://github.com/nextcloud/coding-standard/compare/v1.1.1...v1.2.0

coding-standard - v1.1.1

Published by nickvergessen over 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/nextcloud/coding-standard/compare/v1.1.0...v1.1.1

coding-standard - v1.1.0

Published by nickvergessen over 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/nextcloud/coding-standard/compare/v1.0.0...v1.1.0

coding-standard - v1.0.0 – php-cs-fixer 3.x

Published by ChristophWurst almost 3 years ago

Major release because the old config needs to be adjusted.

See https://github.com/nextcloud/coding-standard#upgrade-from-v0x-to-v10 for instructions.