Skip to content

treewide: remove redundant parentheses - #2478

Open
trueNAHO wants to merge 1 commit into
nix-community:masterfrom
trueNAHO:treewide-remove-redundant-parentheses
Open

treewide: remove redundant parentheses#2478
trueNAHO wants to merge 1 commit into
nix-community:masterfrom
trueNAHO:treewide-remove-redundant-parentheses

Conversation

@trueNAHO

Copy link
Copy Markdown
Member

It might be safe to assume this will not be resolved by upstream for a while.

-- #2475 (comment)

Following #2475, I took the liberty to remove more redundant parentheses by manually inspecting at least the [&*\+-/=] [\(\)] and [\(\)] [&*\+-/=] regexes, which are incomplete because I may have forgotten certain patterns I searched for and intentionally excluded cases without valuable results.

I deliberately only touched Nix code to avoid misinterpreting operator precedence in other languages.

Keep in mind that not all files have associated testbeds, meaning syntax errors may slip through.


@stylix-automation stylix-automation Bot added topic: documentation Documentation additions or improvements topic: nixos NixOS target topic: home-manager Home Manager target topic: darwin nix-darwin target topic: modules /modules/ subsystem topic: stylix /stylix/ subsystem labels Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic: darwin nix-darwin target topic: documentation Documentation additions or improvements topic: home-manager Home Manager target topic: modules /modules/ subsystem topic: nixos NixOS target topic: stylix /stylix/ subsystem

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant