Skip to content

Commit

Permalink
feat: Integrate Sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
mhomolak committed Nov 10, 2017
1 parent a0736fe commit eaa7378
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ build/dist*
npm_scripts/*.js
yarn.lock
coverage
.scannerwork/
12 changes: 12 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
sonar.projectKey=PDA.Alerts
sonar.projectName=PDA.Alerts
sonar.projectVersion=1.0

sonar.javascript.coveragePlugin=lcov

sonar.sources=src/js
sonar.exclusions=**/src/js/Icon.js, **/src/js/AlertListManager.js

sonar.javascript.lcov.reportPath=coverage/lcov.info

sonar.sourceEncoding=UTF-8
4 changes: 2 additions & 2 deletions src/js/Alert.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ const Alert = ({ index, alertType, handleClose, alertTitle, alertMessage }) => {
<span className="success-svg">
<Icon name="check-sm-18" />
</span>
)
);
}
};

const infoCheck = alertType === 'Information' ? '-info' :'';

return (
<li className ="pe-alert" id = {`alert-${alertType}-${index}`}>
<button className="pe-icon--btn close-title"
Expand Down

0 comments on commit eaa7378

Please sign in to comment.