You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
MichaReiser
added
S-Bug: confirmed
Status: report has been confirmed as a valid bug
S-To triage
Status: user report of a possible bug that needs to be triaged
and removed
S-To triage
Status: user report of a possible bug that needs to be triaged
labels
Sep 6, 2022
It seems that the ci command doesn't respect the configuration all together as it also doesn't take formatting options into account. @ematipico@leops would you be able to have a look and I think we should consider doing a follow up release with the fix included
From what I can see the configuration file is correctly being loaded (changing the indent size / style in the rome.json works as expected for instance), but the ci command is hard-coded to call into both the formatter and the linter and doesn't respect the enabled setting for either tool. This should be fixed at two points: the Workspace should return an error the the linting or formatting methods are called but the corresponding tool is disabled, and the CLI should not attempt to call into these methods in the first place if the supports_feature method has returned false / Some(_)
The CLI flags like --indent-style are being ignored, specifically they get read into a WorkspaceSettings struct but this information never gets used or applied anywhere
Environment information
What happened?
npm run format:ci
which isrome ci .
does not care about rome.json configuration.there isn't any clear way of running formatter on CI and throwing errors if it fails.
Expected result
It should care linter enabled false configuration and not check for linting.
Code of Conduct
The text was updated successfully, but these errors were encountered: