MCPcopy Index your code
hub / github.com/anton-rudeshko/CSSReorder

github.com/anton-rudeshko/CSSReorder @0.5.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.5.1 ↗ · + Follow
43 symbols 72 edges 6 files 1 documented · 2%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

CSSReorder

About

Very early version, use on your own risk. Stay tuned for updates.

Sorting CSS properties in predefined order. Consider also using node.js/npm version: csscomb.js

Disclaimer

Requires IntelliJ platform version ≥ 13.

Formerly known as CSSComb but was renamed to avoid people confusion. This plugin is NOT supported by CSSComb organization and have no shared codebase. CSSComb author is not responsible for any bugs. This is only my initiative to implement original CSSComb features as native to IDEA platform.

Based on platform provided rearrangement.

Installation

Install from IntelliJ IDEA plugin repositories or download manually here.

Usage

Should be invoked using Code → Rearrange action on CSS files. This action also can be invoked on code reformatting action by checking corresponding option (Rearrange entries) in Reformat code dialog.

Contribution

Feel free to report bugs, request features and contribute.

How to Run Tests

  1. Install desired product (PHPStorm, WebStorm, IntelliJ IDEA, etc).
  2. Download sources from IntelliJ Community.
  3. Checkout required tag.
  4. Create new SDK and point it into installed instance.
  5. Attach sources from Community.
  6. Plugin should fully compile by now.
  7. Fix hardcoded path.
  8. ... something else
  9. If getting error about TestCase class is not found try using IDEA SDK

Useful links: * IDEA Logs and settings

Core symbols most depended-on inside this repo

visitCssRuleset
called by 2
src/com/rudeshko/css/rearrange/CssArrangementVisitor.java
createNewEntry
called by 2
src/com/rudeshko/css/rearrange/CssArrangementVisitor.java
visitCssFile
called by 1
src/com/rudeshko/css/rearrange/CssArrangementVisitor.java
visitCssStylesheet
called by 1
src/com/rudeshko/css/rearrange/CssArrangementVisitor.java
visitCssMedia
called by 1
src/com/rudeshko/css/rearrange/CssArrangementVisitor.java
visitCssBlock
called by 1
src/com/rudeshko/css/rearrange/CssArrangementVisitor.java
processEntry
called by 1
src/com/rudeshko/css/rearrange/CssArrangementVisitor.java
getCurrent
called by 1
src/com/rudeshko/css/rearrange/CssArrangementVisitor.java

Shape

Method 37
Class 6

Languages

Java100%

Modules by API surface

src/com/rudeshko/css/rearrange/CssArrangementVisitor.java14 symbols
src/com/rudeshko/css/rearrange/CssRearranger.java12 symbols
tests/com/rudeshko/css/rearrange/RearrangeTest.java9 symbols
src/com/rudeshko/css/rearrange/CssElementArrangementEntry.java4 symbols
src/com/rudeshko/css/rearrange/CssArrangementParseInfo.java3 symbols
src/com/rudeshko/css/rearrange/CssOrder.java1 symbols

For agents

$ claude mcp add CSSReorder \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact