Showing 513 of 513 total issues
Similar blocks of code found in 83 locations. Consider refactoring. Open
{identificadorContrato: nil, uasg: "511393", modalidadeLicitacao: "6", codigoContrato: "50", licitacaoAssociada: "51139306000011996", objeto: "Serviço de Locação do imóvel situado a Rua Dom Pedro II, nr. 230 , centro Caçapava/SP, onde funciona a APS/Caçapava.", numeroAditivos: 0, numeroProcessos: 35382001184199218, CPFContratada: nil, dataAssinatura: "1996-08-16", fundamentoGeral: nil, dataInicioVigencia: "1996-08-16", dataTerminoVigencia: "1997-08-15", valorInicial: "72000.0", aditivosContratos: nil, eventosContratos: nil},
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 33.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 83 locations. Consider refactoring. Open
{identificadorContrato: nil, uasg: "193110", modalidadeLicitacao: "6", codigoContrato: "50", licitacaoAssociada: "19311006000011996", objeto: "LOCAÇÃO DE UM GALPÃO PARA ARMAZENAMENTO DE KIT DE CASA DE MADEIRA PRÉ-MOLDADA PERTENCENTE AO IBAMA/MA NO MUNICÍPIO DE BARREIRINHAS/MA.", numeroAditivos: 1, numeroProcessos: 2012000084, CPFContratada: nil, dataAssinatura: "1996-01-01", fundamentoGeral: nil, dataInicioVigencia: "1996-01-01", dataTerminoVigencia: "1996-12-31", valorInicial: "300.0", aditivosContratos: nil, eventosContratos: nil},
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 33.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 5 locations. Consider refactoring. Open
{identificadorContrato: nil, uasg: "153266", modalidadeLicitacao: "1", codigoContrato: "54", licitacaoAssociada: "15326601111111911", objeto: "Concessão de uso de sala.", numeroAditivos: 0, numeroProcessos: 11111111111111111, CPFContratada: "73878860000104", dataAssinatura: "1997-02-01", fundamentoGeral: nil, dataInicioVigencia: "1997-02-01", dataTerminoVigencia: "1999-10-18", valorInicial: nil, aditivosContratos: nil, eventosContratos: nil},
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 33.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 83 locations. Consider refactoring. Open
{identificadorContrato: nil, uasg: "170218", modalidadeLicitacao: "6", codigoContrato: "50", licitacaoAssociada: "17021806000011991", objeto: "Locação de imóvel situado a travessa monsenhor inácio, 62, na cidad e de Cametá/PA para instalação da Agência da Receita Federal naquela cidade", numeroAditivos: 0, numeroProcessos: 102800054569112, CPFContratada: nil, dataAssinatura: "1991-10-01", fundamentoGeral: nil, dataInicioVigencia: "1991-10-01", dataTerminoVigencia: "2002-03-31", valorInicial: "85770.72", aditivosContratos: nil, eventosContratos: nil},
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 33.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 83 locations. Consider refactoring. Open
{identificadorContrato: nil, uasg: "512091", modalidadeLicitacao: "6", codigoContrato: "50", licitacaoAssociada: "51209106000011992", objeto: "Locaçao de imovel, localizada aa Rua Dr. Walmir Peçanha, 27 cen tro Tres Rios RJ., onde funciona o Grupamento Medico Pericial. Imovel composto de uma area util de 270m2.", numeroAditivos: 2, numeroProcessos: 35301, CPFContratada: nil, dataAssinatura: "1992-10-09", fundamentoGeral: nil, dataInicioVigencia: "1992-10-09", dataTerminoVigencia: "1993-10-09", valorInicial: "101836800.0", aditivosContratos: nil, eventosContratos: nil},
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 33.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 83 locations. Consider refactoring. Open
{identificadorContrato: nil, uasg: "114610", modalidadeLicitacao: "6", codigoContrato: "50", licitacaoAssociada: "11461006000011995", objeto: "Contrato de locação de imovel para instalação da Agência do IBGE no município de Juazeiro do Norte/CE.", numeroAditivos: 0, numeroProcessos: 3623, CPFContratada: nil, dataAssinatura: "1995-11-01", fundamentoGeral: nil, dataInicioVigencia: "1995-12-01", dataTerminoVigencia: "1996-11-30", valorInicial: "8400.0", aditivosContratos: nil, eventosContratos: nil},
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 33.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 83 locations. Consider refactoring. Open
{identificadorContrato: nil, uasg: "170041", modalidadeLicitacao: "6", codigoContrato: "50", licitacaoAssociada: "17004106000011995", objeto: "Locação de imóvel situado à Rua 15 de Novembro, 918, em Baturité/CE para instalação da ARF/Baturité.", numeroAditivos: 2, numeroProcessos: 103800114139427, CPFContratada: nil, dataAssinatura: "1995-02-10", fundamentoGeral: nil, dataInicioVigencia: "1995-02-10", dataTerminoVigencia: "1998-02-09", valorInicial: "21600.0", aditivosContratos: nil, eventosContratos: nil},
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 33.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 83 locations. Consider refactoring. Open
{identificadorContrato: nil, uasg: "153201", modalidadeLicitacao: "6", codigoContrato: "50", licitacaoAssociada: "15320106000011996", objeto: "Serviços didático-pedagógicos, na área de Quimica.", numeroAditivos: 3, numeroProcessos: 23000060749, CPFContratada: nil, dataAssinatura: "1996-11-01", fundamentoGeral: nil, dataInicioVigencia: "1996-11-01", dataTerminoVigencia: "1996-12-31", valorInicial: "1971.62", aditivosContratos: nil, eventosContratos: nil},
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 33.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 83 locations. Consider refactoring. Open
{identificadorContrato: nil, uasg: "170135", modalidadeLicitacao: "6", codigoContrato: "50", licitacaoAssociada: "17013506000011996", objeto: "LOCACAO DE IMOVEL QUE ABRIGARA A ARF/JAU", numeroAditivos: 0, numeroProcessos: 138270002029504, CPFContratada: nil, dataAssinatura: "1996-02-02", fundamentoGeral: nil, dataInicioVigencia: "1996-02-02", dataTerminoVigencia: "1997-02-01", valorInicial: "103033.08", aditivosContratos: nil, eventosContratos: nil},
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 33.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 83 locations. Consider refactoring. Open
{identificadorContrato: nil, uasg: "511449", modalidadeLicitacao: "6", codigoContrato: "50", licitacaoAssociada: "51144906000011996", objeto: "Locação de imóvel situado na Rua Perrela nº 319, São Caetano do sul onde funciona o Posto do Seguro Social.", numeroAditivos: 0, numeroProcessos: 35366001306, CPFContratada: nil, dataAssinatura: "1996-08-01", fundamentoGeral: nil, dataInicioVigencia: "1996-08-01", dataTerminoVigencia: "1999-07-31", valorInicial: "792000.0", aditivosContratos: nil, eventosContratos: nil},
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 33.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 83 locations. Consider refactoring. Open
{identificadorContrato: nil, uasg: "380041", modalidadeLicitacao: "6", codigoContrato: "50", licitacaoAssociada: "38004106000451996", objeto: "LOCAÇÃO DE IMÓVEL PARA A SDTE/VARGINHA", numeroAditivos: 1, numeroProcessos: 46211002245, CPFContratada: nil, dataAssinatura: "1996-03-18", fundamentoGeral: nil, dataInicioVigencia: "1996-03-18", dataTerminoVigencia: "1997-03-17", valorInicial: "22800.0", aditivosContratos: nil, eventosContratos: nil},
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 33.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 83 locations. Consider refactoring. Open
{identificadorContrato: nil, uasg: "170120", modalidadeLicitacao: "6", codigoContrato: "50", licitacaoAssociada: "17012006000021997", objeto: "Contrato n.01/97 tem por objeto a locação do imóvel situado à Av. Cardoso Moreira, nº 623, Centro, Itaperuna, Estado do Rio de Janeiro.", numeroAditivos: 4, numeroProcessos: 13732000537, CPFContratada: nil, dataAssinatura: "1997-12-30", fundamentoGeral: nil, dataInicioVigencia: "1997-12-30", dataTerminoVigencia: "2000-12-29", valorInicial: "151200.0", aditivosContratos: nil, eventosContratos: nil},
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 33.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 2 locations. Consider refactoring. Open
{identificadorContrato: nil, uasg: "273017", modalidadeLicitacao: nil, codigoContrato: "57", licitacaoAssociada: "273017null000000000", objeto: "17° Termo Aditivo de vinculação de empenho para realização de estágio para estudantes.", numeroAditivos: 0, numeroProcessos: 5124000025192, CPFContratada: nil, dataAssinatura: "1999-03-03", fundamentoGeral: nil, dataInicioVigencia: "1999-03-02", dataTerminoVigencia: "1999-06-30", valorInicial: "5500.0", aditivosContratos: nil, eventosContratos: nil},
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 33.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76