Skip to content

fix: formatting issues

d56a922
Select commit
Loading
Failed to load commit list.
Merged

Refactore #2

fix: formatting issues
d56a922
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Apr 6, 2026 in 42s

Quality Gate failed

Failed conditions
10.1% Duplication on New Code (required ≤ 3%)
B Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Annotations

Check warning on line 180 in src/components/form/DynamicForm.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Mark the props of the component as read-only.

See more on https://sonarcloud.io/project/issues?id=CISCODE-MA_FormKit-UI&issues=AZ0_impmgwD9Sv-kUZ8y&open=AZ0_impmgwD9Sv-kUZ8y&pullRequest=2

Check warning on line 553 in src/components/fields/DateTimeField.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

The attribute aria-selected is not supported by the role button. This role is implicit on the element button.

See more on https://sonarcloud.io/project/issues?id=CISCODE-MA_FormKit-UI&issues=AZ0_imlVgwD9Sv-kUZ7_&open=AZ0_imlVgwD9Sv-kUZ7_&pullRequest=2

Check warning on line 336 in src/components/fields/DateTimeField.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use <input list=...>, <input list=...>, <input list=...>, <input list=...>, <input list=...>, <input list=...>, or <select multiple=...> instead of the "combobox" role to ensure accessibility across all devices.

See more on https://sonarcloud.io/project/issues?id=CISCODE-MA_FormKit-UI&issues=AZ0_rcsi7npyK73SkKZI&open=AZ0_rcsi7npyK73SkKZI&pullRequest=2

Check warning on line 241 in src/components/fields/DateTimeField.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

This case's code block is the same as the block for the case on line 224.

See more on https://sonarcloud.io/project/issues?id=CISCODE-MA_FormKit-UI&issues=AZ0_imlVgwD9Sv-kUZ73&open=AZ0_imlVgwD9Sv-kUZ73&pullRequest=2

Check warning on line 308 in src/components/fields/DateField.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Elements with the ARIA role "combobox" must have the following attributes defined: aria-controls,aria-expanded

See more on https://sonarcloud.io/project/issues?id=CISCODE-MA_FormKit-UI&issues=AZ0_imjbgwD9Sv-kUZ7M&open=AZ0_imjbgwD9Sv-kUZ7M&pullRequest=2

Check warning on line 108 in src/components/fields/FileField.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this redundant jump.

See more on https://sonarcloud.io/project/issues?id=CISCODE-MA_FormKit-UI&issues=AZ0_imlpgwD9Sv-kUZ8L&open=AZ0_imlpgwD9Sv-kUZ8L&pullRequest=2

Check warning on line 158 in src/components/fields/OTPField.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use <details>, <fieldset>, <optgroup>, or <address> instead of the "group" role to ensure accessibility across all devices.

See more on https://sonarcloud.io/project/issues?id=CISCODE-MA_FormKit-UI&issues=AZ0_imhFgwD9Sv-kUZ6f&open=AZ0_imhFgwD9Sv-kUZ6f&pullRequest=2

Check warning on line 216 in src/components/fields/SelectField.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use <input list=...>, <input list=...>, <input list=...>, <input list=...>, <input list=...>, <input list=...>, or <select multiple=...> instead of the "combobox" role to ensure accessibility across all devices.

See more on https://sonarcloud.io/project/issues?id=CISCODE-MA_FormKit-UI&issues=AZ0_imkOgwD9Sv-kUZ7e&open=AZ0_imkOgwD9Sv-kUZ7e&pullRequest=2

Check warning on line 132 in src/components/fields/PhoneField.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `String#replaceAll()` over `String#replace()`.

See more on https://sonarcloud.io/project/issues?id=CISCODE-MA_FormKit-UI&issues=AZ0_immQgwD9Sv-kUZ8c&open=AZ0_immQgwD9Sv-kUZ8c&pullRequest=2

Check failure on line 25 in src/components/fields/DateTimeField.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 17 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=CISCODE-MA_FormKit-UI&issues=AZ0_imlVgwD9Sv-kUZ7z&open=AZ0_imlVgwD9Sv-kUZ7z&pullRequest=2

Check warning on line 59 in src/components/fields/FileField.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Mark the props of the component as read-only.

See more on https://sonarcloud.io/project/issues?id=CISCODE-MA_FormKit-UI&issues=AZ0_imlpgwD9Sv-kUZ8K&open=AZ0_imlpgwD9Sv-kUZ8K&pullRequest=2

Check warning on line 205 in src/components/fields/PhoneField.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Non-interactive elements should not be assigned interactive roles.

See more on https://sonarcloud.io/project/issues?id=CISCODE-MA_FormKit-UI&issues=AZ0_immQgwD9Sv-kUZ8e&open=AZ0_immQgwD9Sv-kUZ8e&pullRequest=2

Check warning on line 39 in src/components/fields/MultiSelectField.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Unexpected negated condition.

See more on https://sonarcloud.io/project/issues?id=CISCODE-MA_FormKit-UI&issues=AZ0_rcsC7npyK73SkKZG&open=AZ0_rcsC7npyK73SkKZG&pullRequest=2

Check warning on line 36 in src/components/context/FormKitContext.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Mark the props of the component as read-only.

See more on https://sonarcloud.io/project/issues?id=CISCODE-MA_FormKit-UI&issues=AZ0_imp1gwD9Sv-kUZ83&open=AZ0_imp1gwD9Sv-kUZ83&pullRequest=2

Check warning on line 202 in src/core/i18n.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `String#replaceAll()` over `String#replace()`.

See more on https://sonarcloud.io/project/issues?id=CISCODE-MA_FormKit-UI&issues=AZ0_imqigwD9Sv-kUZ87&open=AZ0_imqigwD9Sv-kUZ87&pullRequest=2

Check warning on line 34 in src/components/layout/FieldLabel.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Mark the props of the component as read-only.

See more on https://sonarcloud.io/project/issues?id=CISCODE-MA_FormKit-UI&issues=AZ0_imorgwD9Sv-kUZ8p&open=AZ0_imorgwD9Sv-kUZ8p&pullRequest=2

Check warning on line 153 in src/components/fields/TagsField.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use <option> instead of the "option" role to ensure accessibility across all devices.

See more on https://sonarcloud.io/project/issues?id=CISCODE-MA_FormKit-UI&issues=AZ0_rctd7npyK73SkKZM&open=AZ0_rctd7npyK73SkKZM&pullRequest=2

Check warning on line 344 in src/components/fields/SelectField.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Non-interactive elements should not be assigned interactive roles.

See more on https://sonarcloud.io/project/issues?id=CISCODE-MA_FormKit-UI&issues=AZ0_imkOgwD9Sv-kUZ7k&open=AZ0_imkOgwD9Sv-kUZ7k&pullRequest=2

Check warning on line 377 in src/components/fields/TimeField.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use <option> instead of the "option" role to ensure accessibility across all devices.

See more on https://sonarcloud.io/project/issues?id=CISCODE-MA_FormKit-UI&issues=AZ0_rcoq7npyK73SkKZA&open=AZ0_rcoq7npyK73SkKZA&pullRequest=2

Check warning on line 422 in src/components/fields/ArrayField.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Visible, non-interactive elements with click handlers must have at least one keyboard listener.

See more on https://sonarcloud.io/project/issues?id=CISCODE-MA_FormKit-UI&issues=AZ0_iml8gwD9Sv-kUZ8Z&open=AZ0_iml8gwD9Sv-kUZ8Z&pullRequest=2

Check warning on line 125 in src/components/fields/TimeField.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Unexpected negated condition.

See more on https://sonarcloud.io/project/issues?id=CISCODE-MA_FormKit-UI&issues=AZ0_imiKgwD9Sv-kUZ6r&open=AZ0_imiKgwD9Sv-kUZ6r&pullRequest=2

Check warning on line 362 in src/components/fields/SelectField.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Visible, non-interactive elements with click handlers must have at least one keyboard listener.

See more on https://sonarcloud.io/project/issues?id=CISCODE-MA_FormKit-UI&issues=AZ0_imkOgwD9Sv-kUZ7j&open=AZ0_imkOgwD9Sv-kUZ7j&pullRequest=2

Check warning on line 643 in src/components/fields/DateTimeField.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

The attribute aria-selected is not supported by the role listitem. This role is implicit on the element li.

See more on https://sonarcloud.io/project/issues?id=CISCODE-MA_FormKit-UI&issues=AZ0_rcsi7npyK73SkKZK&open=AZ0_rcsi7npyK73SkKZK&pullRequest=2

Check warning on line 102 in src/components/context/I18nContext.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use 'Object.hasOwn()' instead of 'Object.prototype.hasOwnProperty.call()'.

See more on https://sonarcloud.io/project/issues?id=CISCODE-MA_FormKit-UI&issues=AZ0_imqCgwD9Sv-kUZ85&open=AZ0_imqCgwD9Sv-kUZ85&pullRequest=2

Check warning on line 423 in src/components/fields/MultiSelectField.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use <select size=...>, <select multiple=...>, or <datalist> instead of the "listbox" role to ensure accessibility across all devices.

See more on https://sonarcloud.io/project/issues?id=CISCODE-MA_FormKit-UI&issues=AZ0_imkygwD9Sv-kUZ7t&open=AZ0_imkygwD9Sv-kUZ7t&pullRequest=2