diff --git a/sonar-project.properties b/sonar-project.properties index c07987ce..50e80f4f 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -9,3 +9,5 @@ sonar.coverage.exclusions=**/*.stories.tsx,**/*.test.tsx,**/*.stories.ts,**/*.te sonar.typescript.tsconfigPath=./tsconfig.json sonar.javascript.lcov.reportPaths=coverage/lcov.info + +sonar.cpd.exclusions=**/*.stories.tsx,**/*.test.tsx,**/*.stories.ts,**/*.test.ts diff --git a/src/components/Avatar/Avatar.stories.tsx b/src/components/Avatar/Avatar.stories.tsx index 6b06a0e7..f1fc54c1 100644 --- a/src/components/Avatar/Avatar.stories.tsx +++ b/src/components/Avatar/Avatar.stories.tsx @@ -31,10 +31,6 @@ export default { src: "/images/__test__/kitten.jpg", type: "round", }, - design: { - type: "figma", - url: "https://www.figma.com/file/rTaQE2nIUSLav4Tg3nozq7/Compound-Web-Components?type=design&node-id=522-742&mode=dev", - }, } as Meta; const Template: StoryFn = (args) => ( diff --git a/src/components/Button/Button.stories.tsx b/src/components/Button/Button.stories.tsx index f84f94cf..1a2c4619 100644 --- a/src/components/Button/Button.stories.tsx +++ b/src/components/Button/Button.stories.tsx @@ -59,25 +59,11 @@ Primary.args = { kind: "primary", }; -Primary.parameters = { - design: { - type: "figma", - url: "https://www.figma.com/file/HUysJAhv6cK6p1Pc81Fxaa/Matrix-Authentication-Service-(MAS)?node-id=101%3A16968&t=gc1qRwZLEob0m7OM-1", - }, -}; - export const Secondary = Template.bind({}); Secondary.args = { kind: "secondary", }; -Secondary.parameters = { - design: { - type: "figma", - url: "https://www.figma.com/file/HUysJAhv6cK6p1Pc81Fxaa/Matrix-Authentication-Service-(MAS)?node-id=101%3A16968&t=gc1qRwZLEob0m7OM-1", - }, -}; - export const Tertiary = Template.bind({}); Tertiary.args = { kind: "tertiary", @@ -87,10 +73,3 @@ export const Destructive = Template.bind({}); Destructive.args = { kind: "destructive", }; - -Destructive.parameters = { - design: { - type: "figma", - url: "https://www.figma.com/file/HUysJAhv6cK6p1Pc81Fxaa/Matrix-Authentication-Service-(MAS)?node-id=101%3A16968&t=gc1qRwZLEob0m7OM-1", - }, -}; diff --git a/src/components/MenuItem/ToggleMenuItem.stories.tsx b/src/components/MenuItem/ToggleMenuItem.stories.tsx index 90a74f60..a494a2b5 100644 --- a/src/components/MenuItem/ToggleMenuItem.stories.tsx +++ b/src/components/MenuItem/ToggleMenuItem.stories.tsx @@ -42,10 +42,3 @@ const Template: StoryFn = (args) => ( export const Primary = Template.bind({}); Primary.args = {}; - -Primary.parameters = { - design: { - type: "figma", - url: "https://www.figma.com/file/rTaQE2nIUSLav4Tg3nozq7/Compound-Web-Components?type=design&node-id=712-6909&mode=dev", - }, -}; diff --git a/src/utils/__ComponentTemplate__/__ComponentTemplate__.stories.tsx b/src/utils/__ComponentTemplate__/__ComponentTemplate__.stories.tsx index 39db45b5..94f86b0d 100644 --- a/src/utils/__ComponentTemplate__/__ComponentTemplate__.stories.tsx +++ b/src/utils/__ComponentTemplate__/__ComponentTemplate__.stories.tsx @@ -24,10 +24,6 @@ export default { tags: ["autodocs"], argTypes: {}, args: {}, - design: { - type: "figma", - url: "%FIGMA_URL%", - }, } as Meta; export const Default = {