janstuemmel/campfhir-server

View on GitHub

Showing 3 of 5 total issues

Function exports has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = (req, res) => {

  // check if it is a fhir ressource
  if (!checkResourceType(req.params.type)) {
    return res.status(404).send(createError(
Severity: Minor
Found in lib/controller/create.js - About 1 hr to fix

    Function render has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      render() {
    
        const value = {
          resourceType: this.props.resourceType,
        };
    Severity: Minor
    Found in campfhir/app/components/resources.js - About 1 hr to fix

      Function render has 31 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        render() {
          return (
            <div>
              <div style={{ marginBottom: 10 }}>
                <Button onClick={this._openAddResourceModal.bind(this, this.props.match.params.resourceType)} bsStyle="primary">
      Severity: Minor
      Found in campfhir/app/components/resources.js - About 1 hr to fix
        Severity
        Category
        Status
        Source
        Language